How Direct Audio-to-LLM Fusion Works
Traditional voice bots cascade Whisper ASR into an LLM, discarding pitch, urgency, pauses, and speaking
cadence before the language model ever runs. Ultravox v0.5 Llama-3.2-1B feeds continuous
128-mel acoustic embeddings straight into Llama-3.2-1B inside your browser.
1. Direct Audio-Encoder + SwiGLU Fusion
UltravoxProcessor converts 16 kHz mono audio into [1, 128, T] Whisper log-mel
frames and expands <|audio|> into 1 + ceil(round(N/320)/8) embeddings
(~6.25 audio tokens/s). audio_encoder projects speech straight into Llama-3.2-1B's
2048-d embedding space — zero intermediate transcription pass.
2. Stage 0 Probe: Ultravox 1B vs. Voxtral-Mini-3B
Stage 0 first audited onnx-community/Voxtral-Mini-3B-2507-ONNX (~2,729 MB incl. a single
2,065.3 MB .onnx_data blob, timed out under transfer limits) and pivoted to MIT-licensed
ultravox-v0_5-llama-3_2-1b-ONNX (1,382.7 MB across 3 single-file ONNX graphs). Split EPs
(audio_encoder on threaded WASM + WebGPU decoder) avoid a verified Metal-3 WebGPU
q4f16 frame-zeroing kernel defect, delivering 69/70 active frames and ~95–117 tok/s decode.
3. Per-Clip Feature Caching & Honest CPU Gate
The worker caches projected audio_features per clip fingerprint so follow-up turns skip
re-encoding and answer in ~110–240 ms TTFT. On browsers without WebGPU, Ultravox honestly enters its
unsupported state with zero uncaught errors while the reused
Silero VAD (2.2 MB CPU WASM) keeps waveform, spectrogram, and
speech-turn inspection usable.