voice-activity-detection · semantic turn-taking · Whisper Tiny encoder (8M) · q8 · WASM · ~8.6 MB
Smart-Turn v3
Acoustic silence VAD cuts people off the moment they pause mid-thought.
Smart-Turn v3 (pipecat-ai/smart-turn-v3)
analyses raw 16 kHz audio prosody and syntax directly inside an
8.6 MB quantized Whisper Tiny encoder running on CPU WebAssembly — predicting
P(END_OF_TURN) without waiting for an ASR transcript.
1 · On-device model (~8.6 MB q8)
2 · Interactive Semantic Endpointing Gauge
Pick a scenario sliced client-side from rights-cleared speech clips, upload your own audio, or record up to 8 seconds from your microphone.
Download or initialise Smart-Turn v3 above to run live semantic end-of-turn detection.
Turn completion probability
Select a scenario to inspect its waveform, 80-bin Whisper log-mel features, and live endpoint score.
Exact 8.0 s right-aligned input window
Smart-Turn v3 expects 128,000 samples @ 16 kHz left-padded with zeros so the latest spoken frame lands at mel frame 800.
Sample audio attribution: LibriSpeech test-clean 61-70968-0000 (Paul-Gabriel Wiener; Panayotov et al., CC BY 4.0) and JFK Inaugural Address (1961, Public Domain).
3 · Session Comparison Log
Test multiple scenarios above (or click Compare complete vs mid-cut) to observe the semantic probability drop when speech is cut mid-clause.
| Scenario | Clip dur. | P(END_OF_TURN) | Logit | Verdict | Latency |
|---|---|---|---|---|---|
| No inferences recorded yet. | |||||
At a glance — architecture & API contract
| Upstream model |
pipecat-ai/smart-turn-v3
(BSD-2-Clause · commit f766f81)
|
|---|---|
| Browser ONNX repo |
onnx-community/smart-turn-v3-ONNX
(onnx/model_quantized.onnx, 8.58 MB decimal, q8)
|
| Task & architecture |
voice-activity-detection (semantic end-of-turn) ·
WhisperForAudioClassification — Whisper Tiny encoder (4 layers, 6 heads, d=384, ~8M params) + linear projection (256 → 1 logit)
|
| Browser runtime |
onnxruntime-web@1.21.0 CPU WASM EP (isolated raw-ORT worker; Transformers.js 3.7.5 has no WhisperForAudioClassification class)
+ AutoFeatureExtractor from shared Transformers.js 3.7.5
|
| Exact I/O contract |
16,000 Hz mono PCM → last 8.0 s (128,000 samples) left-padded with zeros →
input_features [1, 80, 800] (float32) → logits [1, 1] (float32) →
sigmoid(logit)
|
Explore the 5-route Smart-Turn v3 ladder
Scrub a 15%–100% cutoff slider and compare left-padded vs broken right-padded 8 s framing with Show the code.
Practical · Sliding Endpoint Timeline →Scan a full recording every 0.5 s, click any timestamp to audition, and export formula-safe CSV/JSON turn logs.
Wild · Voice Agent Barge-In Simulator →Pit Naive Acoustic Silence VAD against Smart-Turn v3 on mid-thought pauses or live mic in an animated agent state machine.
Multi-model · Smart-Turn v3 → Moonshine ASR →Chain semantic endpointing (8.6 MB) into Moonshine Base ASR (68 MB) to prove zero-interruption full-turn transcription.