Real-time local voice-to-voice chatbot using Qwen3.5

๐กSee how to build a high-performance, interruptible voice AI agent entirely on local hardware.
โก 30-Second TL;DR
What Changed
Powered by Qwen3.5-397B (UD-Q3_K_XL), Whisper-small, and Orpheus TTS
Why It Matters
This demonstrates the feasibility of building sophisticated, low-latency voice AI agents entirely on local hardware, bypassing the need for expensive API-based voice services.
What To Do Next
Monitor the developer's GitHub for the upcoming code release to study their implementation of interruptible voice streams.
Key Points
- โขPowered by Qwen3.5-397B (UD-Q3_K_XL), Whisper-small, and Orpheus TTS
- โขAchieves near real-time performance using SSE streaming
- โขSupports interruption while preserving conversation context
๐ง Deep Insight
Web-grounded analysis with 23 cited sources.
๐ Enhanced Key Takeaways
- โข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.
๐ ๏ธ Technical Deep Dive
- 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.
๐ฎ Future ImplicationsAI analysis grounded in cited sources
โณ Timeline
๐ Sources (23)
Factual claims are grounded in the sources below. Forward-looking analysis is AI-generated interpretation.
Weekly AI Recap
Read this week's curated digest of top AI events โ
๐Related Updates
Same topic
Explore #voice-ai
Same product
More on voice-to-voice-chatbot
Same source
Latest from Reddit r/LocalLLaMA
Efficiency and Value of Strix Halo for AI Inference

Training an LLM on 160GB of 1800s English Text
Optimizing DeepSeek v4 Flash on RTX 4090 Hardware

NVIDIA Preparing GeForce RTX 5090 SE Graphics Card
AI-curated news aggregator. All content rights belong to original publishers.
Original source: Reddit r/LocalLLaMA โ