Instructions to use computeram/cosyvoice3-badini-tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- CosyVoice
How to use computeram/cosyvoice3-badini-tts with CosyVoice:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
CosyVoice3 โ Badini Kurdish TTS (fine-tuned)
A CosyVoice3 model (https://github.com/FunAudioLLM/CosyVoice) fine-tuned for zero-shot text-to-speech in the Badini dialect of Kurdish.
Usage
import sys
sys.path.append("CosyVoice")
sys.path.append("CosyVoice/third_party/Matcha-TTS")
from cosyvoice.cli.cosyvoice import AutoModel
import torchaudio
cosy = AutoModel(model_dir="<path to downloaded repo>")
prompt_wav = "path/to/prompt.wav"
prompt_text = "transcript of the prompt audio"
instruct = "You are a helpful assistant.<|endofprompt|>"
for out in cosy.inference_zero_shot(
"text to synthesize", instruct + prompt_text, prompt_wav, stream=False
):
torchaudio.save("output.wav", out["tts_speech"], cosy.sample_rate)
- Downloads last month
- 78