Text-to-Speech
Transformers
Safetensors
Zonos
zonos3_mini
text-generation
tts
speech-synthesis
multilingual
voice-cloning
zonos3
zyphra
Instructions to use Zyphra/ZONOS3-Mini-transformers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zyphra/ZONOS3-Mini-transformers with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="Zyphra/ZONOS3-Mini-transformers")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("Zyphra/ZONOS3-Mini-transformers", device_map="auto") - Zonos
How to use Zyphra/ZONOS3-Mini-transformers with Zonos:
# pip install git+https://github.com/Zyphra/Zonos.git import torchaudio from zonos.model import Zonos from zonos.conditioning import make_cond_dict model = Zonos.from_pretrained("Zyphra/ZONOS3-Mini-transformers", device="cuda") wav, sr = torchaudio.load("speaker.wav") # 5-10s reference clip speaker = model.make_speaker_embedding(wav, sr) cond = make_cond_dict(text="Hello, world!", speaker=speaker, language="en-us") codes = model.generate(model.prepare_conditioning(cond)) audio = model.autoencoder.decode(codes)[0].cpu() torchaudio.save("sample.wav", audio, model.autoencoder.sampling_rate) - Notebooks
- Google Colab
- Kaggle
Ctrl+K
- 8.55 kB xet
- 7.91 kB xet
- 7.15 kB xet
- 6.71 kB xet
- 12.3 kB xet
- 7.59 kB xet
- 7.39 kB xet
- 8.51 kB xet
- 7.39 kB xet
- 8.23 kB xet
- 7.71 kB xet
- 8.27 kB xet
- 7.67 kB xet
- 8.07 kB xet
- 13.2 kB xet
- 7.19 kB xet
- 8.83 kB xet
- 9.95 kB xet
- 7.75 kB xet
- 7.83 kB xet
- 7.71 kB xet
- 10.2 kB xet
- 9.63 kB xet
- 15.8 kB xet
- 8.27 kB xet
- 11 kB xet
- 8.75 kB xet
- 3.06 kB