Skip to content

chore(main): release 7.21.0 - #839

Merged
GregHolmes merged 2 commits into
mainfrom
release-please--branches--main--components--deepgram-sdk
Dec 2, 2026
Merged

GregHolmes merged 2 commits into
mainfrom
release-please--branches--main--components--deepgram-sdk

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

🤖 I have created a release beep boop

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)

This PR was generated with Release Please. See documentation.

@github-actions github-actions Bot changed the title chore(main): release 7.20.1 chore(main): release 7.21.0 Nov 30, 2026
@github-actions
github-actions Bot force-pushed the release-please--branches--main--components--deepgram-sdk branch from 325fa34 to b5821e3 Compare November 30, 2026 12:29
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor Author

Code Coverage

Package Line Rate Branch Rate Complexity Health
src.deepgram 95% 91% 0 ✔
src.deepgram.agent 100% 100% 0 ✔
src.deepgram.agent.v1 98% 100% 0 ✔
src.deepgram.agent.v1.settings 100% 100% 0 ✔
src.deepgram.agent.v1.settings.think 100% 100% 0 ✔
src.deepgram.agent.v1.settings.think.models 97% 100% 0 ✔
src.deepgram.auth 100% 100% 0 ✔
src.deepgram.auth.v1 100% 100% 0 ✔
src.deepgram.auth.v1.tokens 97% 100% 0 ✔
src.deepgram.core 89% 84% 0 ➖
src.deepgram.errors 100% 100% 0 ✔
src.deepgram.helpers 97% 92% 0 ✔
src.deepgram.listen 100% 100% 0 ✔
src.deepgram.listen.v1 98% 93% 0 ✔
src.deepgram.listen.v1.media 97% 100% 0 ✔
src.deepgram.listen.v2 98% 93% 0 ✔
src.deepgram.manage 100% 100% 0 ✔
src.deepgram.manage.v1 100% 100% 0 ✔
src.deepgram.manage.v1.models 96% 100% 0 ✔
src.deepgram.manage.v1.projects 97% 100% 0 ✔
src.deepgram.manage.v1.projects.billing 100% 100% 0 ✔
src.deepgram.manage.v1.projects.billing.balances 96% 100% 0 ✔
src.deepgram.manage.v1.projects.billing.breakdown 97% 100% 0 ✔
src.deepgram.manage.v1.projects.billing.fields 97% 100% 0 ✔
src.deepgram.manage.v1.projects.billing.purchases 97% 100% 0 ✔
src.deepgram.manage.v1.projects.keys 96% 100% 0 ✔
src.deepgram.manage.v1.projects.members 97% 100% 0 ✔
src.deepgram.manage.v1.projects.members.invites 96% 100% 0 ✔
src.deepgram.manage.v1.projects.members.scopes 96% 100% 0 ✔
src.deepgram.manage.v1.projects.models 96% 100% 0 ✔
src.deepgram.manage.v1.projects.usage 98% 100% 0 ✔
src.deepgram.manage.v1.projects.usage.breakdown 97% 100% 0 ✔
src.deepgram.manage.v1.projects.usage.fields 97% 100% 0 ✔
src.deepgram.read 100% 100% 0 ✔
src.deepgram.read.v1 100% 100% 0 ✔
src.deepgram.read.v1.text 98% 100% 0 ✔
src.deepgram.self_hosted 100% 100% 0 ✔
src.deepgram.self_hosted.v1 100% 100% 0 ✔
src.deepgram.self_hosted.v1.distribution_credentials 96% 100% 0 ✔
src.deepgram.speak 100% 100% 0 ✔
src.deepgram.speak.v1 98% 97% 0 ✔
src.deepgram.speak.v1.audio 91% 80% 0 ✔
src.deepgram.speak.v2 98% 93% 0 ✔
src.deepgram.speak.v2.audio 100% 100% 0 ✔
src.deepgram.voice_agent 100% 100% 0 ✔
src.deepgram.voice_agent.configurations 95% 100% 0 ✔
src.deepgram.voice_agent.variables 95% 100% 0 ✔
Summary 96% (6693 / 7002) 92% (1481 / 1608) 0 ✔

Scope: hand-maintained SDK logic. Fern-generated data models (types/, requests/), package __init__.py files, version.py, and the unused core/http_sse/ scaffolding are excluded — see .coveragerc. Unscoped whole-package coverage is ~70%.

@GregHolmes
GregHolmes merged commit f7283f1 into main Dec 2, 2026
11 checks passed
@GregHolmes
GregHolmes deleted the release-please--branches--main--components--deepgram-sdk branch December 2, 2026 10:22
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Created releases:

🌻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant