turn-detector-v1: high eot variance on short utterances ā guidance on tuning for short affirmations?
Bug Description
Context
I run a production voice agent for lead qualification (currently on another platform) and was evaluating LiveKit. While reading the debug logs from two console sessions I noticed something I'd like to understand better before building on it.
This is a question, not a bug report ā I may well be misreading the design intent.
What I observed
turn-detector-v1, English, unlikely_threshold: 0.56, no overrides.
The same word, spoken twice, in two sessions ā same microphone, same room:
| Utterance | eot probability | threshold | endpointing_delay |
|---|---|---|---|
"Hello?" (session 1) |
0.477 | 0.56 | 2.5 s |
"Hello?" (session 2) |
0.650 | 0.56 | 0.3 s |
Identical input, opposite sides of the threshold, ~8Ć difference in wait before the agent responded.
Two semantically identical affirmations, same session:
| Utterance | eot probability | endpointing_delay |
|---|---|---|
"Yeah." |
0.127 | 2.5 s |
"Yes." |
0.649 | 0.3 s |
"Yeah." scored 0.127 ā the model was ~87% confident the turn had not ended, when it plainly had. It waited 2.5 seconds.
And one that cleared by a rounding error:
| Utterance | eot probability | threshold | margin |
|---|---|---|---|
"I'm not sure." |
0.5613 | 0.560 | +0.0013 |
Why I'm asking
A qualification call is largely short affirmations ā yeah, okay, sure, right, correct, no. If the score distribution for those straddles the threshold, a meaningful fraction of turns will fall below it and trigger the full 2.5 s endpointing delay.
On a phone call with a stranger, 2.5 s of dead air after they say "yeah" doesn't read as thoughtfulness ā it reads as the line dropping. Callers start talking over the agent or hang up.
I'm not claiming the model is wrong. Short utterances genuinely carry less prosodic and lexical signal, and I don't know what the training distribution looked like. But the variance appears highest on the shortest and most frequent utterances in a real call, which is where it matters most.
Questions
- Is this variance expected on very short utterances, or does it suggest something wrong with my setup?
- The config exposes
"overrides": nullalongside the per-language thresholds. Is per-language (or per-use-case) override the intended lever here? I couldn't find guidance on when or why to reach for it. - Is there a recommended pattern for turn-taking in short-answer-heavy flows (qualification, IVR-style, yes/no gating) ā a lower threshold, a shorter
endpointing_delay, or something else entirely?
Happy to gather more data across languages if that's useful ā I run Hindi/English bilingual agents, and I noticed hi: 0.575 is tuned separately, which suggests someone has already thought hard about this.
Expected Behavior
Identical or near-identical utterances should produce comparable eot scores.
"Hello?" scoring 0.477 in one session and 0.650 in the next ā same word, same microphone, same room, same config ā puts the same input on opposite sides of the 0.56 threshold and produces an 8x difference in response delay (2.5s vs 0.3s).
I'd expect either: (a) more stable scoring on short utterances, or (b) documented guidance on tuning for short-answer-heavy flows, since the variance appears highest on the utterances most common in real qualification calls.
Reproduction Steps
1. lk app create --template agent-starter-python <name>
2. uv sync
3. uv run src/agent.py console (no config changes, stock template)
4. Say "Hello?" ā note eot probability and endpointing_delay in the debug log
5. End session, restart, say "Hello?" again ā compare
6. Within one session, say "Yeah." and then "Yes." ā compare
Operating System
Windows 11 (console mode, local)
Models Used
Stock agent-starter-python defaults, all via LiveKit Inference: - STT: deepgram/nova-3 (language: multi) - LLM: google/gemma-4-31b-it - TTS: cartesia/sonic-3 - Turn detection: turn-detector-v1 (thresholds: en 0.56, hi 0.575; overrides: null)
Package Versions
livekit-agents 1.6.5
livekit-rtc 1.1.13
livekit-plugins-ai-coustics 0.3.0
Session/Room/Call IDs
Console mode (local) ā mock-job-e675b127a1ef, mock-job-054d4e0446a2 No cloud room IDs. Happy to reproduce in a cloud session if that's more useful.
Proposed Solution
Additional Context
No response
Screenshots and Recordings
No response
This looks less like a single global-threshold problem and more like a calibration problem across language, dialogue state, and the active EOT model.
I would run a paired-repeat test before changing production defaults:
- Capture a redacted sample of 100ā200 utterances, or at least 30 affected calls. Log audio duration, final transcript, detected language, active turn model, EOT probability, active threshold, endpoint delay, last-speech-to-agent-audio time, and whether the caller barged in or hung up.
- Stratify short acknowledgements separately from full answers, and split English/Hindi plus the qualification state. A global average will hide the exact failure you described.
- Compare: (A) current baseline; (B) two language-specific threshold candidates around the current value; and (C) a lower maximum endpoint delay only in short-answer qualification states, restoring the normal policy elsewhere. Current LiveKit exposes runtime turn-detector threshold updates and session endpointing options, so this can be state-scoped instead of global: https://docs.livekit.io/agents/logic/turns/turn-detector/ and https://docs.livekit.io/agents/logic/turns/tuning/
- Set acceptance criteria before rollout: p95 last-speech-to-agent-audio under about 900 ms for short acknowledgements, premature endpoints below 1%, and no regression in barge-ins or hangups.
Also record whether the request used the intended EOT model or a fallback. If identical audio really produces the same transcript but different probabilities under the same pinned model and state, that gives maintainers a much stronger reproducible case than the two-token examples alone.
If you post a redacted 30-call export with those fields, I can help separate model variance from endpoint policy. If this is already causing real production hangups, I also run fixed-scope voice-agent reliability pilots that take this from reproduction through acceptance-tested containment.
Policy before action on voice tools:
- Capability allowlist at session start (tools/languages/models)
- Refuse unsupported combos before first media frame
- Durable session config hash so mid-run swaps do not silently change behavior
- Expected vs actual: advertised capabilities vs accepted session config
Architecture only.
Reporter here. Correcting my own framing, with a larger sample.
livekit-agents 1.6.5, turn-detector-v1, console mode, two sessions, no executor stalls. Twenty short utterances:
Above threshold (commit in 0.3s):
- "Bye." ā 0.990
- "Bye bye." ā 0.985
- "You." ā 0.908
- "Excellent." ā 0.791
Below threshold (commit on the 2.5s timeout):
- "One way" ā 0.522
- "Yes." ā 0.519
- "Fastest." ā 0.484
- "1B." ā 0.465
- "Yes." ā 0.462
- "Morning flights." ā 0.400
- "Yes." ā 0.382
- "1b." ā 0.346
- "Hello?" ā 0.283
- "Yes." ā 0.245
- "Hi." ā 0.194
- "1b" ā 0.112
- "Yeah." ā 0.111
- "Okay." ā 0.028
- "Hello?" ā 0.020
Full sentences behave correctly throughout - 0.687, 0.782, 0.799, 0.984, all committing in 0.3s. So neither "variance" nor "short utterances" was the right framing, and my original title is wrong.
What the data does show is a bimodal split with nothing between 0.522 and 0.791. The threshold sits at 0.56, inside that gap. Above it are farewells and closings; below it are answers to the agent's task questions. Every one of those costs the full 2.5s endpointing delay, so a user answering "yes" to "shall I book it?" waits 2.5 seconds.
Repeated tokens are separate recordings, so the spread within them ("Yes." at 0.245ā0.519) is presumably intonation, not instability.
Is this the intended separation, with backchannel_threshold as the lever? Or should task answers be scoring higher? Two sessions on one machine, so treat as directional.
Thanks for reporting the issue. To help us identify the cause, could you share some cloud sessions links (make sure you check the box to allow LiveKit support to view the content)? As the model is audio-based, so audio recording is the best way for us to reproduce and locate the issue.
Thanks Chenghao. Reproduced on LiveKit Cloud (1.6.5, turn-detector-v1), support access enabled:
https://cloud.livekit.io/projects/p_19mwyin9l4l/sessions/RM_DBfSGxQqRj3t/observability?mode=transcript
The near-threshold behavior shows across the session ā with the English threshold at 0.56, several turns commit right around it (0.451, 0.478, 0.578, 0.581). The audio and synced transcript are on that session.
One thing I saw on Cloud that wasn't in my local runs: a "turn detection transport latency is too high: 583ms" warning (region India West). Not sure if related, flagging in case it's useful.
Also happened to catch the #6504 null-probability case in the same session (late STT final after a turn flush) ā I'll add detail on that PR. Happy to share raw EOT logs with timestamps if helpful.
Also experiencing this any guidance would be great, in our intake form the answers are usually short yes/no
We are actively working on improving the model for short utterances. In the meantime, you can choose to use the text based model, for the entire session or for part of the session that has a predefined Question-and-Answering style flow.
Thanks for the pointer to the text model upthread ā I was curious how it holds up on these same utterances, so I measured it. One thing came out that might be worth a line in the docs: the English and multilingual text models have opposite exposure to the STT's formatting.
base.py:_normalize_text lowercases and strips punctuation, and english.py
overrides it to a no-op ("trained on the original chat context without
normalization"). Same transcript, same preceding agent turn, English
(v1.2.2-en, threshold 0.0289) vs multilingual (v0.4.1-intl, threshold 0.011):
| transcript | English | multilingual |
|---|---|---|
Yeah. |
0.563 ā commits | 0.119 ā commits |
Yeah |
0.009 ā waits | 0.119 ā commits |
Yeah, |
0.000 ā waits | 0.119 ā commits |
1b. |
0.772 ā commits | 0.065 ā commits |
1b |
0.006 ā waits | 0.065 ā commits |
The multilingual column is bit-identical across surface forms because it
normalizes first. The English column spans 0.000 to 0.772 on the same spoken word.
Over 28 surface variants of five short answers, the English model waits on 7 and
the multilingual model on none. Where the multilingual numbers do differ, it's
because the strings still differ after normalization (one b vs 1b, OK vs
okay) rather than because of formatting.
To be clear, I don't think any of that is a bug ā the English model is trained on punctuated text, so leaning on punctuation is obviously the intent. It's the downstream effect that seems worth flagging: whether a caller's "yeah" commits or waits out the endpointing delay ends up depending on whether the STT emitted a trailing period, which is a vendor setting rather than anything the caller did. Two teams following the same advice from this thread could see opposite turn-taking, and there's nothing in the logs that would point them at punctuation.
For what it's worth, on the English model across nine punctuated/unpunctuated
pairs, adding a period raised the score every time, by 7x to 120x. The threshold
is low enough that most tokens clear it either way, so it only flipped the
committed/waited outcome for 3 of the 9 (1b, 1B, Yeah) ā but those 3 are the
short affirmatives this issue is about.
So if the guidance ends up in the docs, it might be worth naming the multilingual model specifically for predefined Q&A flows, since its input is normalized before the model ever sees it.
One caveat on a weaker number, since I'd rather flag it than have it taken for
more than it is: against its own threshold the English text model sent 0 of the 24
short utterances in this thread to the timeout, where v1 was reported at 17 of 24.
That's directional at best ā the v1 figures come from real sessions and mine come
from agent prompts I had to invent, since the thread records the utterances
without the turns that preceded them, and the text model scores a conversation
rather than a string. Context matters a lot: it moved 1b from 0.044 to 0.006.
(I also had the thresholds wrong on my first pass, scoring the text models against
0.56 ā worth mentioning in case anyone else tries to reproduce this.)
Harness and raw results here: https://gist.github.com/AdrianRomo/ec42bb9c5d1c0847be9398bc1d2ea328 ā it calls the ONNX runner directly, so no Cloud and no audio needed. Every v1 figure in it is quoted from this thread rather than reproduced; I've no way to run the audio model offline. If a regression corpus would be useful for the short-utterance model work you mentioned, I'm happy to put this into whatever shape you'd want ā and equally happy to leave it as a gist if you've already got that covered.
@AdrianRomo please note that the tokens need to be normalized before passing into the model itself. the model expects normalized tokens (without punctuation, lower case, etc)
@davidzhao thanks for taking a look, I think my earlier comment made the harness sound lower-level than it is, so let me clear that up and show what I'm seeing.
The harness doesn't hand tokens to ONNX itself. It calls _EUORunnerEn.run() and _EUORunnerMultilingual.run(), the same entry point EOUModelBase.predict_end_of_turn reaches through the inference executor, so it picks up whatever normalization the plugin applies. For the multilingual model that's base._normalize_text (lowercase, NFKC, punctuation stripped, from #2717), and the harness gets it for free. For the English model, _EUORunnerEn._normalize_text returns the text unchanged ā same PR, with the docstring "trained on the original chat context without normalization" and v1.2.2-en hasn't changed since.
Helpfully, run() reports the exact string the model saw (the input field, logged as lk.pii.input), so this is easy to check. Here's the tail of that string for each call; the <|im_start|> / <|im_end|> bits are the chat template's special tokens, and the two models use different templates. livekit-plugins-turn-detector 1.8.2, agent turn "Would you like me to confirm that booking?":
model user text eou tail of model input
english 'Yeah.' 0.5629 ...<|im_end|><|im_start|><|user|>Yeah.
english 'Yeah' 0.0094 ...<|im_end|><|im_start|><|user|>Yeah
english 'yeah' 0.0326 ...<|im_end|><|im_start|><|user|>yeah
multilingual 'Yeah.' 0.1185 ...<|im_end|>\n<|im_start|>user\nyeah
multilingual 'Yeah' 0.1185 ...<|im_end|>\n<|im_start|>user\nyeah
multilingual 'yeah' 0.1185 ...<|im_end|>\n<|im_start|>user\nyeah
So as far as I can tell, on the shipped path today the English text model does see the STT's punctuation and casing. If it's meant to receive normalized tokens as well, the override in english.py looks stale and it's a one-line removal, I'd be glad to open a PR with a test for it but I didn't want to assume, since the docstring says the opposite and #2717 describes the two models as trained on different text, so I'll defer to you on which it should be.
Either way, the part that's relevant to this issue doesn't hinge on it. With every input normalized first (bench_eou.py --normalized), short answers still land on both sides of the English threshold (0.0289):
yes 0.0756 commits,
yeah 0.0246 waits;
okay 0.0441 commits,
ok 0.0280 misses by 0.0009.
That's the same shape @Propconnect-ai saw on v1, which makes me think it's less about any one model and more about how short affirmations are represented.
The gist has both runs, and I've updated its README to reflect the above: https://gist.github.com/AdrianRomo/ec42bb9c5d1c0847be9398bc1d2ea328
Happy to dig further if any of this is useful for the short-utterance work.
this isn't a good evaluation of the model.. you have to pass in the previous context.. semantic models could not determine end of turn purely from a user saying "yeah".. the context matters here.
@davidzhao ok, you're right re-ran with full conversation history where the user's earlier turns are short answers, the way a qualification call actually goes, and the multilingual model commits on:
yeah (0.014),
no (0.017) and
yes (0.156) against its 0.011 threshold.
My earlier runs used a single invented agent turn or verbose invented history, which is what depressed the scores... so an evaluation problem, not a model one Still I updated and corrected the Gist to say so.
Apologies for the noise, I'll leave it here.
Just to separate my original data from the re-runs here: mine came from console sessions with live audio on turn-detector-v1 (1.6.5), so the preceding turns were real spoken context from that session rather than reconstructed. Happy to share the transcripts along with the turns that preceded them if that's useful for the short-utterance work.
The split you measured is the painful one: full sentences commit, and the short answers a qualification call actually gets ("yes", "yeah", "okay") fall into the long endpointing delay. The text-model suggestion upthread is worth trying on the yes/no states only, but your Cloud note about turn-detection transport latency in India West is a separate budget. If you would rather not keep tuning end-of-turn per language for a phone agent, a single call API that does STT, the LLM, TTS, and the phone leg, in English and Indian languages, is the other shape: https://docs.rymi.live
@Propconnect-ai, until the short-utterance model work lands, here's a way to apply @chenghao-mou's suggestion to just the yes/no part of a qualification call, checked against livekit-agents 1.8.6:
from livekit.agents import Agent
from livekit.plugins.turn_detector.multilingual import MultilingualModel
class QualificationAgent(Agent):
def __init__(self):
super().__init__(
instructions="...",
turn_handling={
# text model: scores "yes" against the question it answers, and
# normalizes first, so "Yeah" and "Yeah." score the same
"turn_detection": MultilingualModel(),
# caps the worst case: a short answer that still scores low
# waits 1.2s instead of 2.5s
"endpointing": {"max_delay": 1.2},
},
)
Hand off to it for the short-answer phase, and keep turn-detector-v1 on the open-ended parts. If a separate agent is too heavy, session.update_options(endpointing_opts={"max_delay": 1.2}) before a yes/no question (restoring it after) gets most of the benefit.
Two notes for your setup:
- Hindi is covered by the multilingual model, so the bilingual calls should work.
- It runs in your agent process, so it also avoids the 583 ms India West transport latency you saw. That cost comes from the remote hop, not from inference.
Happy to compare numbers on your session recordings if useful.
We updated both models in our latest release, focusing on short utterances. The full model now also uses the preceding agent-turn text (which requires the latest client), and it works much better for these cases. Iām closing this issue for now. If you notice any issues, feel free to open another.