Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

arjun10g
/
chatterbox-web

Text-to-Speech
Transformers.js
ONNX
Chatterbox
tts
webgpu
Model card Files Files and versions
xet
Community

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
chatterbox-web
907 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
arjun10g's picture
arjun10g
Per-file external data map; stub encoder has none
f42e754 verified 17 days ago
  • onnx
    Browser-sized Chatterbox: stub speech encoder + precomputed voice 17 days ago
  • voices
    Browser-sized Chatterbox: stub speech encoder + precomputed voice 17 days ago
  • .gitattributes
    1.73 kB
    Browser-sized Chatterbox: stub speech encoder + precomputed voice 17 days ago
  • README.md
    1.19 kB
    Browser-sized Chatterbox: stub speech encoder + precomputed voice 17 days ago
  • config.json
    1.24 kB
    Per-file external data map; stub encoder has none 17 days ago
  • generation_config.json
    93 Bytes
    Browser-sized Chatterbox: stub speech encoder + precomputed voice 17 days ago
  • preprocessor_config.json
    130 Bytes
    Browser-sized Chatterbox: stub speech encoder + precomputed voice 17 days ago
  • tokenizer.json
    28.5 kB
    Browser-sized Chatterbox: stub speech encoder + precomputed voice 17 days ago
  • tokenizer_config.json
    244 Bytes
    Add missing tokenizer_config.json 17 days ago