feat(regen): flux stt numerals and aura-2 multilingual tts voices#746
Open
GregHolmes wants to merge 7 commits into
Open
feat(regen): flux stt numerals and aura-2 multilingual tts voices#746GregHolmes wants to merge 7 commits into
GregHolmes wants to merge 7 commits into
Conversation
GregHolmes
requested review from
deepgram-kiley and
dg-coreylweathers
as code owners
July 20, 2026 09:22
The 2026-07-20 regen dropped stt_latency from AgentV1LatencyReport after the API spec removed it (deepgram-docs #1006). LatencyReport is a server-emitted (read-only) message, so re-add the optional field by hand and freeze it: this keeps report.stt_latency resolving to None instead of raising AttributeError, avoiding a major-version break. No request/wire impact — the client never sends a LatencyReport.
Adds tests/custom/test_listen_v2_connect_wire.py (sync + async), pinning that listen.v2.connect() targets /v2/listen and serializes the new numerals param to the wire as numerals=true (and omits it when absent) — the /v2/listen handshake previously had no wire coverage. Demonstrates numerals in the v2 live example and fixes a pre-existing f-string-without-placeholder lint there.
…2.connect reference.md is frozen in .fernignore, so the Fern regen never adds these to the listen.v2.connect() section — it jumped straight from keyterm to mip_opt_out. Add the three missing params (in connect() signature order) by hand, incl. the new numerals param from this regen (docs deepgram-docs#1020).
dg-coreylweathers
approved these changes
Jul 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SDK regeneration for 2026-07-20 (Fern generator
5.14.18, specff8fd2b7), bumping the package to 7.5.1.Features
numerals— newtypes/listen_v2numerals.py(Literal["true","false"]) plus anumeralsquery param onlisten.v2.connect()and the raw client. Connection-time only. (docs deepgram-docs#1020)tests/custom/test_listen_v2_connect_wire.py(sync + async) pins that/v2/listenserializesnumerals=trueand omits it when absent — the/v2/listenhandshake previously had no wire test.examples/14-transcription-live-websocket-v2.py.SpeakV1ModelandAudioGenerateRequestModel(es/de/nl/fr/it/ja). Additive only; not breaking.Breaking change from spec — mitigated (stays non-breaking)
stt_latencyfromAgentV1LatencyReport(deepgram-docs#1006).AgentV1LatencyReportis a server-emitted (read-only) message, sostt_latencyis re-added by hand as a read-side backward-compat field (frozen in.fernignore):report.stt_latencykeeps resolving toNoneinstead of raisingAttributeError, with no request/wire impact. Covered bytests/custom/test_latency_report_stt_compat.py. Keeps this a minor/patch release, not a major.Manual patches reconciled
All 27 previously-frozen patches were still needed and re-applied (byte-identical to
main; the behavioral files don't appear in the net diff). Intended changes to frozen files:client_wrapper.pyversion annotations -> 7.5.1, and root +types__init__.pygained the newListenV2Numeralsexport alongside the legacy aliases. New frozen entries: the twoagent_v1latency_report.pyshims and the two new custom tests. All.bakfiles deleted.Verification
mypy src/deepgram— clean (857 files)pytest— 331 passed, 1 skippedruff check src/deepgram— clean (pre-existing warnings in hand-maintainedtests/manual+tests/customonly, identical onmain)