Summary
Add support for Deepgram's Flux streaming model in the Rust SDK, including Flux-specific parameters (language detection per utterance, keyterms), and correct handling of Flux response format differences.
Problem it solves
Flux is Deepgram's latest streaming STT model offering lower latency and multilingual capabilities with per-turn language detection. Rust developers building low-latency, performance-critical voice applications — embedded systems, game engines, real-time communication servers — are a natural audience for Flux's speed advantages. Currently, the Rust SDK may not correctly handle Flux-specific parameters and response formats, preventing Rust developers from using Deepgram's fastest streaming model.
Proposed API
use deepgram::{Deepgram, listen::StreamOptions};
let dg = Deepgram::new(api_key)?;
let options = StreamOptions::builder()
.model("flux") // Flux model selection
.language("multi") // Multilingual mode
.keyterms(vec!["Deepgram", "Nova"]) // Vocabulary boosting
.smart_format(true)
.interim_results(true)
.build();
let mut stream = dg.listen().stream(options).await?;
while let Some(event) = stream.next().await {
match event? {
StreamEvent::Transcript(t) => {
// Access detected language per utterance
if let Some(lang) = t.detected_language() {
println!("[{}] {}", lang, t.transcript());
}
}
StreamEvent::SpeechStarted(_) => { /* ... */ }
StreamEvent::UtteranceEnd(_) => { /* ... */ }
_ => {}
}
}
Acceptance criteria
Raised by the DX intelligence system.
Summary
Add support for Deepgram's Flux streaming model in the Rust SDK, including Flux-specific parameters (language detection per utterance, keyterms), and correct handling of Flux response format differences.
Problem it solves
Flux is Deepgram's latest streaming STT model offering lower latency and multilingual capabilities with per-turn language detection. Rust developers building low-latency, performance-critical voice applications — embedded systems, game engines, real-time communication servers — are a natural audience for Flux's speed advantages. Currently, the Rust SDK may not correctly handle Flux-specific parameters and response formats, preventing Rust developers from using Deepgram's fastest streaming model.
Proposed API
Acceptance criteria
model("flux")in stream optionslanguage("multi")Raised by the DX intelligence system.