Instructions to use ResembleAI/chatterbox with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Chatterbox
How to use ResembleAI/chatterbox with Chatterbox:
# pip install chatterbox-tts import torchaudio as ta from chatterbox.tts import ChatterboxTTS model = ChatterboxTTS.from_pretrained(device="cuda") text = "Ezreal and Jinx teamed up with Ahri, Yasuo, and Teemo to take down the enemy's Nexus in an epic late-game pentakill." wav = model.generate(text) ta.save("test-1.wav", wav, model.sr) # If you want to synthesize with a different voice, specify the audio prompt AUDIO_PROMPT_PATH="YOUR_FILE.wav" wav = model.generate(text, audio_prompt_path=AUDIO_PROMPT_PATH) ta.save("test-2.wav", wav, model.sr) - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -119,7 +119,7 @@ from chatterbox.mtl_tts import ChatterboxMultilingualTTS
|
|
| 119 |
multilingual_model = ChatterboxMultilingualTTS.from_pretrained(device="cuda")
|
| 120 |
|
| 121 |
french_text = "Bonjour, comment ça va? Ceci est le modèle de synthèse vocale multilingue Chatterbox, il prend en charge 23 langues."
|
| 122 |
-
wav_french = multilingual_model.generate(
|
| 123 |
ta.save("test-french.wav", wav_french, model.sr)
|
| 124 |
|
| 125 |
chinese_text = "你好,今天天气真不错,希望你有一个愉快的周末。"
|
|
|
|
| 119 |
multilingual_model = ChatterboxMultilingualTTS.from_pretrained(device="cuda")
|
| 120 |
|
| 121 |
french_text = "Bonjour, comment ça va? Ceci est le modèle de synthèse vocale multilingue Chatterbox, il prend en charge 23 langues."
|
| 122 |
+
wav_french = multilingual_model.generate(french_text, language_id="fr")
|
| 123 |
ta.save("test-french.wav", wav_french, model.sr)
|
| 124 |
|
| 125 |
chinese_text = "你好,今天天气真不错,希望你有一个愉快的周末。"
|