Views
No views yet
Always verify the supported language IDs with the specific Chatterbox checkpoint being used.
1import torchaudio as ta
2from chatterbox.mtl_tts import ChatterboxMultilingualTTS
3
4model = ChatterboxMultilingualTTS.from_pretrained(device="cuda")
5
6text = "Welcome to SonicVox Multilingual."
7
8wav = model.generate(
9 text,
10 language_id="en",
11 audio_prompt_path="reference.wav"
12)
13
14ta.save("output.wav", wav, model.sr)