Instructions to use arjun10g/chatterbox-web with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use arjun10g/chatterbox-web with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-to-speech', 'arjun10g/chatterbox-web'); - Chatterbox
How to use arjun10g/chatterbox-web 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
Download voices/default.bin from arjun10g/chatterbox-web: direct link, hf CLI and curl.
- Browser
- Download file 256 kB
-
https://huggingface.co/arjun10g/chatterbox-web/resolve/main/voices/default.bin
- Command line
-
hf download hf://arjun10g/chatterbox-web/voices/default.bin
-
curl -L -o default.bin https://huggingface.co/arjun10g/chatterbox-web/resolve/main/voices/default.bin
256 kB
- Xet hash:
- bdfcbec4602fdd17b369e0a475ce44eade8c61d64bc48cee9e1ce65373b84c09
- Size of remote file:
- 256 kB
- SHA256:
- 023b8dbf15e71c354b735dfa3453bcd7487f1d5afe20ca782ab04700807b2a42
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.