Instructions to use CoRal-project/roest-v3-chatterbox-500m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Chatterbox
How to use CoRal-project/roest-v3-chatterbox-500m 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) - Notebooks
- Google Colab
- Kaggle
Speaker-id
Hello,
First of all, thank you for creating this very useful page.
I have a question about data preparation for training the model. During training, we have a speech sample and a text transcript for each data point. From these, we obtain the speech tokens that represent the label using the s3tokenizer. Additionally, we use the s3tokenizer to create speech tokens for the speech prompt (voice cloning).
I would like to know whether, for each data point during training, you create the prompt speech token using the same speech token label, or whether you use the speaker ID instead—where each data point has the same speaker's speech token but uses a different data sample?
Hi! Theres a section on the Github page explaining in more detail, but in short, its possible to both create the prompt speech token prior to training (by using another sample/uterance from the same ID), or from the data entry itself. Important to note is, if you use the sample itself, you must mask the first X seconds of the clip, which means the audio must be longer than that.
I hope it makes sense, otherwise just reach out again 🙂