Instructions to use YatharthS/VelvetVoice 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 YatharthS/VelvetVoice 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 YatharthS/VelvetVoice # Run inference directly in the terminal: llama cli -hf YatharthS/VelvetVoice
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf YatharthS/VelvetVoice # Run inference directly in the terminal: llama cli -hf YatharthS/VelvetVoice
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf YatharthS/VelvetVoice # Run inference directly in the terminal: ./build/bin/llama cli -hf YatharthS/VelvetVoice
Use Docker
docker model run hf.co/YatharthS/VelvetVoice
- Llama new
- LM Studio
- Jan
- Ollama
How to use YatharthS/VelvetVoice with Ollama:
ollama run hf.co/YatharthS/VelvetVoice
- Unsloth Desktop
- Pi
How to use YatharthS/VelvetVoice with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf YatharthS/VelvetVoice
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "YatharthS/VelvetVoice" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use YatharthS/VelvetVoice with Docker Model Runner:
docker model run hf.co/YatharthS/VelvetVoice
- Lemonade
How to use YatharthS/VelvetVoice with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull YatharthS/VelvetVoice
Run and chat with the model
lemonade run user.VelvetVoice-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use YatharthS/VelvetVoice with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf YatharthS/VelvetVoice
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default YatharthS/VelvetVoice
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use YatharthS/VelvetVoice with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf YatharthS/VelvetVoice
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "YatharthS/VelvetVoice" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
VelvetVoice
VelvetVoice is a lightweight, high-speed Text-to-Speech model built on a 1-step flow-matching architecture. It supports voice cloning, low-latency streaming along with unique features such as text-prompted voice generation and complex text normalization.
Main Features
- Fast & Lightweight: Runs at 60xโ800x realtime on GPU (2xโ20x on CPU) in ~250 MB to <2 GB RAM.
- Flexible Voice Control: Supports voice cloning, preset characters, and text-prompted voices (emotion, pitch, timbre, speed).
- Neural Text Normalization: Converts complex symbols and formatting into natural speech.
Simple code usage
from velvet_tts import VelvetVoice
velvet = VelvetVoice(
bundle="small", # "small" or "mini"
device="cpu", # "cpu" or "cuda"
flow_gain=1.0,
)
text = "Hey, this is VelvetVoice!"
voice_name = "azelma"
## Saves to output_path
audio = velvet.gen(text, voice=voice_name, output_path="output.wav")
Please check the repo for more detailed usage(voice cloning, text-prompt voice generation, complex text normalization, streaming, etc.)
Acknowledgements
- Pocket-TTS for their excellent code and model.
- MioCodec for their great codec.
- Granite-R2-small for their fantastic retrieval model.
- MNN-Pocket for their wonderful small LM.
Final Notes
The model and code are licensed under the CC-BY-4.0 and Apache 2.0 license respectively, they permit research, personal, and commercial uses given attribution. See LICENSE for details.
Stars/Likes would be appreciated, thank you.
Email: yatharthsharma3501@gmail.com
- Downloads last month
- 56
We're not able to determine the quantization variants.