Speakrail turn head for Voxtral Mini 4B Realtime (2611)
A turn-taking head for Voxtral Mini 4B Realtime. Every 80 ms it reads one hidden layer of the streaming recognizer and outputs:
- whether the user is speaking, has finished their turn, has paused mid-thought, or just made a backchannel ("mm-hmm", "yeah");
- three anticipation probabilities: P(the user's turn ends within the next 80 / 160 / 240 ms).
The head is a 2.4M-parameter MLP on decoder layer 11. Voxtral's weights are frozen, so the transcript is bit-identical with and without the head. In audio.cpp it runs inside the decode step and costs 0.02 ms per 80 ms step on an RTX 4090.
The head doesn't take turns by itself: it gives streaming signals for a dialogue model or a rule set to act on. In Speakrail, a full-duplex voice assistant, these signals become cue tokens for the LLM, and the LLM makes the turn-taking decision.
This release replaces speakrail/Voxtral-Mini-4B-Realtime-2602-TurnHead. It is more accurate on real conversations, fires on a single frame instead of three, and adds the anticipation outputs.
Files
| file | what |
|---|---|
model.safetensors |
the head as plain tensors (fc1.weight [768, 3072], fc1.bias, fc2.weight [8, 768], fc2.bias), for PyTorch, NumPy or any runtime that exposes layer 11 |
config.json |
tap layer, sizes, output names and activations, delay, anticipation horizons |
turn_head.vxth |
the same head for audio.cpp (format VXTHEAD2, below) |
turn_head.vxth.json |
audio.cpp sidecar: tap layer, sizes, output names, delay, anticipation horizons |
model.safetensors and turn_head.vxth hold the same weights (max |Δp| 5e-7 against the training checkpoint on real
hidden states). The input standardisation is folded into fc1, so the head takes the raw layer-11 residual.
Outputs
| index | name | activation | meaning |
|---|---|---|---|
| 0 | speaking | softmax over 0-4 | the user is speaking |
| 1 | complete | the turn is finished | |
| 2 | incomplete | a pause mid-thought | |
| 3 | backchannel | a short "mm-hmm" / "yeah" | |
| 4 | wait | reserved and untrained (bias −20); ignore it | |
| 5 | ant80 | sigmoid | P(the turn ends within the next 80 ms) |
| 6 | ant160 | sigmoid | P(the turn ends within the next 160 ms) |
| 7 | ant240 | sigmoid | P(the turn ends within the next 240 ms) |
The anticipation outputs are independent sigmoids, not part of the softmax.
Usage (safetensors, any runtime)
The head needs one input per 80 ms step: the output of decoder block 11 (0-indexed, the 12th of 26 blocks) of
Voxtral Mini 4B Realtime, the raw residual stream before any norm, for the position the decoder just processed. In
PyTorch / transformers this is a forward hook on language_model.layers[11]. Run the trunk the way you serve it:
streaming, at the default 480 ms transcription delay, on its own generated tokens.
import json, torch
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file
repo = "speakrail/speakrail-voxtral-realtime-2602-turnhead-2611"
w = load_file(hf_hub_download(repo, "model.safetensors"))
cfg = json.load(open(hf_hub_download(repo, "config.json")))
n_soft = len(cfg["softmax_outputs"]) # 5
def turn_head(h): # h: [..., 3072] layer-11 residual, any float dtype
x = torch.nn.functional.gelu(h.float() @ w["fc1.weight"].T + w["fc1.bias"]) # exact (erf) GELU
z = x @ w["fc2.weight"].T + w["fc2.bias"]
return torch.cat([z[..., :n_soft].softmax(-1), z[..., n_soft:].sigmoid()], -1) # 8 values, see Outputs
# p = turn_head(h) -> p[..., 1] + p[..., 3] = P(the user is done); p[..., 6] = P(turn ends within 160 ms)
Timing: the state at decoder position f has heard the audio up to frame f + 6 (480 ms / 80 ms), and the head was
trained on the label of that later frame. Shift the head's outputs by 6 frames when you align them with the audio clock.
The head was trained on states from an 8-bit trunk and also runs on the audio.cpp q8_0 and q4_k GGUFs (see Quantized trunks).
Usage (audio.cpp)
The head runs in Speakrail's fork of audio.cpp, which adds the head and peek decoding to the Voxtral realtime model. Use it with an unmodified Voxtral Mini 4B Realtime GGUF from audio-cpp/audio.cpp-gguf (q8_0 and q4_k tested).
Server config (audiocpp_server --config server.json):
{
"port": 8090,
"backend": "cuda",
"models": [
{
"id": "voxtral-rt",
"family": "voxtral_realtime",
"path": "models/voxtral-mini-4b-realtime-2602-q8_0.gguf",
"task": "asr",
"mode": "streaming",
"session_options": {
"voxtral_realtime.turn_head": "models/turn_head.vxth"
}
}
]
}
Stream 16 kHz mono s16le PCM to
POST /v1/audio/transcriptions/live?model=voxtral-rt&sample_rate=16000&channels=1&sample_format=s16le
(chunked upload, SSE response). Every decoded 80 ms step carries the head's outputs:
{"type": "transcript.steps", "steps": [{"frame": 412, "token": 1032, "text": " today", "turn": [0.02, 0.95, 0.02, 0.01, 0.0, 0.61, 0.83, 0.90]}]}
turnis the 8-value vector from the table above.- Timing:
frameis the token frame. Because of the 480 ms delay line, the head atframehas heard the audio up toframe + 6. Add 6 to align it with the audio clock. Only the words are delayed; the head's view is current. - Delay: use Voxtral's default 480 ms transcription delay. The head was trained on it; other delays shift the hidden states.
Peek
The words for the last 480 ms of speech are still inside the recognizer when the user stops. Peek gets them out early: it copies the recognizer state, feeds silent frames to the copy as fast as the GPU allows, reads the words, and discards the copy. The live stream is untouched.
With &live_id=<id> on the live request:
POST /v1/audio/transcriptions/live/peek?live_id=<id>&frames=10
- Frames: use 8-10. 8 frames (640 ms of silence) often misses the last word; 10 (800 ms) is what Speakrail uses on NVIDIA.
- Cost: 8 frames took 83 ms of GPU time (96 ms round trip) with q8_0 on an RTX 4090.
- Why a copy: because the live stream never sees the fake silence, you can peek before you are sure the turn is over, draft a reply, and throw it away if the user keeps talking. The idea follows Unmute's flush trick (Kyutai STT), which pushes silence into the live stream itself and so can only run after the decision.
Recommended rules
The probabilities flicker from frame to frame, so turn them into events with simple rules. Let P(fire) = P(complete) + P(backchannel) while the assistant is silent, and P(complete) while it is speaking.
| signal | rule | action |
|---|---|---|
| user probably finished | P(speaking) < 0.5 and P(fire) ≥ 0.5 | peek, then draft a reply on a copy of the context; hold it |
| user finished | P(fire) ≥ 0.9 on 1 frame, armed by a new word | release the held reply (if the words still match), else peek and reply |
| silence fallback | ~1 s of silence after words with no fire | treat as finished; the dialogue model still decides |
| user speaking | P(speaking) ≥ 0.5 | cancel any draft; restart the silence clock |
| early start (optional) | ant160 ≥ 0.7 while the assistant is silent | start the peek and the draft earlier; the 0.5 rule then re-peeks to confirm the words |
A backchannel while the assistant is silent counts as "your move"; over the assistant's speech it never ends the assistant's turn.
About the early start: it saved 62 ms at the median in a live A/B on our PyTorch serving engine (same head, 3 sessions, ~60 turns per arm, no change in talk-overs). On audio.cpp with the LLM and TTS on the same GPU, the extra confirming peek competed with the LLM and TTS starting and made replies slower (median 936 vs 731 ms), so Speakrail ships with it off. Use it when the recognizer has spare GPU time.
Evaluation
Turn ends on real assistant conversations
996 pauses of at least 500 ms in our own recorded voice-assistant sessions, labelled turn end / mid-thought / ambiguous. Turn ends caught while cutting into at most 5 % of mid-thought pauses. Delays are measured from Voxtral's timestamp for the end of the user's last word (about 200 ms after the end of speech by Silero VAD).
| model | turn ends caught | delay median / p90 |
|---|---|---|
| this head | 96 % | 80 / 320 ms |
| VoxTurn v1 + 240 ms VAD wait | 94 % | 80 / 430 ms |
| MaAI VAP (two-channel) + 240 ms VAD wait | 91 % | 320 / 1,040 ms |
| Smart Turn v3.2 + Silero, 1 s wait | 91 % | 800 / 1,200 ms |
| Silero VAD silence timeout | 89 % | 2,160 / 2,320 ms |
| X2-Turn-4B + 240 ms VAD wait | 74 % | 1,360 / 3,280 ms |
TurnBench (dev split, one channel)
TurnBench dev, scored with the official scorer, using only the speaker's own channel (no partner channel, no tuned two-channel rules):
| task | recall / false-fire rate / median latency |
|---|---|
| end of turn, P(complete) + P(backchannel) | 0.872 / 0.100 / 509 ms |
| interruptions, sustained P(speaking) × (1 − P(backchannel)) | 0.980 / 0.074 / 781 ms |
For comparison on the same split, a Silero VAD silence timeout reaches 0.845 end-of-turn recall at 1,276 ms. The head is weak on long mid-turn pauses: it fires inside 31 % of 1-2 s pauses and 82 % of pauses longer than 2 s at this operating point. The top TurnBench entries use both channels plus tuned commit rules; this head was not trained or tuned on TurnBench.
Anticipation outputs
| output | AUC, held-out clips from the training distribution | AUC, held-out conversations |
|---|---|---|
| ant80 | 0.996 | 0.937 |
| ant160 | 0.995 | 0.930 |
| ant240 | 0.993 | 0.922 |
On our recorded sessions, the ant160 ≥ 0.7 trigger starts early on 91 % of turn ends, at a median 16 ms before the end of speech, and a peek at that moment already has the user's final words 76 % of the time.
Quantized trunks (audio.cpp)
The head was trained on 8-bit trunk states and runs unchanged on audio.cpp GGUFs. On 708 turn ends from our recorded sessions (rule 0.9 × 1):
| trunk | release median / p90 | silence fallback | paired shift vs the 8-bit reference |
|---|---|---|---|
| 8-bit reference | 320 / 1,120 ms | 10.8 % | 0 |
| audio.cpp q8_0 | 320 / 1,120 ms | 11.5 % | −36 ms |
| audio.cpp q4_k | 320 / 1,120 ms | 10.7 % | −70 ms |
Release times here are measured from the end of speech by Silero VAD.
Training
- Trunk:
mistralai/Voxtral-Mini-4B-Realtime-2602, frozen, at the default 480 ms delay, running free on its own generated tokens exactly as when serving. The head reads the residual stream after decoder layer 11 (d = 3072). A per-layer probe sweep put the middle layers ahead of the first and the final layer. - Head: MLP 3072 → 768 (GELU, dropout 0.1) → 8, with the input standardisation folded into the first layer. Cross-entropy over the five softmax classes; binary cross-entropy for the three anticipation outputs.
- Labels: frame-level, from voice-activity detection: speech frames are speaking; frames after the final speech offset carry the utterance's label; silent frames before it are incomplete, so mid-turn pauses are supervised.
- English only.
Limitations
- English only. Voxtral is multilingual; the head has not been tested on other languages.
- Fixed delay. Only 480 ms is supported.
- Casual conversation. It is noticeably better on assistant-style requests than on person-to-person chit-chat, and it misses some trailing-off turn ends. Pair it with a silence fallback.
- Long pauses. Long thinking pauses (1 s and more) are often taken as turn ends (see TurnBench above).
- Speaker-blind. It hears only the user channel. Background speech, or the user talking to someone else, looks like a turn.
- Anticipation costs compute. Early starts mean extra peeks and discarded drafts: about 0.64 thrown-away drafts per answered turn in our live test. It only pays off with spare GPU time.
Related work
- X2-Turn adds a turn-state output to the same Voxtral backbone by fine-tuning the whole model. This head keeps the backbone frozen.
- Kyutai STT adds pause-prediction heads to a streaming recognizer (the "semantic VAD" used in Unmute).
- Endpoint Anticipation (arXiv:2606.13450) predicts turn ends ahead of time for speculation; the anticipation outputs here follow the idea at much shorter horizons (80-240 ms).
.vxth format (VXTHEAD2)
Little-endian:
"VXTHEAD2" 8 bytes
int32 tap, d_in, hidden, classes, n_soft classes = total outputs (8), n_soft = leading softmax outputs (5)
f32 w1[hidden][d_in], b1[hidden] input standardisation folded in
f32 w2[classes][hidden], b2[classes] rows 0..n_soft-1 = softmax classes, the rest = sigmoids
names, one per line, to EOF
z = w2 · gelu_erf(w1 · h + b1) + b2, where h is the raw layer-tap residual; softmax(z[0:n_soft]),
sigmoid(z[n_soft:]). A VXTHEAD1 file (the previous release) is a VXTHEAD2 file with n_soft = classes.
License
Apache 2.0, same as Voxtral Mini 4B Realtime.
Citation
@misc{speakrail2026turnhead2611,
title = {Speakrail turn head for Voxtral Mini 4B Realtime (2611)},
author = {Speakrail},
year = {2026},
url = {https://huggingface.co/speakrail/speakrail-voxtral-realtime-2602-turnhead-2611}
}