• Stefy Lanza (nextime / spora )'s avatar
    stop truncating the one language code that is longer than two letters · 753ac897
    Stefy Lanza (nextime / spora ) authored
    Probing XTTS-v2's seventeen languages through the running endpoint: sixteen
    returned audio and zh-cn failed with KeyError: 'zh'. Our own call site did it.
    `language=lang[:2]` truncated every code to two characters, and zh-cn is the
    only XTTS code longer than that, so the single language with a regioned code was
    the single language that could not be spoken.
    
    Resolution now goes through XTTS's own declared list, which also fixes the other
    direction: a client sending a locale ("en-us", "pt-br", "ZH_CN") lands on the
    code XTTS actually has instead of a near miss.
    
    tools/xtts_service.py had the identical truncation. It runs in coqui's own venv
    and cannot import the server package, so the list is duplicated there — and two
    tests keep them honest: one compares the declared lists, the other executes the
    worker's own normaliser and asserts it answers exactly as the server's does.
    
    Also updates the bark voice-count test, which pinned the English-only list at
    ten. That assumption was the bug.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014T3rZozi1Ehk96NG1WesgC
    753ac897
Name
Last commit
Last update
..
assets Loading commit data...
acestep_service.py Loading commit data...
audiocraft_service.py Loading commit data...
canary_service.py Loading commit data...
character_studio.py Loading commit data...
crisperwhisper_service.py Loading commit data...
docker_leak_audit.py Loading commit data...
gen_township_fighters.py Loading commit data...
h3_common.py Loading commit data...
h3_service.py Loading commit data...
loadprobe.py Loading commit data...
longcat_common.py Loading commit data...
longcat_quantize.py Loading commit data...
longcat_service.py Loading commit data...
longcat_train.py Loading commit data...
lora_train_worker.py Loading commit data...
manual_multimodal_test_client.py Loading commit data...
melotts_service.py Loading commit data...
mux_service.py Loading commit data...
parler_tts_service.py Loading commit data...
pyannote_service.py Loading commit data...
review_outputs.py Loading commit data...
runpod_model_test.py Loading commit data...
video_dubber.py Loading commit data...
video_editor.py Loading commit data...
videogen.py Loading commit data...
xtts_service.py Loading commit data...