Run this model with HF Jobs
Run MoYoYoTech/VoiceDialogue on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/MoYoYoTech/VoiceDialogue. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/MoYoYoTech/VoiceDialogue on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
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")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MoYoYoTech/VoiceDialogue", device_map="auto") - 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
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 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
- Llama new
- LM Studio
- Jan
- Ollama
How to use MoYoYoTech/VoiceDialogue with Ollama:
ollama run hf.co/MoYoYoTech/VoiceDialogue:Q6_K
- Unsloth Desktop
- 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 @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": "MoYoYoTech/VoiceDialogue:Q6_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- 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
- Hermes Agent
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:9931/v1 hermes config set model.default MoYoYoTech/VoiceDialogue:Q6_K
Run Hermes
hermes
- Atomic Chat
- OpenClaw
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:9931/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"
Add echo cancellation and VAD toggle support in service factories and routes
Browse files- Extend `create_audio_capture` and `create_speech_monitor` methods to include `enable_echo_cancellation` and `enable_vad` options.
- Update service definitions and health checks to pass configuration dynamically.
- Add `SystemStartRequest` schema to support echo cancellation toggle during system startup.
- Adjust `_start_system_background` logic to initialize services based on the new toggles.
Files changed (3)
12 unmodified lines13141516171819202122232425262728293059 unmodified lines9091929394959697989910010127 unmodified lines12913013113213313413513613713813912 unmodified lines"""服务工厂类,封装所有服务的创建逻辑"""@staticmethoddef create_audio_capture() -> AudioCapture:"""创建音频捕获服务"""return AudioCapture(audio_frames_queue=audio_frames_queue)@staticmethoddef create_speech_monitor() -> SpeechStateMonitor:"""创建语音监控服务"""return SpeechStateMonitor(audio_frame_queue=audio_frames_queue,user_voice_queue=user_voice_queue,)@staticmethod59 unmodified lines# ),# 语音状态监控服务ServiceDefinition(name="speech_monitor",factory=ServiceFactories.create_speech_monitor,dependencies=[],health_check=lambda service: hasattr(service, 'is_ready') and service.is_ready),# ASR语音识别服务ServiceDefinition(27 unmodified lines]def get_audio_capture_service_definition() -> ServiceDefinition:"""获取音频捕获服务定义"""return ServiceDefinition(name="audio_capture",factory=ServiceFactories.create_audio_capture,dependencies=[],health_check=lambda service: hasattr(service, 'is_ready') and service.is_ready)12 unmodified lines131415161718192021222324252627282930313259 unmodified lines929394959697989910010110210327 unmodified lines13113213313413513613713813914014114214314414514614714814915015112 unmodified lines"""服务工厂类,封装所有服务的创建逻辑"""@staticmethoddef create_audio_capture(enable_echo_cancellation: bool = True) -> AudioCapture:"""创建音频捕获服务"""return AudioCapture(audio_frames_queue=audio_frames_queue,enable_echo_cancellation=enable_echo_cancellation)@staticmethoddef create_speech_monitor(enable_vad: bool = False) -> SpeechStateMonitor:"""创建语音监控服务"""return SpeechStateMonitor(audio_frame_queue=audio_frames_queue,user_voice_queue=user_voice_queue,enable_vad=enable_vad)@staticmethod59 unmodified lines# ),# 语音状态监控服务# ServiceDefinition(# name="speech_monitor",# factory=ServiceFactories.create_speech_monitor,# dependencies=[],# health_check=lambda service: hasattr(service, 'is_ready') and service.is_ready# ),# ASR语音识别服务ServiceDefinition(27 unmodified lines]def get_audio_capture_service_definition(enable_echo_cancellation: bool = True) -> ServiceDefinition:"""获取音频捕获服务定义"""return ServiceDefinition(name="audio_capture",factory=lambda: ServiceFactories.create_audio_capture(enable_echo_cancellation),dependencies=[],health_check=lambda service: hasattr(service, 'is_ready') and service.is_ready)def get_speech_monitor_service_definition(enable_vad: bool = False) -> ServiceDefinition:"""获取语音监控服务定义"""return ServiceDefinition(name="speech_monitor",factory=lambda: ServiceFactories.create_speech_monitor(enable_vad),dependencies=[],health_check=lambda service: hasattr(service, 'is_ready') and service.is_ready)
4 unmodified lines567891011121348 unmodified lines62636465666714 unmodified lines8283848586878846 unmodified lines13513613713813914049 unmodified lines19019119219319419519632 unmodified lines2292302312322332342352362372382392404 unmodified linesfrom voice_dialogue.core.constants import session_managerfrom voice_dialogue.utils.logger import loggerfrom ..core.service_factories import get_audio_capture_service_definitionfrom ..schemas.system_schemas import (SystemStatusResponse, SystemResponse)router = APIRouter()48 unmodified lines@router.post("/start", response_model=SystemResponse, summary="启动系统")async def start_system(fastapi_request: Request,background_tasks: BackgroundTasks):14 unmodified lines# 在后台启动系统background_tasks.add_task(_start_system_background,fastapi_request)return SystemResponse(46 unmodified linesexcept Exception as e:logger.error(f"停止音频捕获服务时发生错误: {e}", exc_info=True)# 停止audio_player服务if service_manager.is_service_running("audio_player"):audio_player_service = service_manager.get_service("audio_player")49 unmodified linesraise HTTPException(status_code=500, detail=f"系统重启失败: {str(e)}")async def _start_system_background(request: Request):"""后台启动系统的实际逻辑 - 创建并启动audio_capture服务"""32 unmodified lineselse:logger.warning("未找到音频播放服务,系统将继续启动但可能无法播放音频")# 检查audio_capture服务是否已存在if service_manager.is_service_running("audio_capture"):logger.info("音频捕获服务已在运行")else:# 创建audio_capture服务定义audio_capture_def = get_audio_capture_service_definition()# 启动audio_capture服务success = service_manager.start_service(audio_capture_def)4 unmodified lines567891011121348 unmodified lines6263646566676814 unmodified lines838485868788899046 unmodified lines13713813914014114214314414514614714814915015115215315415515615715815916016116216316449 unmodified lines21421521621721821922032 unmodified lines2532542552562572582592602612622632642652662672682692702712722732742752762774 unmodified linesfrom voice_dialogue.core.constants import session_managerfrom voice_dialogue.utils.logger import loggerfrom ..core.service_factories import get_audio_capture_service_definition, get_speech_monitor_service_definitionfrom ..schemas.system_schemas import (SystemStatusResponse, SystemResponse, SystemStartRequest)router = APIRouter()48 unmodified lines@router.post("/start", response_model=SystemResponse, summary="启动系统")async def start_system(request: SystemStartRequest,fastapi_request: Request,background_tasks: BackgroundTasks):14 unmodified lines# 在后台启动系统background_tasks.add_task(_start_system_background,fastapi_request,request.enable_echo_cancellation)return SystemResponse(46 unmodified linesexcept Exception as e:logger.error(f"停止音频捕获服务时发生错误: {e}", exc_info=True)# 停止语音监控服务if service_manager.is_service_running("speech_monitor"):speech_monitor_service = service_manager.get_service("speech_monitor")if speech_monitor_service:try:speech_monitor_service.exit()logger.info("语音监控服务已停止")# 等待服务停止timeout = 5start_time = time.time()while speech_monitor_service.is_alive() and (time.time() - start_time) < timeout:await asyncio.sleep(0.1)# 从服务管理器中移除if "speech_monitor" in service_manager.services:del service_manager.services["speech_monitor"]except Exception as e:logger.error(f"停止语音监控服务时发生错误: {e}", exc_info=True)# 停止audio_player服务if service_manager.is_service_running("audio_player"):audio_player_service = service_manager.get_service("audio_player")49 unmodified linesraise HTTPException(status_code=500, detail=f"系统重启失败: {str(e)}")async def _start_system_background(request: Request, enable_echo_cancellation: bool = True):"""后台启动系统的实际逻辑 - 创建并启动audio_capture服务"""32 unmodified lineselse:logger.warning("未找到音频播放服务,系统将继续启动但可能无法播放音频")if service_manager.is_service_running("speech_monitor"):logger.info("语音监控服务已在运行")else:# 创建语音监控服务定义enable_vad = not enable_echo_cancellationspeech_monitor_def = get_speech_monitor_service_definition(enable_vad)# 启动语音监控服务success = service_manager.start_service(speech_monitor_def)if not success:raise RuntimeError("语音监控服务启动失败")logger.info("语音监控服务启动成功")# 检查audio_capture服务是否已存在if service_manager.is_service_running("audio_capture"):logger.info("音频捕获服务已在运行")else:# 创建audio_capture服务定义audio_capture_def = get_audio_capture_service_definition(enable_echo_cancellation)# 启动audio_capture服务success = service_manager.start_service(audio_capture_def)
14 unmodified lines15161718192014 unmodified linesservices_details: Optional[Dict[str, Any]] = Field(None, description="服务详细状态信息")class SystemResponse(BaseModel):"""系统操作响应"""success: bool = Field(..., description="操作是否成功")14 unmodified lines151617181920212223242514 unmodified linesservices_details: Optional[Dict[str, Any]] = Field(None, description="服务详细状态信息")class SystemStartRequest(BaseModel):"""系统启动请求"""enable_echo_cancellation: bool = Field(default=True, description="是否启用回声消除")class SystemResponse(BaseModel):"""系统操作响应"""success: bool = Field(..., description="操作是否成功")