fix(#1898): TTS 情绪枚举统一为7种标准英文标签(P1) #1932
Reference in New Issue
Block a user
Delete Branch "fix/tts-emotion-p1-neutral-enum"
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?
背景
TTS P1 修复:EMOTION_MAP 以英文枚举为标准 key,neutral 为默认,instruction 格式
你说话的情感是{emotion}。改动
packages/application/cosyvoice_service.pyapps/api/app/schemas/lipsync.py:emotion 默认 natural → neutral,描述更新apps/api/app/services/lipsync_service.py:默认 emotion natural → neutralapps/api/app/api/routes/voice_clones.py:_ALLOWED_PREVIEW_EMOTIONS 扩展为 7 新枚举+旧值;query 描述和错误信息更新tests/unit/test_cosyvoice_emotion.py(新):74 单测,覆盖 7 枚举、大小写、中文别名、旧 4 枚举、空串/空白/未知值、instruction 格式(开头/结尾/单句号)tests/unit/test_voice_clone_preview.py:非法 emotion 用例改为 invalid_emotion_xyz(angry 现合法)验证
关联
🚀 预览环境已部署
🗑️ 预览环境已清理
PR #1932 已关闭或合并,对应的预览环境已被清理。