@cloudflare/voice@0.3.4
Patch Changes
-
#1909
63491bdThanks @cjol! - Honor the configured sample rate for rawpcm16audio payloads.Adds a
sampleRateoption toVoiceAgentOptions(default16000) that is declared in the serveraudio_configmessage.VoiceClientreads it (exposed via a newsampleRategetter) and constructsAudioBufferinstances at that rate for rawpcm16playback, 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
d1cc317Thanks @korinne! - Add transcriber readiness so voice agents wait for streaming STT startup before entering listening state or running call-start hooks.