Text-to-Speech
Transformers
ONNX
GGUF
Chinese
English
voice-dialogue
speech-recognition
large-language-model
asr
tts
llm
chinese
english
real-time
conversational
Instructions to use MoYoYoTech/VoiceDialogue with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MoYoYoTech/VoiceDialogue with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="MoYoYoTech/VoiceDialogue") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MoYoYoTech/VoiceDialogue", dtype="auto") - llama-cpp-python
How to use MoYoYoTech/VoiceDialogue with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="MoYoYoTech/VoiceDialogue", filename="assets/models/llm/qwen/Qwen3-8B-Q6_K.gguf", )
llm.create_chat_completion( messages = "\"The answer to the universe is 42\"" )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MoYoYoTech/VoiceDialogue with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf MoYoYoTech/VoiceDialogue:Q6_K # Run inference directly in the terminal: llama-cli -hf MoYoYoTech/VoiceDialogue:Q6_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf MoYoYoTech/VoiceDialogue:Q6_K # Run inference directly in the terminal: llama-cli -hf MoYoYoTech/VoiceDialogue:Q6_K
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 MoYoYoTech/VoiceDialogue:Q6_K # Run inference directly in the terminal: ./llama-cli -hf MoYoYoTech/VoiceDialogue:Q6_K
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 MoYoYoTech/VoiceDialogue:Q6_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf MoYoYoTech/VoiceDialogue:Q6_K
Use Docker
docker model run hf.co/MoYoYoTech/VoiceDialogue:Q6_K
- LM Studio
- Jan
- Ollama
How to use MoYoYoTech/VoiceDialogue with Ollama:
ollama run hf.co/MoYoYoTech/VoiceDialogue:Q6_K
- Unsloth Studio
How to use MoYoYoTech/VoiceDialogue 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 MoYoYoTech/VoiceDialogue 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 MoYoYoTech/VoiceDialogue to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MoYoYoTech/VoiceDialogue to start chatting
- Pi
How to use MoYoYoTech/VoiceDialogue with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf MoYoYoTech/VoiceDialogue:Q6_K
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "MoYoYoTech/VoiceDialogue:Q6_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use MoYoYoTech/VoiceDialogue with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf MoYoYoTech/VoiceDialogue:Q6_K
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:8080/v1 hermes config set model.default MoYoYoTech/VoiceDialogue:Q6_K
Run Hermes
hermes
- Docker Model Runner
How to use MoYoYoTech/VoiceDialogue with Docker Model Runner:
docker model run hf.co/MoYoYoTech/VoiceDialogue:Q6_K
- Lemonade
How to use MoYoYoTech/VoiceDialogue with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MoYoYoTech/VoiceDialogue:Q6_K
Run and chat with the model
lemonade run user.VoiceDialogue-Q6_K
List all available models
lemonade list
liumaolin commited on
Commit ·
7e92ad3
1
Parent(s): b2c10c8
Add Maple and Cove voice models to MoYoYo TTS configuration
Browse files- Introduce two new voice models: Maple (轻松坦率) and Cove (沉稳直率).
- Configure model repositories, parameters, and corresponding inference settings.
- Add associated model files, including GPT weights, SoVITS weights, and reference audios.
- assets/models/tts/moyoyo/GPT_weights/maple_best_gpt.ckpt +3 -0
- assets/models/tts/moyoyo/SoVITS_weights/cove_best_sovits.pth +3 -0
- assets/models/tts/moyoyo/SoVITS_weights/maple_best_sovits.pth +3 -0
- assets/models/tts/moyoyo/ref_audios/cove_ref.wav +3 -0
- assets/models/tts/moyoyo/ref_audios/maple_ref.wav +3 -0
- src/voice_dialogue/services/audio/generators/configs/moyoyo.py +58 -0
assets/models/tts/moyoyo/GPT_weights/maple_best_gpt.ckpt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:732f94e63b148066e24c7f9d2637f3374083e637635f07fbdb695dee20ddbe1f
|
| 3 |
+
size 155315150
|
assets/models/tts/moyoyo/SoVITS_weights/cove_best_sovits.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3faa069d3c45a5b876a3e93516c8c6a308522e60582b70b17ccebb2434251198
|
| 3 |
+
size 85007879
|
assets/models/tts/moyoyo/SoVITS_weights/maple_best_sovits.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:877f188bb86820629400fb7585c70e1642fad9d15409b2c8ceedf5b737c9b8ce
|
| 3 |
+
size 85007879
|
assets/models/tts/moyoyo/ref_audios/cove_ref.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2879a08a134b812245cf67afb4cb1a330d4fc59b43bb68a2fe20efbab10df759
|
| 3 |
+
size 479404
|
assets/models/tts/moyoyo/ref_audios/maple_ref.wav
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da780b24686c3b065a594d6d35380a99bac519608e4c93753acf165b68041e50
|
| 3 |
+
size 422444
|
src/voice_dialogue/services/audio/generators/configs/moyoyo.py
CHANGED
|
@@ -189,6 +189,64 @@ MOYOYO_TTS_CONFIGS = [
|
|
| 189 |
'seed': 233333,
|
| 190 |
},
|
| 191 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 192 |
]
|
| 193 |
|
| 194 |
|
|
|
|
| 189 |
'seed': 233333,
|
| 190 |
},
|
| 191 |
},
|
| 192 |
+
{
|
| 193 |
+
'repository': 'MoYoYoTech/tone-models',
|
| 194 |
+
'character_name': 'Maple',
|
| 195 |
+
'cover_image': '',
|
| 196 |
+
'description': '轻松坦率',
|
| 197 |
+
'file_size': '241M',
|
| 198 |
+
'is_chinese_voice': False,
|
| 199 |
+
'model_files': {
|
| 200 |
+
**BASE_PRETRAINED_FILES,
|
| 201 |
+
'gpt-weights': 'GPT_weights/maple_best_gpt.ckpt',
|
| 202 |
+
'sovits-weights': 'SoVITS_weights/maple_best_sovits.pth',
|
| 203 |
+
'reference_audio': 'ref_audios/maple_ref.wav',
|
| 204 |
+
},
|
| 205 |
+
'inference_parameters': {
|
| 206 |
+
'text_lang': "en",
|
| 207 |
+
'prompt_text': "There was a little tea shop in a bustling village. Every morning, the owner, an elderly woman, would wake up early.",
|
| 208 |
+
'prompt_lang': "en",
|
| 209 |
+
'top_k': 5,
|
| 210 |
+
'top_p': 1,
|
| 211 |
+
'temperature': 1,
|
| 212 |
+
'text_split_method': "cut4",
|
| 213 |
+
'batch_size': 100,
|
| 214 |
+
'speed_factor': 1.0,
|
| 215 |
+
'split_bucket': True,
|
| 216 |
+
'return_fragment': False,
|
| 217 |
+
'fragment_interval': 0.07,
|
| 218 |
+
'seed': 233333,
|
| 219 |
+
},
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
'repository': 'MoYoYoTech/tone-models',
|
| 223 |
+
'character_name': 'Cove',
|
| 224 |
+
'cover_image': '',
|
| 225 |
+
'description': '沉稳直率',
|
| 226 |
+
'file_size': '241M',
|
| 227 |
+
'is_chinese_voice': False,
|
| 228 |
+
'model_files': {
|
| 229 |
+
**BASE_PRETRAINED_FILES,
|
| 230 |
+
'gpt-weights': 'GPT_weights/maple_best_gpt.ckpt',
|
| 231 |
+
'sovits-weights': 'SoVITS_weights/cove_best_sovits.pth',
|
| 232 |
+
'reference_audio': 'ref_audios/cove_ref.wav',
|
| 233 |
+
},
|
| 234 |
+
'inference_parameters': {
|
| 235 |
+
'text_lang': "en",
|
| 236 |
+
'prompt_text': "and he has a long career in the Senate representing Delaware. So both have had significant impacts on American politics and policies.",
|
| 237 |
+
'prompt_lang': "en",
|
| 238 |
+
'top_k': 5,
|
| 239 |
+
'top_p': 1,
|
| 240 |
+
'temperature': 1,
|
| 241 |
+
'text_split_method': "cut4",
|
| 242 |
+
'batch_size': 100,
|
| 243 |
+
'speed_factor': 1.0,
|
| 244 |
+
'split_bucket': True,
|
| 245 |
+
'return_fragment': False,
|
| 246 |
+
'fragment_interval': 0.07,
|
| 247 |
+
'seed': 233333,
|
| 248 |
+
},
|
| 249 |
+
},
|
| 250 |
]
|
| 251 |
|
| 252 |
|