Text-to-Speech
ONNX
GGUF
Chinese
English
onnxruntime
tts
on-device
jetson
telephony
vits
mb-istft-vits
multi-speaker
mandarin
taiwanese-mandarin
imatrix
conversational
Instructions to use Luigi/PrimeTTS 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 Luigi/PrimeTTS 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 Luigi/PrimeTTS:F32 # Run inference directly in the terminal: llama cli -hf Luigi/PrimeTTS:F32
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Luigi/PrimeTTS:F32 # Run inference directly in the terminal: llama cli -hf Luigi/PrimeTTS:F32
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 Luigi/PrimeTTS:F32 # Run inference directly in the terminal: ./llama-cli -hf Luigi/PrimeTTS:F32
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 Luigi/PrimeTTS:F32 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Luigi/PrimeTTS:F32
Use Docker
docker model run hf.co/Luigi/PrimeTTS:F32
- LM Studio
- Jan
- Ollama
How to use Luigi/PrimeTTS with Ollama:
ollama run hf.co/Luigi/PrimeTTS:F32
- Unsloth Studio
How to use Luigi/PrimeTTS with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Luigi/PrimeTTS to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Luigi/PrimeTTS to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Luigi/PrimeTTS to start chatting
- Docker Model Runner
How to use Luigi/PrimeTTS with Docker Model Runner:
docker model run hf.co/Luigi/PrimeTTS:F32
- Lemonade
How to use Luigi/PrimeTTS with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Luigi/PrimeTTS:F32
Run and chat with the model
lemonade run user.PrimeTTS-F32
List all available models
lemonade list
- Atomic Chat
File size: 1,124 Bytes
f34bd6d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | {
"name": "PrimeTTS v2-Stream (Xinran)",
"arch": "MB-iSTFT-VITS, token-level streaming (band-attention encoder + causal FFN + causal MB-iSTFT vocoder)",
"sample_rate": 16000,
"languages": ["zh-TW", "en"],
"hidden_channels": 192, "inter_channels": 192, "n_layers": 6, "n_heads": 2,
"gen_istft_n_fft": 16, "gen_istft_hop_size": 4, "subbands": 4,
"encoder_lookahead_tokens": 5,
"streaming": { "chunk_frames": 24, "left_cache_frames": 64, "right_lookahead_frames": 4, "samples_per_frame": 256 },
"frontend": { "add_blank": true, "n_symbols": 88, "n_tones": 6, "n_langs": 2,
"note": "text -> phone/tone/lang ids via g2pw (bopomofo, Taiwan readings) + g2p_en (arpabet); interleave blank(0) between tokens. Same frontend as Luigi/PrimeTTS demo (frontend_bopomofo)." },
"files": {
"v2stream_enc.onnx": "text encoder + duration predictor + reverse flow -> z[1,192,T] (run ONCE)",
"v2stream_dec.onnx": "causal MB-iSTFT vocoder: z[1,192,Tc] -> wav[1,1,Tc*256] (run PER CHUNK, overlap-save)",
"primetts_v2stream_xinran_f32.gguf": "single-graph gguf for RapidSpeech.cpp ggml (MBISTFT_STREAM=1)"
}
}
|