Skip to content

[voice] audible click at every audio chunk seam (w/ working fix) #1736

Closed

Description

@AtAFork

VoiceClient starts each chunk at currentTime, then awaits its ended event before scheduling the next. That round-trip leaves a few ms of silence at every chunk boundary, which produces a periodic click during agent speech. Measured 5.33ms per seam streaming 320ms pcm16 chunks through a fake transport.

Expected: chunks scheduled back-to-back on the audio clock, no gaps.

Repro: stream any sustained pcm16 response and listen for clicks at chunk rate. A continuous tone makes it unmissable.

Version: 0.2.0

Working fix with cursor scheduling, interrupt stops the whole scheduled tail, tests + changeset, feel free to use.

Activity

  1. self-assigned this
    on Jun 12, 2026
  2. cjol commented on Jun 12, 2026

    @cjol
    Member

    Thanks, this fix looks good! Working through the PR process now :)

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions