Skip to content

@cloudflare/voice@0.3.4

Choose a tag to compare

@github-actions github-actions released this 13 Jul 17:09
03cdc82

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.