Skip to content

Latest commit

 

History

History
390 lines (190 loc) · 35.5 KB

CHANGELOG.md

File metadata and controls

390 lines (190 loc) · 35.5 KB

Changelog

7.21.0 (2026-11-30)

Features

  • helpers: ssml_to_deepgram() and TextBuilder.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 raises ValueError when 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: a time= written inside another attribute's quoted value is still read as the real one. (#809) (dc7e585)

Bug Fixes

  • helpers: TextBuilder.text() with an inline pronunciation, and TextBuilder.from_ssml(), now count the spoken word of a pronunciation toward the 2,000-character limit, matching the fluent pronunciation() 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 raise ValueError. (#807) (373d43c)

7.20.0 (2026-11-30)

Features

  • Authentication: Connect to self-hosted or local Deepgram servers that run without request authentication by passing auth=False to DeepgramClient or AsyncDeepgramClient, matching the JavaScript SDK's auth: false. No key is required, DEEPGRAM_API_KEY is ignored, and no Authorization header 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=False cannot be combined with api_key or access_token, and auth accepts no value other than False. When no key is available and the environment's base is not a deepgram.com host, the missing-key error now ends with a hint to pass auth=False; the message for Deepgram's hosted API is unchanged. (#833) (a812aff)

7.19.0 (2026-11-12)

Features

  • Listen: Add the optional redact_usage control to Listen V1 and V2 clients. Active Flux sessions can update it through ListenV2Configure, and ListenV2ConfigureSuccess reports the active setting. (#828) (0487431)
  • Flux TTS: Add the normalize_volume control 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)

Features

  • 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 underlying httpx.Response as .response. To avoid replaying a request the server may already have applied, httpx.RemoteProtocolError is no longer retried by default; opt in for safe requests with request_options={"retry_remote_protocol_errors": True}. (#826) (3b3679c)

7.17.0 (2026-11-02)

Features

  • Voice Agent: Use Deepgram-hosted language models in the Think stage with ThinkSettingsV1Provider_Deepgram. Select think-fast (requires Model Improvement Program participation) or phonellm-mini-alpha-2-fp8 (for sessions using mip_opt_out=True). The provider supports temperature, reasoning_mode, and voice_prompt_opt_out; use reasoning_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)

Features

  • Voice Agent Think Live: Configure agent.think_live with the Deepgram v1 provider; update it during a session with connection.send_update_think_live(...); and receive ThinkLiveUpdated and FrustrationDetected events. Use connection.send_inject_dynamic_agent_message(...) to request a Think Live-generated filler line. ConversationText now reports conversational_behavior (default, backchannel, presence_check, or filler); the service always sends it, while older or self-hosted payloads default to default in 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)

