Vercel AI SDK 7.0.150 新增实验性流式语音 API
原标题:ai@7.0.150
AI 摘要
Vercel AI SDK 发布 ai@7.0.150 补丁版本,新增实验性 API experimental_streamSpeech,可从字符串或文本增量流中流式生成语音音频,并返回 audioStream、fullStream、usage 等结果。该功能依赖实现 Experimental_StreamingSpeechModelV4 扩展的语音模型,同时导出相关类型并在 ai/test 中提供模拟模型,还更新了 gateway、provider-utils、provider 等依赖。
正文节选
### 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 `voice` and `providerOptions`) using speech models that implement the experimental `Experimental_StreamingSpeechModelV4` extension. Returns a single-consumer `audioStream` / `fullStream` plus `usage`, `warnings`, `responses`, and `providerMetadata` promises. Provider `error` parts are non-fatal and re