Models About & Code

Standalone App & PWA

Install Speech-to-Text Conversational LLM on its dedicated origin as an offline voice-native workbench with OS audio/* file handlers and self-scoped microphone recording.

Open speechllm.webai.show ↗

Honest cache note: browsers isolate Cache Storage per origin, so speechllm.webai.show stores its own ~1,382.7 MB Ultravox ONNX weights. Staying on webai.show shares cached weights with the catalogue.

Deck A · Direct Acoustic Feature Encoder

Waveform & 128-Mel Spectrogram

Waveform + 128-Mel Spectrogram Timeline · 16 kHz Mono Preparing clip…

Interactive 16 kHz mono waveform and 128-bin Whisper log-mel spectrogram fed directly into Ultravox v0.5 Llama-3.2-1B without an intermediate ASR text pass.

Click or Arrow keys to scrub · Space plays
0:00.0 / 0:00.0
16 kHz Samples —
128-Mel Tensor —
Projected <|audio|> —
LLM TTFT Awaiting run
Decode Speed Awaiting run
Tensor Health 0 NaN
160 tok
0.0 (Greedy)

Loading ledgered speech clip… Zero audio leaves your browser.

Session Exports
Deck B · Direct Audio-to-LLM Reasoning (Zero ASR Front-End)

Voice-Native Conversational LLM

Follow-ups reuse cached audio embeddings

Local AI Engine

One local @huggingface/transformers@4.3.2 audio-language worker (1,382.7 MB q8/q4f16/q4f16, WebGPU Llama-3.2-1B + threaded WASM Whisper audio encoder) plus an optional 2.2 MB CPU Silero VAD companion.

Primary · Ultravox v0.5 Llama-3.2-1B Audio-LLM (1,382.7 MB · MIT)

onnx-community/ultravox-v0_5-llama-3_2-1b-ONNX · local @huggingface/transformers@4.3.2 override · audio_encoder on WASM + embed_tokens/decoder_model_merged on WebGPU (zero separate ASR stage).

Optional CPU Companion · Silero VAD v5 (2.2 MB fp32 · MIT)

onnx-community/silero-vad · reused ../../models/silero-vad/worker.js (onnxruntime-web 1.20.1 CPU WASM) · Waveform speech turns & pause segmentation on any device, including CPU-only browsers.

Primary Audio-LLM Not loaded
Optional CPU VAD Optional · Standby
Audio Embedding Fusion —
Detected Runtime Checking…

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.

Show the code — Split-EP Ultravox loader & per-clip audio_features LRU cache (Transformers.js 4.3.2)
Show the code — Direct <|audio|> chat-template fusion, live TextStreamer & TTFT/tok/s telemetry
Show the code — estimateUltravoxAudioTokens() mel-frame to <|audio|> token math
Show the code — computeWhisperSpectrogram128() pure-JS 400-pt FFT Slaney 128-mel extractor
Show the code — extractStructuredJson() & OWASP-safe Markdown session export builders
Show the code — StageWorkerClient FIFO queue, streaming tokens & safe dispose lifecycle

Conversational Session Report (.md)

OWASP-safe Markdown summary of direct audio-to-LLM turns.