Patch Changes
-
8e18d59: feat(ai): add experimental_streamSpeech
Streams speech audio from a string, or an array, iterable, or stream of text deltas and/or text parts (each with an optional
voiceandproviderOptions) using speech models that implement the experimentalExperimental_StreamingSpeechModelV4extension. Returns a single-consumeraudioStream/fullStreamplususage,warnings,responses, andproviderMetadatapromises. Providererrorparts are non-fatal and reported throughonError(defaultconsole.error). A user abort or a cancel rejects the result promises immediately. Exports theExperimental_SpeechTextPart,Experimental_SpeechStreamPart,Experimental_SpeechStreamUsage, andExperimental_StreamSpeechResulttypes, adds an optionalcausetoNoSpeechGeneratedError, and addsExperimental_MockStreamingSpeechModelV4toai/test. -
Updated dependencies [8202f5b]
-
Updated dependencies [85d84a1]
- @ai-sdk/gateway@4.0.123
- @ai-sdk/provider-utils@5.0.67
- @ai-sdk/provider@4.0.33