@cloudflare/voice@0.3.2

cloudflare/agents@cloudflare/voice@0.3.2Jun 19, 2026by github-actions[bot]

AI Summary

A patch release fixing audible clicks in audio playback by scheduling chunks back-to-back.

Key Highlights

  • Fixed audible clicks at audio chunk boundaries by scheduling chunks back-to-back on the audio clock.
  • Improved barge-in detection by tracking all scheduled audio sources.
  • Ensured playback cursor correctly handles scheduled chunks ahead of current time.

Full Release Notes

### Patch Changes

-   [#1747](https://github.com/cloudflare/agents/pull/1747) [`28653b3`](https://github.com/cloudflare/agents/commit/28653b30b5e89592915a3b1e08d3b536c16c18ba) Thanks [@cjol](https://github.com/cjol)! - Fix audible clicks at audio chunk boundaries during agent speech. `VoiceClient` played each response chunk by starting it at `currentTime` and waiting for its `ended` event before scheduling the next, so every chunk seam carried a few milliseconds of silence (event-loop latency plus the next chunk's setup) — audible as a periodic click, roughly one per chunk. Chunks are now scheduled back-to-back on the audio clock via a playback cursor (`start(Math.max(currentTime, cursor))`), so consecutive chunks butt together sample-tight. Because chunks can now be scheduled ahead of playback, the client tracks every scheduled source and stops them all on interrupt/end-call (previously only the single active source needed stopping), and playback counts as active until the last scheduled chunk finishes so barge-in detection keeps working through the scheduled tail.