feat(tts): style语气风格参数全链路接入 + 语速/音量/音调透传修复 #2005
Reference in New Issue
Block a user
Delete Branch "fix/tts-style-emotion"
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?
背景
前端 PR#2002 已合入 develop,所有 TTS 接口现在传
style参数(natural/sweet/excited/professional/news/livestream)。此前后端 schema 无 style 字段,前端传值被 Pydantic 忽略,风格选择不生效。改动内容
1. style 语气风格参数(对齐前端)
cosyvoice_service.py:新增STYLE_INSTRUCTION_MAP、VALID_STYLES、build_style_instruction()lipsync_jobs表新增 style 列(migration 084)2. 语速/音量/音调透传修复
测试
影响范围
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #2005 已关闭或合并,对应的预览环境已被清理。