Skip to content

@ai-sdk/deepgram@3.1.58

Choose a tag to compare

@github-actions github-actions released this 30 Nov 00:40
· 3 commits to main since this release
921ed47

Patch Changes

  • 743e15b: Add Deepgram Flux support: Flux speech-to-text (flux-general-en, flux-general-multi) with experimental_streamTranscribe over the turn-based /v2/listen WebSocket, and Flux text-to-speech (the flux voice family) with generateSpeech and experimental_streamSpeech over /v2/speak. Flux transcription models now reject non-streaming transcribe calls with a clear error instead of failing upstream.

  • 0e37b97: fix(deepgram): decode base64 audio before uploading it for transcription

  • 29dc375: fix(deepgram): handle empty transcription results and repeated list options

    Pre-recorded transcription of audio without samples, which Deepgram answers with no channels, threw a TypeError instead of returning a result; it now returns an empty transcript with no segments and the duration Deepgram reports. A redact list was sent as one comma-joined value (redact=pci%2Cssn), which Deepgram rejects with a 400; each entry is now sent as its own redact parameter, as the streaming paths already do. The Flux speech-to-text entries in the model catalog now list mipOptOut as supported.

  • 362bd2c: Add the mipOptOut transcription provider option, which opts requests out of the Deepgram Model Improvement Program. It is sent as mip_opt_out on pre-recorded transcription (/v1/listen), Nova live transcription (the /v1/listen WebSocket) and Flux live transcription (the /v2/listen WebSocket), and omitted when unset.

  • Updated dependencies [743e15b]

    • @ai-sdk/provider-utils@5.0.86