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.

Runs in browser · WASM voice-activity-detection ~8.6 MB q8 ONNX BSD-2-Clause 8 s left-padded window

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.

Conversational scenarios (client-side slices)

Download or initialise Smart-Turn v3 above to run live semantic end-of-turn detection.

Turn completion probability

Awaiting inference

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.

P(END_OF_TURN)—
Raw logit—
Total / ORT ms—
Speech / Left-pad—
Input tensor[1, 80, 800]
BackendWASM q8

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