7.21.0 (2026-11-30)
- helpers:
ssml_to_deepgram()andTextBuilder.from_ssml()now keep a<break>pause when the tag carries other attributes or spaces around=, such as<break strength="medium" time="500ms"/>or<break time = "500ms"/>. These spellings previously failed to match and were deleted by the generic tag stripper, so the pause silently vanished from the text sent for synthesis. Behavior change: a<break>with extra attributes is now validated like a bare<break time="...">, and raisesValueErrorwhen the duration is below 500ms, above 3000ms or off the 100ms grid, when a document holds more than eight pauses, or when it is combined with a pronunciation. Also fixes a hang present in 7.20.0 and earlier: the<break>and<phoneme>SSML matchers backtracked cubically on an unterminated tag (about 22 seconds on a 4 KB input), which could stall any caller passing user-supplied SSML; both now return in under a millisecond at 20,000 characters. Known limitation: atime=written inside another attribute's quoted value is still read as the real one. (#809) (dc7e585)
- helpers:
TextBuilder.text()with an inline pronunciation, andTextBuilder.from_ssml(), now count the spoken word of a pronunciation toward the 2,000-character limit, matching the fluentpronunciation()call. Previously the whole control, including the word, was removed before counting, so the same text could be rejected through the fluent API but accepted at 2,001 characters through inline or SSML input. The word is counted by its decoded length, so Unicode and JSON-escaped quotes and backslashes are measured as spoken; pause controls still contribute no text. Inputs just over the limit that were previously accepted now raiseValueError. (#807) (373d43c)
7.20.0 (2026-11-30)
- Authentication: Connect to self-hosted or local Deepgram servers that run without request authentication by passing
auth=FalsetoDeepgramClientorAsyncDeepgramClient, matching the JavaScript SDK'sauth: false. No key is required,DEEPGRAM_API_KEYis ignored, and noAuthorizationheader is sent on the client's HTTP requests or WebSocket handshakes; a caller-supplied HTTPX client keeps its own authentication for every request the SDK did not originate.auth=Falsecannot be combined withapi_keyoraccess_token, andauthaccepts no value other thanFalse. When no key is available and the environment'sbaseis not adeepgram.comhost, the missing-key error now ends with a hint to passauth=False; the message for Deepgram's hosted API is unchanged. (#833) (a812aff)
7.19.0 (2026-11-12)
- Listen: Add the optional
redact_usagecontrol to Listen V1 and V2 clients. Active Flux sessions can update it throughListenV2Configure, andListenV2ConfigureSuccessreports the active setting. (#828) (0487431) - Flux TTS: Add the
normalize_volumecontrol for batch and WebSocket synthesis. Expand the typed Flux voice catalog with new multilingual voices, including support for Deepgram Agent TTS providers. (#828) (0487431)
7.18.0 (2026-11-10)
- core: Preserve unknown Agent V1, Listen V1/V2, and Speak V2 WebSocket messages as raw dictionary payloads instead of dropping them; Listen V1/V2 binary frames are now typed. Responses from
with_raw_response()expose the underlyinghttpx.Responseas.response. To avoid replaying a request the server may already have applied,httpx.RemoteProtocolErroris no longer retried by default; opt in for safe requests withrequest_options={"retry_remote_protocol_errors": True}. (#826) (3b3679c)
7.17.0 (2026-11-02)
- Voice Agent: Use Deepgram-hosted language models in the Think stage with
ThinkSettingsV1Provider_Deepgram. Selectthink-fast(requires Model Improvement Program participation) orphonellm-mini-alpha-2-fp8(for sessions usingmip_opt_out=True). The provider supportstemperature,reasoning_mode, andvoice_prompt_opt_out; usereasoning_mode="none"or omit it with phonellm to prevent reasoning text from being spoken. Early Access. (#821) (5c7f319) (#823) (3280a4a)
7.16.0 (2026-10-27)
- Voice Agent Think Live: Configure
agent.think_livewith the Deepgram v1 provider; update it during a session withconnection.send_update_think_live(...); and receiveThinkLiveUpdatedandFrustrationDetectedevents. Useconnection.send_inject_dynamic_agent_message(...)to request a Think Live-generated filler line.ConversationTextnow reportsconversational_behavior(default,backchannel,presence_check, orfiller); the service always sends it, while older or self-hosted payloads default todefaultin the Python model. (#815) (0a97e3a) - Flux TTS: Flux models now support 41 languages and 230 voices. Continue to pass the model as
flux-{voice}-{language}; text normalization is available for English, German, Dutch, French, Hindi, Italian, Japanese, Portuguese, Russian, and Spanish. (#815) (0a97e3a)
- Agent: Document
ConversationText.conversational_behavioras always sent, while retaining thedefaultfallback for self-hosted and mocked payload compatibility. (#819) (cd8ba29)
7.15.0 (2026-10-23)
- Listen V1 / Nova-3 multilingual: Add optional
language_hintsupport for synchronous and asynchronous URL/file transcription and WebSocket connections. Pass one BCP-47 hint as a string or several as a list; hints bias detection whenmodel="nova-3"andlanguage="multi". Transcription alternatives now expose typedlanguagesand normalizedlanguages_hintedfields, with per-word and utterance language metadata. (#813) (b474446)
7.14.0 (2026-10-20)
- Voice Agent: Send protocol-transparent control frames with sync or async
connection.send_raw(...). Dictionary payloads are serialized without model validation; pre-serialized JSON strings are sent unchanged. (#789) - Listen V1: Receive typed
ListenV1ConfigureSuccessandListenV1ConfigureFailureresponses afterconnection.send_configure(ListenV1Configure(...)), including failure codes for unsupported or over-limit keyterms. (#803)
- Voice Agent: Clarify ForceEndTurn availability for hosted and self-hosted deployments. The example now reports
FORCE_END_TURN_UNSUPPORTEDand waits for the final outcome before closing the connection. (#788)
7.13.0 (2026-10-08)
- Listen V1: Reconfigure an active Nova-3 stream without reconnecting with
connection.send_configure(ListenV1Configure(...)), including keyterms and the numerals formatting feature. Server-side Configure rejections arrive as typedListenV1Errorresponses; send an empty keyterms list to clear all active keyterms. (#799) (dce6960) - Voice Agent: Exchange custom Think-provider payloads with
send_custom_to_think_provider(AgentV1CustomToThinkProvider(...))andAgentV1CustomFromThinkProviderresponses. This experimental capability requires a configured custom Think-provider WebSocket endpoint; payloads preserve nested JSON values. (#799) (dce6960)
7.12.0 (2026-10-01)
- Speak v2 (Flux TTS): Add inline pause markers for batch requests and IPA pronunciation overrides for Flux batch, Flux WebSocket, and Aura-2 requests. Pronunciation is Early Access; pause markers are Flux batch-only. See Speed, Pause, Pronunciation. (#797) (d2b5514)
- TextBuilder: Emit the Flux marker syntax the API accepts: pauses as
\{pause:500ms\}and pronunciations as\{"word": "...", "pronounce": "<IPA>"\}. The 7.11.0 markers ({pause:500}and the unescaped pronunciation form) are rejected by/v2/speakwithBREAK_SYNTAX_INVALIDor ignored, so upgrade to use TextBuilder with Flux TTS. Limits now match Flux batch: pauses 500-3000 ms in 100 ms steps (was 500-5000) and at most 8 per request (was 50).pause(),from_ssml(), andbuild()raiseValueErrorfor out-of-range or off-grid durations (previously rounded), for malformed markers, and for pause-plus-pronunciation combinations, instead of sending a request the API would reject. - Listen v2 (Flux): Add typed
Warningresponses while preserving dict-style response access during the 7.x transition.
- Topics and Intents:
SharedTopicsandSharedIntentsnow type the directsegmentsresponse shape returned by the API. Deprecatedresultsfacades, legacy import paths, and legacy construction remain available in v7.
7.11.0 (2026-09-23)
- Listen v2 (Flux): change numerals during an active connection with
connection.send_configure(ListenV2Configure(numerals=True)). Numerals convert written numbers to numerical format for turns transcribed after the update. (#794) (c7c1b3f)
7.10.0 (2026-09-17)
- Voice Agent: Add typed
FunctionCallCancelledWebSocket events. Events identify function calls that are no longer valid; do not send aFunctionCallResponsefor the listed call IDs. (#790) (7f5b642) - Voice Agent: Add the optional
defer_until_eotfunction setting. When enabled, it holds a function call until the user's turn is confirmed and discards the deferred call if the turn resumes. Defaults tofalse. (#790) (7f5b642)
7.9.0 (2026-09-14)
- Voice Agent: Adds
send_force_end_turn()and typed ForceEndTurn messages for V2 Flux listen providers. (#783) (ff49864) - Voice Agent: Adds integer
expressivityfrom-2through2for Deepgram Flux TTS providers. (#783) (ff49864) - Flux TTS:
speedaccepts0.5through1.5in0.05increments, replacing the previously documented0.85through1.15range. (#783) (ff49864)
- Speak V1: Removes
aura-2-perseo-itfrom model literals. The API never served the model and returns 400No such model/version combination foundfor it. (#783) (ff49864)
7.8.1 (2026-09-03)
- TextBuilder:
ssml_to_deepgram()now preserves a<phoneme>pronunciation when its validphandalphabetattributes appear in either order. (#741) (7fd4b63) - Credentials: Explicitly passing
api_key=Nonecontinues to disable ambientDEEPGRAM_API_KEYlookup, which is important for multi-tenant and test environments. (#778) (e675990) - Credentials:
DeepgramClient()andAsyncDeepgramClient()now resolveDEEPGRAM_API_KEYwhen constructed, soload_dotenv()can run after importing the SDK. Closes #734. (#767) (ec362ec) - Custom transports: Speak V2 WebSocket connections now honor
transport_factory, matching the routing behavior of other WebSocket APIs for proxies, test doubles, and custom-hosted transports. (#766) (0980663)
- Transcription: Clarified that Nova-3 assumes English when
languageis omitted; non-English and multilingual audio require an explicit language such asfrormulti. (#771) (4574337) - Examples: Added Listen V1 live microphone transcription with optional
sounddevice, device selection, bounded audio buffering, transcript output, and clean Ctrl-C shutdown. (#780) (08f0471) - Examples: Added a resilient Listen V1 live transcription pattern with exponential backoff, reconnect-aware audio buffering, timestamp continuity, and clean shutdown. (#776) (96b2d11)
- Examples: Added an application-owned Voice Agent session recorder that serializes received transcripts, function calls, and latency reports as JSON while leaving consent, redaction, retention, and storage policy to the application. Closes #775. (#781) (30ad152)
- Text-to-Speech: Corrected streaming synthesis snippets to iterate the response byte chunks instead of accessing a nonexistent
.streamattribute. (#749) (178724e)
7.8.0 (2026-08-28)
7.7.1 (2026-08-21)
- listen/v2: restore subscript access on typed responses (c4d2580)
- narrow listen v2 compatibility to subscript access (aac5e0a)
- preserve dict access on typed response models (b9f544a)
- restore listen v2 mapping behavior (8a18e3b)
- scope dict compatibility to listen v2 responses (0c67f00)
7.7.0 (2026-08-12)
Flux TTS streaming controls and Listen v2 redaction.
- Speak v2 (Flux TTS streaming): barge-in via
send_interrupt()(optionalplayback_offset,{type: "time_ms", value: N}), answered by aSpeechInterruptedserver message whose metadata carries the newcontrols_applied.breaks_appliedcounter; mid-streamsend_configure()to changespeed, acknowledged byConfigureSuccess/ConfigureFailure; newspeedandexpressivityconnect query parameters. Inline pause and pronunciation controls are not applied at launch — they are stripped before synthesis and support is coming soon. (#758) (aab1eae) - Listen v2:
redactconnect parameter (ListenV2Redact:numbers,aggressive_numbers);send_configure()is now properly typed (ListenV2Configure+ListenV2ConfigureSuccessin the response union), replacing the previoustyping.Anyshim. (#758) (aab1eae) - Other:
GoogleThinkProviderVersionaddsai-studio-v1betaandgemini-enterprise-agent-v1;AgentV1UpdateListenListenProviderdiscriminated union (_V1/_V2, discriminantversion);client_wrappernow derives its version fromimportlib.metadatarather than a hardcoded string. (#758) (aab1eae)
- No breaking changes against v7.6.0: 0 removed public exports, 0 deleted modules, baseline socket-client signatures intact, and enum changes are widenings only.
- The
deepgramspeak providerversionwidens fromLiteral["v1"]tostr. AgentV1UpdateListenListen.providermoves from a bareDeepgramListenProviderV2to a required discriminated union; a compatibility validator coerces a legacy provider instance or bare dict into the new shape (both serialize toversion: "v2"), so existing callers are unaffected.
7.6.0 (2026-07-22)
7.5.0 (2026-07-14)
- Streaming text-to-speech (Flux) via
speak.v2— new WebSocket TTS:client.speak.v2.connect(...)streamsSpeak/Flush/Closeand returns audio frames plus control messages. Also adds agentUpdateListen/ListenUpdated(swap the listen provider mid-session) and Flux end-of-turn tuning (eot_threshold,eager_eot_threshold,eot_timeout_ms). (#742) (69a2445) - Flux text-to-speech batch (REST) endpoint and agent latency report. (#744) (6ca71c4)
7.4.0 (2026-06-26)
7.3.1 (2026-06-03)
7.3.0 (2026-06-01)
- client: add a declarative
reconnectflag with transport-factory auto-disable.DeepgramClient/AsyncDeepgramClientnow acceptreconnect: bool = True(exposed read-only asclient.reconnect). When a customtransport_factoryis supplied,reconnectauto-sets toFalseto signal that the transport owns its own retry/reconnect lifecycle — e.g. the SageMaker transport's jittered backoff + replay buffers — so SDK-level retries don't stack on top and cause storm-on-storm under burst load. Passreconnect=Trueexplicitly to opt back in. Declarative only for now (the Python SDK has no wrapper reconnect layer;websocketsdoesn't auto-reconnect), fully backwards-compatible, and parity with the same flag in the JS (#492) and Java SDKs (#720) (b5d5905)
7.2.0 (2026-05-18)
- agent: Diarization v2 is now GA for batch transcription via the listen REST API (#714) (9d9a43d)
- agent: rename listen-provider types to
DeepgramListenProviderV1,DeepgramListenProviderV2, andDeepgramListenProviderV2LanguageHint. The oldAgentV1SettingsAgent[Context]ListenProvider*names continue to work as backward-compatible aliases (#714) (9d9a43d)
- agent: route
agent.v1.settings.think.models.list()to the correct REST host. Previously this endpoint resolved against the wrong base URL and was unusable (#715) (ffd2e7d) - environment: replace
DeepgramClientEnvironment.AGENTwith a newagent_restslot onDeepgramClientEnvironment. Callers constructing a custom environment should passagent_rest=instead ofagent=(#715) (ffd2e7d)
7.1.1 (2026-05-12)
7.1.0 (2026-05-06)
7.0.0 (2026-04-27)
6.1.1 (2026-03-27)
6.1.0 (2026-03-26)
- agent: support multi-provider speak/think configuration and typed listen parameters (#676) (5dfb1aa)
6.0.1 (2026-02-24)
6.0.0 (2026-02-23)
- promote v6.0.0-rc.2 to v6.0.0 stable
- promote v6.0.0-rc.2 to v6.0.0 stable (34f543e)
6.0.0-rc.2 (2026-02-18)
- sagemaker: extract SageMaker transport to separate package (#663) (d82b699)
- sagemaker: move SageMaker transport to separate package (#662) (16d500e)
6.0.0-rc.1 (2026-02-16)
- v6 — fully generated SDK with latest APIs and WebSocket support (#640)
- helpers: add TextBuilder class for TTS pronunciation and pause controls (#660) (4324120)
- sagemaker: add SageMaker transport support via the separate
deepgram-sagemakerpackage (pip install deepgram-sagemaker) (#659) - v6 — fully generated SDK with latest APIs and WebSocket support (#640) (bc918fe)
- websockets: add custom WebSocket transport support (#658) (f6cf0fb)
5.3.2 (2026-01-29)
- speak: correct TTS warning event field names to match API response (#653) (f7ab1da)
- types: change speaker and related fields from float to int (#652) (00ee485), closes #641
- websockets: support array parameters in Listen v1 and v2 clients (#650) (38cc1e5)
- release 5.3.2 (d61ce8c)
5.3.0 (2025-10-30)
5.2.0 (2025-10-21)
5.1.0 (2025-10-16)
- mention keep alive in migration guide (#594) (5a8c79e)
- update the SDK with upstream spec changes (d77ad96)
- ci: reference the correct secret (#585) (09550c7)
- corrects order to the release workflow (#583) (3abbac3)
- remove testpypi we don't need it in the workflow (#582) (b2e2538)
- support multiple keyterms for v2 listen client (#595) (7a9d41d)
5.0.0 (2025-10-02)
- This is a significant breaking change, and should be carried out in conjunction with our migration guide.