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 (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -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 serve -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 serve -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 serve -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
- Atomic Chat new
- OpenClaw new
How to use MoYoYoTech/VoiceDialogue with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MoYoYoTech/VoiceDialogue:Q6_K
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:8080/v1 \ --custom-model-id "MoYoYoTech/VoiceDialogue:Q6_K" \ --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"
- 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
| """ | |
| 音频设备枚举工具。 | |
| 提供列出系统可用输入/输出设备(包括外置麦克风阵列、外置扬声器)的能力, | |
| 供 CLI、API 以及前端进行设备选择。 | |
| """ | |
| from typing import List, Optional, TypedDict | |
| import pyaudio | |
| from voice_dialogue.utils.logger import logger | |
| class InputDeviceInfo(TypedDict): | |
| """输入设备信息。""" | |
| index: int | |
| name: str | |
| max_input_channels: int | |
| default_sample_rate: int | |
| is_default: bool | |
| class OutputDeviceInfo(TypedDict): | |
| """输出设备信息。""" | |
| index: int | |
| name: str | |
| max_output_channels: int | |
| default_sample_rate: int | |
| is_default: bool | |
| def _get_default_input_index(p: pyaudio.PyAudio) -> Optional[int]: | |
| """获取系统默认输入设备索引,失败时返回 None。""" | |
| try: | |
| return int(p.get_default_input_device_info().get("index")) | |
| except Exception: | |
| return None | |
| def list_input_devices() -> List[InputDeviceInfo]: | |
| """ | |
| 列出所有可用的音频输入设备。 | |
| Returns: | |
| List[InputDeviceInfo]: 输入设备列表(仅包含 maxInputChannels > 0 的设备)。 | |
| """ | |
| devices: List[InputDeviceInfo] = [] | |
| p = pyaudio.PyAudio() | |
| try: | |
| default_index = _get_default_input_index(p) | |
| for i in range(p.get_device_count()): | |
| try: | |
| info = p.get_device_info_by_index(i) | |
| except Exception as e: | |
| logger.warning(f"读取音频设备 {i} 信息失败: {e}") | |
| continue | |
| max_input_channels = int(info.get("maxInputChannels", 0)) | |
| if max_input_channels <= 0: | |
| continue | |
| devices.append( | |
| InputDeviceInfo( | |
| index=int(info.get("index", i)), | |
| name=str(info.get("name", f"device-{i}")), | |
| max_input_channels=max_input_channels, | |
| default_sample_rate=int(info.get("defaultSampleRate", 16000)), | |
| is_default=(int(info.get("index", i)) == default_index), | |
| ) | |
| ) | |
| finally: | |
| p.terminate() | |
| return devices | |
| def get_default_input_device_index() -> Optional[int]: | |
| """获取系统默认输入设备索引。""" | |
| p = pyaudio.PyAudio() | |
| try: | |
| return _get_default_input_index(p) | |
| finally: | |
| p.terminate() | |
| def is_valid_input_device(index: Optional[int]) -> bool: | |
| """ | |
| 校验给定索引是否为有效的输入设备。 | |
| Args: | |
| index: 设备索引;None 表示使用系统默认设备,视为有效。 | |
| Returns: | |
| bool: 是否有效。 | |
| """ | |
| if index is None: | |
| return True | |
| return any(d["index"] == index for d in list_input_devices()) | |
| def _get_default_output_index(p: pyaudio.PyAudio) -> Optional[int]: | |
| """获取系统默认输出设备索引,失败时返回 None。""" | |
| try: | |
| return int(p.get_default_output_device_info().get("index")) | |
| except Exception: | |
| return None | |
| def list_output_devices() -> List[OutputDeviceInfo]: | |
| """ | |
| 列出所有可用的音频输出设备。 | |
| Returns: | |
| List[OutputDeviceInfo]: 输出设备列表(仅包含 maxOutputChannels > 0 的设备)。 | |
| """ | |
| devices: List[OutputDeviceInfo] = [] | |
| p = pyaudio.PyAudio() | |
| try: | |
| default_index = _get_default_output_index(p) | |
| for i in range(p.get_device_count()): | |
| try: | |
| info = p.get_device_info_by_index(i) | |
| except Exception as e: | |
| logger.warning(f"读取音频设备 {i} 信息失败: {e}") | |
| continue | |
| max_output_channels = int(info.get("maxOutputChannels", 0)) | |
| if max_output_channels <= 0: | |
| continue | |
| devices.append( | |
| OutputDeviceInfo( | |
| index=int(info.get("index", i)), | |
| name=str(info.get("name", f"device-{i}")), | |
| max_output_channels=max_output_channels, | |
| default_sample_rate=int(info.get("defaultSampleRate", 48000)), | |
| is_default=(int(info.get("index", i)) == default_index), | |
| ) | |
| ) | |
| finally: | |
| p.terminate() | |
| return devices | |
| def get_default_output_device_index() -> Optional[int]: | |
| """获取系统默认输出设备索引。""" | |
| p = pyaudio.PyAudio() | |
| try: | |
| return _get_default_output_index(p) | |
| finally: | |
| p.terminate() | |
| def is_valid_output_device(index: Optional[int]) -> bool: | |
| """ | |
| 校验给定索引是否为有效的输出设备。 | |
| Args: | |
| index: 设备索引;None 表示使用系统默认设备,视为有效。 | |
| Returns: | |
| bool: 是否有效。 | |
| """ | |
| if index is None: | |
| return True | |
| return any(d["index"] == index for d in list_output_devices()) | |