返回全部动态

Vercel AI SDK 7.0.150 新增实验性流式语音 API

原标题:ai@7.0.150

Vercel AI SDK Releases一手来源API 更新质量 67

AI 摘要

Vercel AI SDK 发布 ai@7.0.150 补丁版本,新增实验性 API experimental_streamSpeech,可从字符串或文本增量流中流式生成语音音频,并返回 audioStream、fullStream、usage 等结果。该功能依赖实现 Experimental_StreamingSpeechModelV4 扩展的语音模型,同时导出相关类型并在 ai/test 中提供模拟模型,还更新了 gateway、provider-utils、provider 等依赖。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

### 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


发布时间:2026-10-23 05:20
抓取时间:2026-10-23 05:39
来源机构:Vercel
阅读原文github.com