Skip to content

Voice: end-of-turn is purely temporal — a mid-sentence pause commits the turn #13105

Open

Description

@mrveiss

Problem

End-of-turn detection is purely temporal. If the user pauses to think mid-
sentence for longer than the silence tolerance, the turn is committed and the
agent answers a half-finished question.

Evidence

autobot-frontend/src/composables/useVoiceConversation.ts:110-124 —
_silenceMsToRedemptionMs() and _silenceMsToOffsetFrames() map the single
silence-tolerance knob onto Silero's redemption window and the AudioWorklet
silence frame count. Both are timers.

Nothing inspects the transcript text before committing the turn. The knob
(DEFAULT_SILENCE_THRESHOLD_MS = 800, #12505) can only trade "cuts me off" against
"waits too long" — it cannot tell the two situations apart.

Proposed approach — the cheap, high-value part only

Hold the turn when the utterance ends on a trailing function word — a word
that almost always means "I'm not finished": "to", "the", "a", "and", "but", "so",
"or", "of", "for", "with", "is", "are", "that", "because", "if", "when", "then",
"about", "into", "um", "uh".

On a match, extend the turn up to a bounded maximum hold before auto-committing,
so a genuine trailing "um" can never wedge the conversation.

This runs on text we already have from STT. No new model, no new service hop.

Known pitfall — do not strip digits first

Normalizing the utterance by removing numbers before taking the last word makes
"set it to 250" end on the filler "to" instead of "250", so a complete sentence
looks unfinished and the turn stalls. Keep digits when determining the final word.

Explicitly out of scope

A dedicated semantic end-of-turn model is deliberately not proposed here.
Our STT runs server-side, so there is no in-renderer model worker to host one — it
would mean a new model deployment on the worker VM plus an extra network hop
inside the turn path. The added latency and operational load plausibly cancel the
accuracy gain in our topology. If the heuristic proves insufficient in practice,
re-open that question with measurements.

i18n

The word list is language-specific. Key it per language and no-op for languages
without a list, rather than applying an English list globally.

Acceptance criteria

Activity

  1. mrveiss commented on Jul 31, 2026

    @mrveiss
    OwnerAuthor

    Parent: #13096 (capability audit umbrella).

  2. modified the milestones: Backlog, v0.13.0 on Sep 12, 2026
  3. added
    needs-structureMissing goal milestone, matching phase label or native parent (#19522)
    on Oct 28, 2026
  4. github-actions commented on Oct 28, 2026

    @github-actions
    Contributor

    needs-structure cleared: goal milestone, matching phase label and native parent (or sub-issues) are all present (#19522).

  5. modified the milestones: v0.13.0, M7 - Voice on Oct 31, 2026
  6. removed
    needs-structureMissing goal milestone, matching phase label or native parent (#19522)
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions