diff --git a/.fern/metadata.json b/.fern/metadata.json index a18824a9..f92207ea 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -24,5 +24,5 @@ "originGitCommit": "e252995bcdb25f3e12d46ae342a2b93d0c1085f9", "originGitCommitIsDirty": true, "invokedBy": "manual", - "sdkVersion": "7.11.0" + "sdkVersion": "7.12.0" } diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json index e4cc178c..a89bc43b 100644 --- a/.github/.release-please-manifest.json +++ b/.github/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "7.11.0" + ".": "7.12.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index d4bcffd2..b607f835 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [7.12.0](https://github.com/deepgram/deepgram-python-sdk/compare/v7.11.0...v7.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](https://developers.deepgram.com/docs/tts-voice-controls). ([#797](https://github.com/deepgram/deepgram-python-sdk/issues/797)) ([d2b5514](https://github.com/deepgram/deepgram-python-sdk/commit/d2b5514eab37761332fcebed75ced20e54088337)) +* **TextBuilder:** Emit the Flux marker syntax the API accepts: pauses as `\{pause:500ms\}` and pronunciations as `\{"word": "...", "pronounce": ""\}`. 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](https://github.com/deepgram/deepgram-python-sdk/compare/v7.10.0...v7.11.0) (2026-09-23) diff --git a/pyproject.toml b/pyproject.toml index 5e7bfadf..6ec5d599 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic = ["version"] [tool.poetry] name = "deepgram-sdk" -version = "7.11.0" +version = "7.12.0" description = "" readme = "README.md" authors = [] diff --git a/src/deepgram/core/client_wrapper.py b/src/deepgram/core/client_wrapper.py index c0911628..77290c70 100644 --- a/src/deepgram/core/client_wrapper.py +++ b/src/deepgram/core/client_wrapper.py @@ -37,7 +37,7 @@ def get_headers(self) -> typing.Dict[str, str]: try: _sdk_version = _fern_importlib_metadata.version("deepgram-sdk") except _fern_importlib_metadata.PackageNotFoundError: - _sdk_version = "7.11.0" # x-release-please-version + _sdk_version = "7.12.0" # x-release-please-version headers: typing.Dict[str, str] = { "User-Agent": "deepgram-sdk/" + _sdk_version,