fix(tts): P1 TTS emotion instruction format per voice type + missing CN aliases #1934
Merged
xiaoxia
merged 1 commits from 2026-09-15 16:00:58 +08:00
fix/p1-tts-emotion-enum into develop
1 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
7f1d5c95f9 |
fix(tts): P1 TTS emotion instruction format per voice type + missing CN aliases
PR Automation / Auto Approve on CI Green (pull_request) Successful in 3m4s
PR Automation / Auto Merge on CI Green + Approved (pull_request) Successful in 7m3s
Preview Deploy / Deploy Preview Environment (pull_request) Successful in 1m23s
AI Code Review / AI Code Review (pull_request) Successful in 6m29s
ACR Cleanup / ACR Image Cleanup (pull_request_target) Successful in 18s
Preview Cleanup / Cleanup Preview Environment (pull_request) Successful in 2m28s
CI/CD Pipeline / Frontend Unit Tests (pull_request) Failing after 24h11m34s
CI/CD Pipeline / Retag skipped Staging Worker Image (pull_request) Failing after 23h35m54s
CI/CD Pipeline / Dedup Check - skip PR tests when covered by push pipeline (pull_request) Successful in 2s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 1s
CI/CD Pipeline / Validate - Style (pull_request) Successful in 4m22s
CI/CD Pipeline / Validate - Security (pull_request) Successful in 12m21s
CI/CD Pipeline / Validate - Python (mypy + alembic) (pull_request) Successful in 4m45s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 4m15s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 5m2s
CI/CD Pipeline / PR Build API Image (pull_request) Successful in 30s
CI/CD Pipeline / PR Build Worker Image (pull_request) Successful in 34s
CI/CD Pipeline / Build Staging Worker Image (pull_request) Failing after 23h36m1s
CI/CD Pipeline / Build Staging API Image (pull_request) Failing after 23h36m1s
CI/CD Pipeline / Build Staging Web Image (pull_request) Failing after 23h36m41s
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Build Production Worker Image (pull_request) Failing after 23h23m36s
CI/CD Pipeline / Build Production Web Image (pull_request) Failing after 23h23m36s
CI/CD Pipeline / Build Production API Image (pull_request) Failing after 23h23m36s
CI/CD Pipeline / Deploy Production (pull_request) Failing after 23h24m15s
CI/CD Pipeline / Staging API Integration Tests (pull_request) Failing after 23h36m29s
CI/CD Pipeline / CI Gate (pull_request) Successful in 2s
CI/CD Pipeline / Canary Release to Production (pull_request) Failing after 23h23m35s
CI/CD Pipeline / Staging E2E Tests (pull_request) Failing after 23h35m49s
CI/CD Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 23h35m51s
CI/CD Pipeline / Retag skipped Staging API Image (pull_request) Failing after 23h35m55s
CI/CD Pipeline / ACR Image Cleanup (pull_request) Failing after 23h35m49s
CI/CD Pipeline / PR Build Web Image (pull_request) Failing after 23h35m55s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 23h35m56s
CI/CD Pipeline / Check push changed paths (pull_request) Failing after 23h36m2s
CI/CD Pipeline / Retag skipped Staging Web Image (pull_request) Failing after 23h36m35s
- Add missing CN aliases 中性→neutral, 伤心→sad, 吃惊→surprised (per 灵应 spec)
- Split instruction format by voice type:
· Cloned/custom voices (non long*/loong* prefix): English 'Speak in a {emotion} tone.'
(DashScope allows free-form natural language for cloned voices)
· System voices supporting emotion Instruct (longanyang/longanhuan/longhuhu_v3):
strict Chinese fixed format '你说话的情感是{emotion}。' per 阿里云百炼 docs
· Other system voices (incl. default longxiaochun_v3 which doesn't support Instruct):
skip instruction entirely to avoid being silently dropped/errored by API
- Expand preview emotion whitelist with new CN aliases
- Add/expand unit tests (210 emotion tests passing, 15438 total unit tests passing)
- E2E fix for templates CRUD was already done in PR#1931, no change needed
|