Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
"originGitCommit": "229defd4c32f220af07902c24efca5e94b4c47a4",
"originGitCommitIsDirty": true,
"invokedBy": "manual",
"sdkVersion": "7.20.0"
"sdkVersion": "7.21.0"
}
2 changes: 1 addition & 1 deletion .github/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "7.20.0"
".": "7.21.0"
}
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:** `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](https://github.com/deepgram/deepgram-python-sdk/issues/809)) ([dc7e585](https://github.com/deepgram/deepgram-python-sdk/commit/dc7e5850b66e0b7741e60cc85c215516f69401bd))


### 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](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)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
2 changes: 1 addition & 1 deletion src/deepgram/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading