Patch Changes
-
9874c89: feat(elevenlabs): text-to-dialogue streaming
doStream()supportsproviderOptions.elevenlabs.dialogue(Text-to-Dialogue WebSocket foreleven_v3/eleven_v4). Each text part'svoice(default: the call'svoice, else the first dialogue voice) selects its speaker and must be listed indialogue.voices; a voice change starts a new turn, andproviderOptions.elevenlabs.newTurnon a part forces one. Options Text-to-Dialogue does not support produce warnings. -
109a4fe: feat(elevenlabs): streaming speech over WebSocket; type v4/v3-conversational model ids
ElevenLabsSpeechModelimplements the experimentalExperimental_StreamingSpeechModelV4(doStream()) over the text-to-speechstream-inputWebSocket, forwarding text deltas as they arrive and reportingusage.inputCharacters(Unicode code points). Addseleven_v4,eleven_v4_turbo, andeleven_v3_conversationalto the typed speech model IDs. The API key is sent in the WebSocket's first message (nativeWebSocketworks), the portableoutputFormatmaps to an ElevenLabsoutput_format(or setstreaming.outputFormatnatively), text parts with a different voice are rejected, partial words are held back to whitespace, and keepalives are sent while the text stream is idle unlessinactivityTimeoutis set.generateSpeechignoresstreamingoptions with a warning. -
Updated dependencies [8202f5b]
-
Updated dependencies [85d84a1]
- @ai-sdk/provider-utils@5.0.67
- @ai-sdk/provider@4.0.33