來源Reddit r/LocalLLaMA•較早收集於 3h
使用 Qwen3.5 的即時本地語音對話機器人

#voice-ai#real-time#local-inferencevoice-to-voice-chatbotqwenwhisperonnx
💡了解如何完全在本地硬體上構建高效能、可中斷的語音 AI 代理。
⚡ 30 秒速覽
有什麼變化
由 Qwen3.5-397B (UD-Q3_K_XL)、Whisper-small 與 Orpheus TTS 驅動
為什麼重要
這展示了在本地硬體上構建複雜、低延遲語音 AI 代理的可行性,無需依賴昂貴的 API 語音服務。
下一步行動
追蹤該開發者的 GitHub 以獲取即將發布的程式碼,研究其可中斷語音串流的實作方式。
誰應關注:Developers & AI Engineers
關鍵要點
- •由 Qwen3.5-397B (UD-Q3_K_XL)、Whisper-small 與 Orpheus TTS 驅動
- •使用 SSE 串流實現近乎即時的效能
- •支援在對話過程中中斷並保持上下文
🧠 深度解析
背景與延伸:來自公開資料,非原文內容。引用 23 個來源。
🔑 增強重點摘要
- •Qwen3.5-397B utilizes a sparse Mixture-of-Experts (MoE) architecture, featuring 397 billion total parameters but activating only 17 billion parameters per forward pass, which allows it to achieve high intelligence with the inference speed and memory requirements of a much smaller model.
- •Qwen3.5 is a native multimodal foundation model, trained through early fusion on trillions of text, image, and video tokens, enabling it to process and reason across 201 languages and various modalities.
- •Whisper-small is a Transformer-based encoder-decoder Automatic Speech Recognition (ASR) model, optimized for edge inference by replacing Multi-Head Attention with Single-Head Attention and linear layers with convolutional layers, making it robust in noisy environments and capable of multilingual transcription for audio clips up to 30 seconds.
- •Orpheus TTS is an open-source, LLM-based text-to-speech system that supports high-quality, expressive speech, multi-speaker synthesis, voice cloning, and offers vocal direction controls (e.g., [cheerful], [whisper]) for nuanced performances.
- •The system leverages Server-Sent Events (SSE) for near real-time performance, a one-way communication protocol over HTTP that is simpler and more efficient than WebSockets for streaming incremental AI outputs like tokens, enhancing responsiveness in chatbot interactions.
🛠️ 技術深入
- Qwen3.5-397B-A17B (UD-Q3_K_XL):
- Architecture: Hybrid Mixture-of-Experts (MoE) with Gated DeltaNet.
- Parameters: 397 billion total parameters, with 17 billion active parameters per forward pass.
- MoE Structure: Comprises 512 total experts, activating 10 routed experts and 1 shared expert per token (11 active experts).
- Gated DeltaNet: Features 64 linear attention heads for Values (V) and 16 heads for Queries and Keys (QK), with a head dimension of 128.
- Gated Attention: Includes 32 heads for Queries (Q) and 2 for Keys/Values (KV), with a head dimension of 256 and a Rotary Positional Embedding (RoPE) dimension of 64.
- Layers: Consists of 60 layers, each with a hidden dimension of 4,096.
- Hidden Layout: Follows a repeating pattern of 15 × (3 × (Gated DeltaNet → MoE) → 1 × (Gated Attention → MoE)).
- Vocabulary Size: Uses a padded vocabulary of 248,320 tokens.
- Context Window: Natively supports 262,144 tokens, extensible up to 1,010,000 tokens in hosted versions.
- Training: Trained via early fusion on trillions of multimodal tokens (image, text, video) across 201 languages and dialects.
- Output Features: Generates text responses from multimodal inputs, operates in a default 'thinking mode' (internal reasoning via
<think>...</think>tags), and supports native tool/function calling and agentic workflows. - Hardware Requirements: Minimal deployment requires NVIDIA HGX B200 to load the full 397B parameter model.
- Whisper-small:
- Architecture: Transformer-based encoder-decoder model for Automatic Speech Recognition (ASR) and speech translation.
- Parameters: 244 million parameters (102M for encoder, 139M for decoder).
- Model Size (float): Encoder is 391 MB, Decoder is 533 MB.
- Input Resolution: 80x3000 for 30 seconds of audio.
- Max Decoded Sequence Length: 200 tokens.
- Training Data: Trained on 680k hours of labeled speech data using large-scale weak supervision.
- Edge Inference Optimization: Achieved by replacing Multi-Head Attention (MHA) with Single-Head Attention (SHA) and linear layers with convolutional (conv) layers.
- Memory Usage (GGML format): Ranges from approximately 273 MB for the 'tiny' model to 3.9 GB for the 'large' model.
- Orpheus TTS:
- Architecture: Modern neural network architecture, specifically an LLM-based (Llama-based Speech-LLM) text-to-speech system.
- Key Components: Text Analysis Module, Acoustic Model, Vocoder, and Speaker Embedding.
- Capabilities: Generates high-quality, natural, fluent, and expressive speech; supports multilingual output (including English, Spanish, French, German, Italian, Portuguese, Chinese); enables multi-speaker speech synthesis and voice cloning; offers vocal direction controls (e.g.,
[cheerful],[whisper]) for dynamic audio output. - Deployment Options: Supports local, cloud, and edge device deployment, optimized for various hardware configurations.
- Performance Optimization: Optimized deployments can achieve streaming audio with approximately 130 ms Time To First Byte (TTFB) using techniques like FP8 quantization.
- Server-Sent Events (SSE) Implementation:
- Mechanism: Establishes a single, long-lived HTTP connection for one-way communication, allowing the server to push real-time updates to the client.
- Advantages for AI Streaming: Simpler than WebSockets for server-to-client data flow, works over standard HTTP, automatically handles reconnections, and is ideal for streaming incremental AI outputs like tokens.
- Backend Requirements: The server must keep the connection open, send data in small chunks, and set appropriate HTTP headers (e.g.,
Content-Type: text/event-stream). - Frontend Implementation: Clients use the
EventSourceAPI to open a connection and listen for incoming messages, updating the UI as data arrives.
🔮 前景展望基於引用來源的 AI 分析
The increasing efficiency of large multimodal models like Qwen3.5 will accelerate the adoption of sophisticated AI agents in resource-constrained environments.
Qwen3.5's sparse MoE architecture allows 400B-class intelligence with only 17B active parameters, significantly reducing inference costs and memory requirements for local deployment.
Open-source, local voice-to-voice chatbot frameworks will become a standard for privacy-focused personal AI assistants.
The ability to run advanced LLMs, ASR, and TTS models entirely offline addresses growing concerns about data privacy and control, fostering a new generation of self-hosted AI solutions.
The integration of vocal direction controls and emotional intelligence in TTS models like Orpheus will lead to more natural and engaging conversational AI experiences.
By allowing fine-grained control over speech expressiveness, these TTS models can produce more human-like and contextually appropriate voice outputs, enhancing user interaction.
⏳ 時間線
2022-12
OpenAI released Whisper, a Transformer-based ASR model.
2023-04
Alibaba launched Qwen (Tongyi Qianwen) beta.
2025-04
Alibaba released the Qwen3 model family, including dense and MoE models.
2026-01
Orpheus TTS noted for production readiness with optimized inference engines.
2026-02
Alibaba released Qwen3.5-397B-A17B, a multimodal Mixture-of-Experts model.
📎 來源 (23)
Factual claims are grounded in the sources below. Forward-looking analysis is AI-generated interpretation.
📰
AI 週報
閱讀本週精選 AI 大事摘要 →
👉相關動態
AI 策展新聞聚合。所有內容版權歸原始發布者所有。
原始來源: Reddit r/LocalLLaMA ↗
每週電子報
每週一封,可隨時退訂。