github cloudflare/agents @cloudflare/voice@0.3.4

latest release: @cloudflare/think@0.13.0
11 hours ago

Patch Changes

  • #1909 63491bd Thanks @cjol! - Honor the configured sample rate for raw pcm16 audio payloads.

    Adds a sampleRate option to VoiceAgentOptions (default 16000) that is declared in the server audio_config message. VoiceClient reads it (exposed via a new sampleRate getter) and constructs AudioBuffer instances at that rate for raw pcm16 playback, so providers with a native rate other than 16 kHz (e.g. 24 kHz Gemini TTS) play at the correct speed. Falls back to 16 kHz when the server omits the field.

  • #1891 d1cc317 Thanks @korinne! - Add transcriber readiness so voice agents wait for streaming STT startup before entering listening state or running call-start hooks.

Don't miss a new agents release

NewReleases is sending notifications on new releases.