Skip to content

Bug: VAD gate clips beginning of phrases — first words lost in transcription #5265

Closed as not planned

Description

@omi-discord-vector

Bug: VAD gate clips the beginning of phrases — first words not transcribed

Platform: Android (latest app version)

Problem

The Voice Activity Detection (VAD) gate is too slow to activate, causing the beginning of phrases to be missed. When a user starts speaking, the first few words are clipped and never reach the transcription service. This results in incomplete transcripts missing the start of sentences.

Expected Behavior

VAD should activate fast enough that no audible speech is lost. A pre-roll audio buffer should capture audio before VAD triggers, so the beginning of speech is always included.

Actual Behavior

The first words of phrases are cut off and don't appear in the transcription. The VAD gate only starts sending audio after it detects speech, but by then the initial words are already gone.

Suggested Fix

  • Add a pre-roll ring buffer (e.g. 300-500ms) that continuously stores audio. When VAD triggers, send the buffered audio first, then continue streaming. This ensures the start of speech is never lost.
  • Tune VAD sensitivity/threshold to trigger faster on speech onset
  • Consider a shorter VAD activation delay

Reported by community member on Discord (Android, latest version).

Activity

  1. added
    bug
    on Mar 1, 2026
  2. added
    capture
    p1
    on Mar 2, 2026
  3. beastoin commented on Mar 2, 2026

    @beastoin
    Collaborator

    Related: VAD gate feature (#4644, PR #4931). This appears to be a regression from the VAD gate implementation — the gate activates after speech starts, clipping initial words. A pre-roll audio buffer may be needed. cc #5235 (keepalive fix already merged).

  4. beastoin commented on Mar 2, 2026

    @beastoin
    Collaborator

    Needs more info to reproduce:

    1. App version and firmware version — which exact build?
    2. Example transcript — what did you say vs what appeared? (e.g. said "Hey John, how are you" → transcript shows "how are you")
    3. How often — every phrase, or intermittent? Does it happen in short conversations too?
    4. Device model — which Android phone?
    5. Was this happening before the latest update? — helps isolate whether this is new behavior

    Please provide the above so we can reproduce. Adding needs-info label.

  5. added
    needs-info
    on Mar 2, 2026
  6. beastoin commented on Mar 2, 2026

    @beastoin
    Collaborator

    One more thing — to help us look up your account and logs, please share your user ID (open Omi app → Settings → Profile → scroll to bottom). For privacy, redact the middle — e.g. abc...xyz.

    Also @aaravgarg — can we link the original Discord thread to this issue? Helps us follow up with the reporter.

  7. added
    p2
    and removed
    p1
    on Mar 19, 2026
  8. undivisible commented on Jul 20, 2026

    @undivisible
    Collaborator

    VAD pre-roll — confirmed: vad_gate.py has VAD_GATE_PRE_ROLL_MS, _pre_roll_ms, _pre_roll deque for 300ms pre-roll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcaptureneeds-infop2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions