feat: Phase 1 quick wins — TTS request-id, Whisper models, redaction, response fields, captions - #164
Open
dg-coreylweathers wants to merge 1 commit into
Open
feat: Phase 1 quick wins — TTS request-id, Whisper models, redaction, response fields, captions#164dg-coreylweathers wants to merge 1 commit into
dg-coreylweathers wants to merge 1 commit into
Conversation
…, response fields, captions Tier C quick wins toward JS-SDK parity: - #89: TTS REST response metadata — SpeakMetadata (dg-request-id, model name/uuid, char count, content type) via new speak_to_file_with_metadata / speak_to_stream_with_metadata; existing methods unchanged. Drops a stray stdout println from speak_to_file. - #128: named Whisper Model variants (Whisper, WhisperTiny/Base/Small/ Medium/Large), previously only via Model::CustomId. - #87: Redact::Pii, Redact::Phi, Redact::AggressiveNumbers. - #129: public #[non_exhaustive] fields on paragraph/Audio-Intelligence response types (Paragraph, Sentence, Entity, Intents, Sentiments, Topics, Summary, and friends). - #130: extra metadata surfaced on the streaming response. - SRT/WebVTT caption generation (common::captions) mirroring @deepgram/captions, plus captions and text_to_speech_request_id examples. BREAKING CHANGE: streaming stream_response::Metadata and StreamResponse::TerminalResponse are now #[non_exhaustive] and carry an extra field (deserialize-only types; covered by the accumulated 0.11.0 release, where a 0.x minor bump permits breaking changes). Closes #89, #128, #87, #129, #130 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
dg-coreylweathers
force-pushed
the
feat/phase-1-quick-wins
branch
from
July 31, 2026 10:56
5db3bb1 to
fdb89c1
Compare
This was referenced Jul 31, 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.
Phase 1 — Quick-win release (Tier C)
Part of the JS-SDK parity program. Bundles the small, self-contained ergonomics/completeness items into one reviewable PR. Each concern is its own commit.
What's included
dg-request-idwas unrecoverable. AddsSpeakMetadataandspeak_to_file_with_metadata/speak_to_stream_with_metadata; existing methods keep their signatures. Also drops a strayprintln!fromspeak_to_file.Model::Whisper,WhisperTiny/Base/Small/Medium/Large(were only reachable viaModel::CustomId).Redact::Pii,Redact::Phi,Redact::AggressiveNumbers.pub+#[non_exhaustive].extraon streaming response. Surfaced onstream_response::Metadataand the terminal Metadata message.common::captions::srt/webvtt(+Response::to_srt/to_webvtt) mirroring@deepgram/captions. Newcaptionsexample.Verification (run in a Rust 1.97 container)
cargo build --all-features --all-targets✅cargo test --all --all-features✅ (137 passed)cargo clippy --all-features --all-targets -- -D warnings✅cargo fmt --all --check✅cargo doc --all-features(-D warnings) ✅cargo check(no-default / listen / speak / manage) ✅SemVer note
cargo semver-checksreports 2 breaking changes, both from #130 on deserialize-only streaming types (Metadatamarked#[non_exhaustive];extraadded toMetadataandTerminalResponse). Everything else is additive (verified). These are flagged BREAKING in the changelog and are covered by the single accumulated 0.11.0 release at the end of the program (a 0.x minor bump permits breaking changes). Per the program's changelog discipline,Cargo.tomlis not bumped per-PR.Closes #89, #128, #87, #129, #130