fix(frontend): #1897 声音克隆页增加情绪语速设置 #1906
Reference in New Issue
Block a user
Delete Branch "fix/1897-voice-clone-preview-emotion-speed"
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?
背景
Fix #1897
独立声音克隆页面(/app/voice-clone)目前没有情绪/语速 UI 控件,试听 API 只传 text 参数。后端 preview 接口已支持 speed 和 emotion 参数,前端补控件并真实传参。
修改
API 层
api/voice-clone/clones.ts:getVoiceClonePreview(cloneId, text?, options?)新增 options 参数{speed?, emotion?},通过 searchParams 透传到后端新增组件
pages/voice-clone/components/VoiceClonePreviewPanel.tsx: 试听面板修改
pages/voice-clone/VoiceClone.tsx: PageHead 下方、卡片网格上方插入 VoiceClonePreviewPanel(仅当存在就绪音色时显示,空状态/加载中不显示)pages/voice-clone/voice-clone.css: 新增试听面板样式(.vc-preview-*),复用现有 CSS 变量设计说明
验收
🗑️ 预览环境已清理
PR #1906 已关闭或合并,对应的预览环境已被清理。