github cloudflare/agents @cloudflare/voice@0.2.0

3 hours ago

Minor Changes

  • #1478 2c7d91b Thanks @whoiskatrin! - Add an enabled option to useVoiceAgent so React apps can delay creating and connecting a VoiceClient until async prerequisites such as capability tokens are ready.

Patch Changes

  • #1458 84cb429 Thanks @whoiskatrin! - Fix Workers AI STT session edge cases for Flux and Nova 3.

    Flux now preserves the latest non-empty turn transcript from turn lifecycle events so an EndOfTurn event with an empty transcript can still emit the completed utterance. Flux StartOfTurn also drives server-side barge-in so model-detected user speech aborts active LLM/TTS playback promptly. Nova 3 now defensively normalizes finalized segment state before reading it to avoid stale teardown messages throwing during abnormal close paths.

  • #1462 5f6214d Thanks @whoiskatrin! - Fix withVoice text streaming for AI SDK textStream responses so TTS audio is produced when onTurn() returns streamText(...).textStream directly.

Don't miss a new agents release

NewReleases is sending notifications on new releases.