๐Ÿฆ™Stalecollected in 3h

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

Real-time local voice-to-voice chatbot using Qwen3.5
PostLinkedIn
๐Ÿฆ™Read original on Reddit r/LocalLLaMA

๐Ÿ’ก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.

Who should care:Developers & AI Engineers

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 EventSource API to open a connection and listen for incoming messages, updating the UI as data arrives.

๐Ÿ”ฎ Future ImplicationsAI analysis grounded in cited sources

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.

โณ Timeline

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.
๐Ÿ“ฐ

Weekly AI Recap

Read this week's curated digest of top AI events โ†’

๐Ÿ‘‰Related Updates

AI-curated news aggregator. All content rights belong to original publishers.
Original source: Reddit r/LocalLLaMA โ†—