1import torchaudio as ta
2from chatterbox.mtl_tts import ChatterboxMultilingualTTS
34REPO_ID ="CoRal-project/roest-v3-chatterbox-500m"5device ="cuda"# Change to cpu if no GPU is available67# Load the model8model_dir = snapshot_download(9 repo_id=REPO_ID,10 token=os.getenv("HF_TOKEN")orTrue,11# Optional: Filter to download only what you need12 allow_patterns=["*.safetensors","*.json","*.txt","*.pt","*.model"],13)14model = ChatterboxMultilingualTTS.from_local(model_dir, device=device)1516text ="Hej, hvordan går det? Jeg er dansk Chatterbox, og taler naturligt dansk."17wav = model.generate(text, language_id="da")18ta.save("test.wav", wav, model.sr)1920# If you want to synthesize with a different voice, specify the audio prompt21AUDIO_PROMPT_PATH ="YOUR_FILE.wav"22wav = model.generate(text, language_id="da", audio_prompt_path=AUDIO_PROMPT_PATH)23ta.save("test-2.wav", wav, model.sr)
Model Details
The model is a finetuned variant of Chatterbox Multilingual, one of the leading open-source text-to-speech models. The base Chatterbox model is built on a 0.5B Llama backbone and trained on more than 500,000 hours of high-quality multilingual speech data across 23 languages, including Danish.
We finetuned the model on over 2000 hours of Danish speech to further improve performance and reliability. The model supports zero-shot voice cloning on as little as a 10 seconds audio prompt. It is compatible with the original Chatterbox library, thus being easy to setup and retaining the built-in Watermarked outputs.
The model works very well with the two predefined speakers from the CoRal-tts dataset, Mic and Nic.
Known limitations
Though the original model supports exaggeration/intensity control, this does not, as the dataset does not support it.
The model only supports Danish and English with a heavy Danish accent.
Evaluation
The model was evaluated using Mean Opinion Score (MOS), achieving a score of 4.23 as rated by a panel of 20 native Danish speakers.
The evaluation used a set of 10 samples for two different speakers, Mic and Nic. Samples were generated with temp=0.7, top_p=0.95, top_k=600. The MOS scale was defined as follows:
Score
Rating
Description
1.0
Bad
Speech sounds completely unnatural and artificial. The synthetic voice is very obvious and so distracting that it can be hard to listen to.
2.0
Poor
Speech sounds mostly unnatural. The synthetic quality is obvious and feels distracting, but still bearable.
3.0
Fair
Speech appears both natural and unnatural in roughly equal measure. It's clear the voice is synthetic, and it can be somewhat distracting.
4.0
Good
Speech sounds mostly natural. You can tell it's synthetic speech, but it's only slightly noticeable and not distracting.
5.0
Excellent
Speech sounds completely natural and cannot be distinguished from a real human voice. There are no audible signs of synthetic speech.
Training notes
The following hyperparameters were used during training: