From b5821e3f483d31e7eebbf09e70ba56f587a2af1a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 30 Nov 2026 12:29:04 +0000 Subject: [PATCH 1/2] chore(main): release 7.21.0 --- .fern/metadata.json | 2 +- .github/.release-please-manifest.json | 2 +- CHANGELOG.md | 12 ++++++++++++ pyproject.toml | 2 +- src/deepgram/core/client_wrapper.py | 2 +- 5 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.fern/metadata.json b/.fern/metadata.json index c9cac64b..df7795f3 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -24,5 +24,5 @@ "originGitCommit": "229defd4c32f220af07902c24efca5e94b4c47a4", "originGitCommitIsDirty": true, "invokedBy": "manual", - "sdkVersion": "7.20.0" + "sdkVersion": "7.21.0" } diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json index 7f814dac..3107bf4b 100644 --- a/.github/.release-please-manifest.json +++ b/.github/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "7.20.0" + ".": "7.21.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 61a37686..7f1b1cc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [7.21.0](https://github.com/deepgram/deepgram-python-sdk/compare/v7.20.0...v7.21.0) (2026-11-30) + + +### Features + +* **helpers:** preserve SSML breaks with additional attributes, fix matcher backtracking ([#809](https://github.com/deepgram/deepgram-python-sdk/issues/809)) ([dc7e585](https://github.com/deepgram/deepgram-python-sdk/commit/dc7e5850b66e0b7741e60cc85c215516f69401bd)) + + +### Bug Fixes + +* **helpers:** count spoken words in inline pronunciations ([#807](https://github.com/deepgram/deepgram-python-sdk/issues/807)) ([373d43c](https://github.com/deepgram/deepgram-python-sdk/commit/373d43c943b277fa2904eff1a74fb82d41f3ae5e)) + ## [7.20.0](https://github.com/deepgram/deepgram-python-sdk/compare/v7.19.0...v7.20.0) (2026-11-30) diff --git a/pyproject.toml b/pyproject.toml index ff6af3d6..9feb0119 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ license-files = ["LICENSE"] [tool.poetry] name = "deepgram-sdk" -version = "7.20.0" +version = "7.21.0" description = "" readme = "README.md" authors = [] diff --git a/src/deepgram/core/client_wrapper.py b/src/deepgram/core/client_wrapper.py index f8afc3bb..546975dd 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.20.0" # x-release-please-version + _sdk_version = "7.21.0" # x-release-please-version headers: typing.Dict[str, str] = { "User-Agent": "deepgram-sdk/" + _sdk_version, From 47748f2e656177f5fa922d0beec4437e5e990347 Mon Sep 17 00:00:00 2001 From: Greg Holmes Date: Wed, 2 Dec 2026 10:11:57 +0000 Subject: [PATCH 2/2] docs(changelog): expand 7.21.0 entries --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f1b1cc8..3db8bf39 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,12 @@ ### Features -* **helpers:** preserve SSML breaks with additional attributes, fix matcher backtracking ([#809](https://github.com/deepgram/deepgram-python-sdk/issues/809)) ([dc7e585](https://github.com/deepgram/deepgram-python-sdk/commit/dc7e5850b66e0b7741e60cc85c215516f69401bd)) +* **helpers:** `ssml_to_deepgram()` and `TextBuilder.from_ssml()` now keep a `` pause when the tag carries other attributes or spaces around `=`, such as `` or ``. 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 `` with extra attributes is now validated like a bare ``, 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 `` and `` 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](https://github.com/deepgram/deepgram-python-sdk/issues/809)) ([dc7e585](https://github.com/deepgram/deepgram-python-sdk/commit/dc7e5850b66e0b7741e60cc85c215516f69401bd)) ### Bug Fixes -* **helpers:** count spoken words in inline pronunciations ([#807](https://github.com/deepgram/deepgram-python-sdk/issues/807)) ([373d43c](https://github.com/deepgram/deepgram-python-sdk/commit/373d43c943b277fa2904eff1a74fb82d41f3ae5e)) +* **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](https://github.com/deepgram/deepgram-python-sdk/issues/807)) ([373d43c](https://github.com/deepgram/deepgram-python-sdk/commit/373d43c943b277fa2904eff1a74fb82d41f3ae5e)) ## [7.20.0](https://github.com/deepgram/deepgram-python-sdk/compare/v7.19.0...v7.20.0) (2026-11-30)