Skip to content

@ai-sdk/deepgram@3.1.59

Choose a tag to compare

@github-actions github-actions released this 30 Nov 18:57
· 6 commits to main since this release
ed1948c

Patch Changes

  • 72d45b7: fix(deepgram): apply downstream backpressure to streaming speech

    experimental_streamSpeech with Deepgram Flux TTS now stops submitting Speak text while more than 1 MiB of audio is queued for the consumer, and resumes when the consumer reads. Previously the adapter kept sending text and enqueuing every audio frame regardless of demand, so a slow consumer of an unbounded text stream could accumulate raw audio in memory without bound.

  • 9f9e0fe: fix(deepgram): keep caller-controlled warning values on one log line

    Warnings echoed caller-controlled strings verbatim, so a voice or language preference (or a model ID or provider option name) containing a line break could add forged lines to plain-text warning logs. Control characters in warning text are now rendered as visible escapes (\n, \r, \u2028), while plain values are unchanged.