Bug Fixes

  • Agent: Document ConversationText.conversational_behavior as always sent, while retaining the default fallback for self-hosted and mocked payload compatibility. (#819) (cd8ba29)

7.15.0 (2026-10-23)

Features

  • Listen V1 / Nova-3 multilingual: Add optional language_hint support 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 when model="nova-3" and language="multi". Transcription alternatives now expose typed languages and normalized languages_hinted fields, with per-word and utterance language metadata. (#813) (b474446)

7.14.0 (2026-10-20)

Features

  • 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 ListenV1ConfigureSuccess and ListenV1ConfigureFailure responses after connection.send_configure(ListenV1Configure(...)), including failure codes for unsupported or over-limit keyterms. (#803)

Bug Fixes

  • Voice Agent: Clarify ForceEndTurn availability for hosted and self-hosted deployments. The example now reports FORCE_END_TURN_UNSUPPORTED and waits for the final outcome before closing the connection. (#788)

7.13.0 (2026-10-08)

Features

  • 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 typed ListenV1Error responses; 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(...)) and AgentV1CustomFromThinkProvider responses. This experimental capability requires a configured custom Think-provider WebSocket endpoint; payloads preserve nested JSON values. (#799) (dce6960)

7.12.0 (2026-10-01)

Features

  • 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/speak with BREAK_SYNTAX_INVALID or 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(), and build() raise ValueError for 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 Warning responses while preserving dict-style response access during the 7.x transition.

Compatibility

  • Topics and Intents: SharedTopics and SharedIntents now type the direct segments response shape returned by the API. Deprecated results facades, legacy import paths, and legacy construction remain available in v7.

7.11.0 (2026-09-23)

Features

  • 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)

Features

  • Voice Agent: Add typed FunctionCallCancelled WebSocket events. Events identify function calls that are no longer valid; do not send a FunctionCallResponse for the listed call IDs. (#790) (7f5b642)
  • Voice Agent: Add the optional defer_until_eot function 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 to false. (#790) (7f5b642)

7.9.0 (2026-09-14)

Features

  • Voice Agent: Adds send_force_end_turn() and typed ForceEndTurn messages for V2 Flux listen providers. (#783) (ff49864)
  • Voice Agent: Adds integer expressivity from -2 through 2 for Deepgram Flux TTS providers. (#783) (ff49864)
  • Flux TTS: speed accepts 0.5 through 1.5 in 0.05 increments, replacing the previously documented 0.85 through 1.15 range. (#783) (ff49864)

Model Catalog

  • Speak V1: Removes aura-2-perseo-it from model literals. The API never served the model and returns 400 No such model/version combination found for it. (#783) (ff49864)

7.8.1 (2026-09-03)

Bug Fixes

  • TextBuilder: ssml_to_deepgram() now preserves a <phoneme> pronunciation when its valid ph and alphabet attributes appear in either order. (#741) (7fd4b63)
  • Credentials: Explicitly passing api_key=None continues to disable ambient DEEPGRAM_API_KEY lookup, which is important for multi-tenant and test environments. (#778) (e675990)
  • Credentials: DeepgramClient() and AsyncDeepgramClient() now resolve DEEPGRAM_API_KEY when constructed, so load_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)

Documentation

  • Transcription: Clarified that Nova-3 assumes English when language is omitted; non-English and multilingual audio require an explicit language such as fr or multi. (#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 .stream attribute. (#749) (178724e)

7.8.0 (2026-08-28)

Features

  • regen: listen v2 force-end-turn and listen v1 diarize metadata (#768) (bacd1b5)

7.7.1 (2026-08-21)

Bug Fixes

  • 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.

Features

  • Speak v2 (Flux TTS streaming): barge-in via send_interrupt() (optional playback_offset, {type: "time_ms", value: N}), answered by a SpeechInterrupted server message whose metadata carries the new controls_applied.breaks_applied counter; mid-stream send_configure() to change speed, acknowledged by ConfigureSuccess / ConfigureFailure; new speed and expressivity connect 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: redact connect parameter (ListenV2Redact: numbers, aggressive_numbers); send_configure() is now properly typed (ListenV2Configure + ListenV2ConfigureSuccess in the response union), replacing the previous typing.Any shim. (#758) (aab1eae)
  • Other: GoogleThinkProviderVersion adds ai-studio-v1beta and gemini-enterprise-agent-v1; AgentV1UpdateListenListenProvider discriminated union (_V1 / _V2, discriminant version); client_wrapper now derives its version from importlib.metadata rather than a hardcoded string. (#758) (aab1eae)

Compatibility

  • 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 deepgram speak provider version widens from Literal["v1"] to str.
  • AgentV1UpdateListenListen.provider moves from a bare DeepgramListenProviderV2 to a required discriminated union; a compatibility validator coerces a legacy provider instance or bare dict into the new shape (both serialize to version: "v2"), so existing callers are unaffected.

7.6.0 (2026-07-22)

Features

  • regen: flux stt numerals and aura-2 multilingual tts voices (#746) (17a1deb)

7.5.0 (2026-07-14)

Features

  • Streaming text-to-speech (Flux) via speak.v2 — new WebSocket TTS: client.speak.v2.connect(...) streams Speak/Flush/Close and returns audio frames plus control messages. Also adds agent UpdateListen/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)

Features

  • regen: v2 language_hints, profanity filter, word timings, diarize_model (#730) (da6b7ba)

Bug Fixes

  • redact Authorization header from websockets DEBUG logs (#731) (029d877)

Documentation

  • improve contributor onboarding and setup instructions (#718) (3f7398a)

7.3.1 (2026-06-03)

Bug Fixes

  • widen pydantic-core bound via fern 5.14.8 regen (closes #701) (#724) (5c1e845)

7.3.0 (2026-06-01)

Features

  • client: add a declarative reconnect flag with transport-factory auto-disable. DeepgramClient / AsyncDeepgramClient now accept reconnect: bool = True (exposed read-only as client.reconnect). When a custom transport_factory is supplied, reconnect auto-sets to False to 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. Pass reconnect=True explicitly to opt back in. Declarative only for now (the Python SDK has no wrapper reconnect layer; websockets doesn'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)

Features

  • agent: Diarization v2 is now GA for batch transcription via the listen REST API (#714) (9d9a43d)
  • agent: rename listen-provider types to DeepgramListenProviderV1, DeepgramListenProviderV2, and DeepgramListenProviderV2LanguageHint. The old AgentV1SettingsAgent[Context]ListenProvider* names continue to work as backward-compatible aliases (#714) (9d9a43d)

Bug Fixes

  • 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.AGENT with a new agent_rest slot on DeepgramClientEnvironment. Callers constructing a custom environment should pass agent_rest= instead of agent= (#715) (ffd2e7d)

7.1.1 (2026-05-12)

Bug Fixes

  • lowercase bool query params on websocket connect (#712) (8899609)

7.1.0 (2026-05-06)

Features

  • update generated SDK models and restore agent settings compatibility (#705) (0b820c9)

Documentation

  • target Context7 benchmark gaps in Python skills [no-ci] (#699) (a232eb8)

7.0.0 (2026-04-27)

⚠ BREAKING CHANGES

  • sdk regeneration 2026-04-24 (#696)
  • sdk regeneration 2026-04-14 (#690)

Features

6.1.1 (2026-03-27)

Bug Fixes

  • websockets: restore optional message param on control send_ methods (#680) (0018fc4)

6.1.0 (2026-03-26)

Features

  • agent: support multi-provider speak/think configuration and typed listen parameters (#676) (5dfb1aa)

6.0.1 (2026-02-24)

Bug Fixes

  • 🌿 skip_validation:true to allow unknown messages back from the API (#669) (48354d2)

6.0.0 (2026-02-23)

⚠ BREAKING CHANGES

  • promote v6.0.0-rc.2 to v6.0.0 stable

Features

  • promote v6.0.0-rc.2 to v6.0.0 stable (34f543e)

6.0.0-rc.2 (2026-02-18)

Bug Fixes

  • sagemaker: extract SageMaker transport to separate deepgram-sagemaker package (#665) (e6317c5)

Refactors

  • 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)

⚠ BREAKING CHANGES

  • v6 — fully generated SDK with latest APIs and WebSocket support (#640)

Features

  • helpers: add TextBuilder class for TTS pronunciation and pause controls (#660) (4324120)
  • sagemaker: add SageMaker transport support via the separate deepgram-sagemaker package (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)

Bug Fixes

  • 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)

Miscellaneous Chores

5.3.0 (2025-10-30)

Features

  • add projects billing fields list methods (#621) (10d67cd)

5.2.0 (2025-10-21)

Features

5.1.0 (2025-10-16)

Features

  • mention keep alive in migration guide (#594) (5a8c79e)
  • update the SDK with upstream spec changes (d77ad96)

Bug Fixes

  • 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)

⚠ BREAKING CHANGES

  • This is a significant breaking change, and should be carried out in conjunction with our migration guide.

Features

  • implements new generated SDK architecture, all call signatures (#572) (768d514)

Bug Fixes