Update README.md
Browse files47 unmodified lines4849505152535416 unmodified lines71727374757621 unmodified lines98991001011021031041053 unmodified lines10911011111211311411511611711811912012112212312412512612760 unmodified lines18818919019147 unmodified lines| Model | Size | Languages | Key Features | Best For | 🤗 | Examples ||:----------------------------------------------------------------------------------------------------------------| :--- | :--- |:--------------------------------------------------------|:---------------------------------------------|:--------------------------------------------------------------------------| :--- || **Chatterbox-Nano** | **110M** | **English** | Paralinguistic Tags (`[laugh]`), 3x faster than realtime on 8core cpu | [Demo](https://huggingface.co/spaces/ResembleAI/chatterbox-nano-demo) | [Listen](https://resemble-ai.github.io/chatterbox_turbo_demopage/) || Chatterbox-Turbo | 350M | English | Paralinguistic Tags (`[laugh]`), Lower Compute and VRAM | Zero-shot voice agents, Production | [Demo](https://huggingface.co/spaces/ResembleAI/chatterbox-turbo-demo) | [Listen](https://resemble-ai.github.io/chatterbox_turbo_demopage/) || Chatterbox-Multilingual [(Language list)](#supported-languages) | 500M | 23+ | Zero-shot cloning, Multiple Languages | Global applications, Localization | [Demo](https://huggingface.co/spaces/ResembleAI/Chatterbox-Multilingual-TTS) | [Listen](https://resemble-ai.github.io/chatterbox_demopage/) || Chatterbox [(Tips and Tricks)](#original-chatterbox-tips) | 500M | English | CFG & Exaggeration tuning | General zero-shot TTS with creative controls | [Demo](https://huggingface.co/spaces/ResembleAI/Chatterbox) | [Listen](https://resemble-ai.github.io/chatterbox_demopage/) |16 unmodified lines## Usage##### Chatterbox-Turbo```python21 unmodified linesfrom chatterbox.tts import ChatterboxTTSfrom chatterbox.mtl_tts import ChatterboxMultilingualTTS# English examplemodel = 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)3 unmodified linesmultilingual_model = ChatterboxMultilingualTTS.from_pretrained(device=device)french_text = "Bonjour, comment ça va? Ceci est le modèle de synthèse vocale multilingue Chatterbox, il prend en charge 23 langues."wav_french = multilingual_model.generate(spanish_text, language_id="fr")ta.save("test-french.wav", wav_french, model.sr)chinese_text = "你好,今天天气真不错,希望你有一个愉快的周末。"wav_chinese = multilingual_model.generate(chinese_text, language_id="zh")ta.save("test-chinese.wav", wav_chinese, model.sr)# If you want to synthesize with a different voice, specify the audio promptAUDIO_PROMPT_PATH = "YOUR_FILE.wav"wav = model.generate(text, audio_prompt_path=AUDIO_PROMPT_PATH)ta.save("test-2.wav", wav, model.sr)```See `example_tts.py` and `example_vc.py` for more examples.## Supported LanguagesArabic (ar) • Danish (da) • German (de) • Greek (el) • English (en) • Spanish (es) • Finnish (fi) • French (fr) • Hebrew (he) • Hindi (hi) • Italian (it) • Japanese (ja) • Korean (ko) • Malay (ms) • Dutch (nl) • Norwegian (no) • Polish (pl) • Portuguese (pt) • Russian (ru) • Swedish (sv) • Swahili (sw) • Turkish (tr) • Chinese (zh)60 unmodified lines}```## DisclaimerDon't use this model to do bad things. Prompts are sourced from freely available data on the internet.47 unmodified lines4849505152535416 unmodified lines71727374757677787980818283848586878889909192939495969721 unmodified lines1191201211221231241251261271283 unmodified lines13213313413513613713813914014114214314414514614714814915060 unmodified lines21121221321447 unmodified lines| Model | Size | Languages | Key Features | Best For | 🤗 | Examples ||:----------------------------------------------------------------------------------------------------------------| :--- | :--- |:--------------------------------------------------------|:---------------------------------------------|:--------------------------------------------------------------------------| :--- || **Chatterbox-Nano** | **110M** | **English** | Paralinguistic Tags (`[laugh]`), 3x faster than realtime on 8-core CPU | On-device / CPU inference, tight latency & memory budgets | [Demo](https://huggingface.co/spaces/ResembleAI/chatterbox-nano-demo) | [Listen](https://resemble-ai.github.io/chatterbox_turbo_demopage/) || Chatterbox-Turbo | 350M | English | Paralinguistic Tags (`[laugh]`), Lower Compute and VRAM | Zero-shot voice agents, Production | [Demo](https://huggingface.co/spaces/ResembleAI/chatterbox-turbo-demo) | [Listen](https://resemble-ai.github.io/chatterbox_turbo_demopage/) || Chatterbox-Multilingual [(Language list)](#supported-languages) | 500M | 23+ | Zero-shot cloning, Multiple Languages | Global applications, Localization | [Demo](https://huggingface.co/spaces/ResembleAI/Chatterbox-Multilingual-TTS) | [Listen](https://resemble-ai.github.io/chatterbox_demopage/) || Chatterbox [(Tips and Tricks)](#original-chatterbox-tips) | 500M | English | CFG & Exaggeration tuning | General zero-shot TTS with creative controls | [Demo](https://huggingface.co/spaces/ResembleAI/Chatterbox) | [Listen](https://resemble-ai.github.io/chatterbox_demopage/) |16 unmodified lines## Usage##### Chatterbox-NanoNano shares Turbo's architecture and is loaded through the same `ChatterboxTurboTTS` class by passing `nano=True`:```pythonimport torchaudio as taimport torchfrom chatterbox.tts_turbo import ChatterboxTurboTTS# Load the Nano model (also runs on CPU: device="cpu")model = ChatterboxTurboTTS.from_pretrained(device="cuda", nano=True)# Generate with Paralinguistic Tagstext = "Hi there, Sarah here from MochaFone calling you back [chuckle], have you got one minute to chat about the billing issue?"# Generate audio (requires a reference clip for voice cloning)wav = model.generate(text, audio_prompt_path="your_10s_ref_clip.wav")ta.save("test-nano.wav", wav, model.sr)```##### Chatterbox-Turbo```python21 unmodified linesfrom chatterbox.tts import ChatterboxTTSfrom chatterbox.mtl_tts import ChatterboxMultilingualTTSdevice = "cuda" # or "cpu" / "mps"# English examplemodel = ChatterboxTTS.from_pretrained(device=device)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)3 unmodified linesmultilingual_model = ChatterboxMultilingualTTS.from_pretrained(device=device)french_text = "Bonjour, comment ça va? Ceci est le modèle de synthèse vocale multilingue Chatterbox, il prend en charge 23 langues."wav_french = multilingual_model.generate(french_text, language_id="fr")ta.save("test-french.wav", wav_french, multilingual_model.sr)chinese_text = "你好,今天天气真不错,希望你有一个愉快的周末。"wav_chinese = multilingual_model.generate(chinese_text, language_id="zh")ta.save("test-chinese.wav", wav_chinese, multilingual_model.sr)# If you want to synthesize with a different voice, specify the audio promptAUDIO_PROMPT_PATH = "YOUR_FILE.wav"wav = model.generate(text, audio_prompt_path=AUDIO_PROMPT_PATH)ta.save("test-2.wav", wav, model.sr)```See `example_tts.py`, `example_tts_turbo.py`, `example_tts_nano.py`, and `example_vc.py` for more examples.## Supported LanguagesArabic (ar) • Danish (da) • German (de) • Greek (el) • English (en) • Spanish (es) • Finnish (fi) • French (fr) • Hebrew (he) • Hindi (hi) • Italian (it) • Japanese (ja) • Korean (ko) • Malay (ms) • Dutch (nl) • Norwegian (no) • Polish (pl) • Portuguese (pt) • Russian (ru) • Swedish (sv) • Swahili (sw) • Turkish (tr) • Chinese (zh)60 unmodified lines}```## DisclaimerDon't use this model to do bad things. Prompts are sourced from freely available data on the internet.
README.md+30-7