Patch Changes
-
8202f5b: feat(gateway): implement experimental streaming speech in the gateway provider
GatewaySpeechModelimplementsExperimental_StreamingSpeechModelV4and streams speech over the AI Gateway speech WebSocket (/speech-model,ai-gateway-speech.v1subprotocol).@ai-sdk/provider-utilsadds the experimental speech-stream envelope (experimental_parseSpeechStreamClientFrame,experimental_serializeSpeechStreamPart,experimental_parseSpeechStreamPart) shared by clients and servers, plus theEXPERIMENTAL_SPEECH_STREAM_*frame type constants andExperimental_SpeechStream*frame types. Text-delta frames carry each text part'svoiceandproviderOptions; the start frame carriesoutputFormatas an audio format object. Addsgateway.experimental_speech, callable likespeech(modelId), with a server-sidegetToken()that mints a speech-bound short-lived client secret for browser use. -
Updated dependencies [85d84a1]
- @ai-sdk/provider@4.0.33