Instructions to use Dezheen89/cosyvoice with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- CosyVoice
How to use Dezheen89/cosyvoice 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 (usage files)
Reference voices and inference script for the Badini Kurdish CosyVoice3 fine-tune.
The fine-tuned model is in this repo: model_all/llm.pt (trained on all three speakers).
The unchanged base-model files (flow, hift, tokenizer) are fetched automatically from
computeram/cosyvoice3-badini-tts; the old llm.pt there is not used.
CosyVoice3 is a zero-shot voice-cloning model: every generation needs a short reference clip and its exact transcript. "Emotion" simply means which real recording of the speaker is used as the reference. This repo bundles them:
| Voice | Gender | Emotions | Files |
|---|---|---|---|
hayfa |
female | natural, angry, sad, happy, fear, surprise | prompt-hayfa (natural), prompt-<emotion> |
abdullah |
male | angry, sad, happy, fear, surprise | prompt-abdullah-<emotion> |
bafreen |
female | angry, sad, happy, fear, surprise | prompt-bafreen-<emotion> |
Each clip is a .wav (44.1 kHz, mono, 3β7 s) with its exact transcript in the matching .txt.
Abdullah and Bafreen have no neutral ("natural") recording.
infer.pyβ loads the weights and synthesizes speech in the chosen voice and emotion
Usage
git clone --recursive https://github.com/FunAudioLLM/CosyVoice.git
pip install -r CosyVoice/requirements.txt huggingface_hub
python infer.py "text to speak" --voice abdullah --emotion sad \
--cosyvoice-dir ./CosyVoice --out output.wav
To use another voice, pass --prompt-wav and --prompt-text-file for a clip of that
speaker and its exact transcript.
- Downloads last month
- 20