Instructions to use Respair/Darya_TTS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Respair/Darya_TTS with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Respair/Darya_TTS:Q8_0 # Run inference directly in the terminal: llama cli -hf Respair/Darya_TTS:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Respair/Darya_TTS:Q8_0 # Run inference directly in the terminal: llama cli -hf Respair/Darya_TTS:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Respair/Darya_TTS:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf Respair/Darya_TTS:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Respair/Darya_TTS:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Respair/Darya_TTS:Q8_0
Use Docker
docker model run hf.co/Respair/Darya_TTS:Q8_0
- LM Studio
- Jan
- Ollama
How to use Respair/Darya_TTS with Ollama:
ollama run hf.co/Respair/Darya_TTS:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use Respair/Darya_TTS with Docker Model Runner:
docker model run hf.co/Respair/Darya_TTS:Q8_0
- Lemonade
How to use Respair/Darya_TTS with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Respair/Darya_TTS:Q8_0
Run and chat with the model
lemonade run user.Darya_TTS-Q8_0
List all available models
lemonade list
- Atomic Chat
The Poor man's TTS
| Architecture | Rectified-flow Enc/Dec DiT |
| Objective | Spanned mask (infilling) |
| Audio shape | FSQ latents @ 12.5 Hz - 44.1khz |
| Size | 1B params |
| Languages | English, Persian (+Tajik), Russian |
TL;DR
Darya is a fat, but fast speech generation neural net that can be trained cheaply, easily and you don't have to compromise much on its capacity.
Github
Inference
Start with the inference notebook.
or the gradio space - the denoiser is quantized to 8 bit, which causes degradation.
Features
- Fast on CPU, even at 1B, thanks in part to a few inference-side tricks and its efficient speech tokenizer.
- Style conditioning alongside the usual audio prompting path. This frees the whole context window for your input text, and makes prompting language-agnostic.
- Prompt mixing by mixing speaker vectors you can create new speaker attributes.
- Speech editing.
- Multispeaker generation via control tags (
<S1>,<S2>etc.), disfluencies (uh,umm), and non-speech sounds through supported emojis. - Phoneme-level Persian, Tajik and Russian support.
- Possibly the largest Zero-shot Persian model out there
- Cheap and easy to train., can be trained on consumer grade GPUs without making it small
Details
The goal of this project was to see if I could develop the fastest modern speech synthesizer possible (especially on cpu) on a limited budget, without compromising on the model size.
for more details please check here.
Training
You need a dataset with pre-extracted Dune FSQ latents and text, plus any tokenizer AutoTokenizer can load.
first extract the latents then train.
accelerate launch --mixed_precision bf16 train.py \
--config config_transformer.json \
--dataset /your_dataset \
--exp_dir exp/darya \
--tokenizer "your/tokenizer"
The second stage and its adversarial component are both optional. I never enabled the discriminator myself, too expensive to be worth it.
If you want to use another codec, you can just change dim 52 to your target. but beware that this may cost you a big chunk of the efficiency gains that this model offers.
License
see LICENSE.md.
I hope this work proves to be useful to you. Let me know if you have questions (preferably on X / twitter or email)
Specal thanks to my good friend Muhtasham for his financial support and his work on Tajik.
and also Mahdi and Amir for their help; Den4ik for ruaccent.
- Downloads last month
- 52
8-bit