fix: CosyVoice默认模型改为v3-flash + 音色名加_v3后缀,修复418错误 #215
Reference in New Issue
Block a user
Delete Branch "fix/cosyvoice-v3-flash-model"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
根因(挖到最底层了)
cosyvoice-v3.5-plus 没有系统音色。 使用任何系统音色调用 v3.5-plus 模型都会返回 418 错误。
官方文档明确说明:
之前只修了音色名加 _v3 后缀,没改模型,还是 418。这才是真正的根因。
修复内容
验证
130/130 测试全部通过。
影响
86959557dbtoc51dc17618代码审计 — PR #215 CosyVoice 418 终极修复(v3-flash 模型切换)
结论:✅ 通过,可合并部署
根因确认(已验证官方文档)
cosyvoice-v3.5-plus 无系统音色,仅支持声音复刻/声音设计音色,使用系统音色必然返回 418。
正确做法是使用 cosyvoice-v3-flash 作为默认合成模型(支持 31+ 系统音色,速度更快,成本更低)。
改动概览
cosyvoice-v3.5-plus→cosyvoice-v3-flashlongxiaochun_v3(v3 系列命名规范)✅ 验证结果
📊 测试覆盖
📌 说明
submit_clone_task的target_model默认使用self._model,因此克隆音色也会在 v3-flash 模型上创建,与合成模型一致,避免跨模型调用 418。建议:合并后立即部署 staging,调用 TTS 合成接口验证 418 错误消失、audio_url 正常返回。