원클릭으로
deepgram-rust-voice-agent
// Use when a user asks for Deepgram Voice Agent support from Rust. Route honestly: this crate does not currently expose the Agent WebSocket API, reusable agent configurations, or typed voice-agent events.
// Use when a user asks for Deepgram Voice Agent support from Rust. Route honestly: this crate does not currently expose the Agent WebSocket API, reusable agent configurations, or typed voice-agent events.
| name | deepgram-rust-voice-agent |
| description | Use when a user asks for Deepgram Voice Agent support from Rust. Route honestly: this crate does not currently expose the Agent WebSocket API, reusable agent configurations, or typed voice-agent events. |
Use this skill when the user wants the full Voice Agent API from Rust.
Not yet supported in this crate as a first-class module. There is no deepgram::agent, deepgram::voice_agent, or typed /v1/agent/converse client in src/ today.
Use raw WebSocket code if you must call Agent before the crate adds support.
The raw fallback requires four extra crates. These versions + features match the ones already used by this repo (Cargo.toml), so you won't pull in duplicate major versions or an unexpected OpenSSL dependency:
[dependencies]
tokio = { version = "1", features = ["full"] }
tokio-tungstenite = { version = "0.28", features = ["rustls-tls-webpki-roots"] }
futures = "0.3"
http = "1.4"
use futures::{SinkExt, StreamExt};
use tokio_tungstenite::{connect_async, tungstenite::Message};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let api_key = std::env::var("DEEPGRAM_API_KEY")?;
let request = http::Request::builder()
.uri("wss://agent.deepgram.com/v1/agent/converse")
.header("Authorization", format!("Token {api_key}"))
.body(())?;
let (mut ws, _) = connect_async(request).await?;
ws.send(Message::Text(r#"{"type":"Settings","audio":{"input":{"encoding":"linear16","sample_rate":16000}}}"#.into())).await?;
while let Some(message) = ws.next().await {
println!("{:?}", message?);
}
Ok(())
}
wss://agent.deepgram.com/v1/agent/converse (distinct from api.deepgram.com — Voice Agent runs on its own host).Authorization: Token <api_key>.src/listen/flux.rs for conversational STT onlyhttps://developers.deepgram.com/openapi.yamlhttps://developers.deepgram.com/reference/voice-agent/voice-agenthttps://developers.deepgram.com/asyncapi.yamlhttps://developers.deepgram.com/reference/voice-agent/voice-agent/llmstxt/developers_deepgram_llms_txthttps://developers.deepgram.com/docs/voice-agentflux_request() only gives conversational STT events, not the full agent orchestration API.examples/transcription/flux/.For cross-language Deepgram product knowledge — the consolidated API reference, documentation finder, focused runnable recipes, third-party integration examples, and MCP setup — install the central skills:
npx skills add deepgram/skills
This SDK ships language-idiomatic code skills; deepgram/skills ships cross-language product knowledge (see api, docs, recipes, examples, starters, setup-mcp).
Use when implementing Deepgram audio intelligence from the Rust SDK, especially when intelligence features are attached to STT Options and batch responses instead of a separate audio-intelligence module.
Use when implementing Deepgram Flux conversational STT from the Rust SDK, including flux_request APIs, turn events, FluxResponse handling, and turn-detection tuning for voice-agent-style pipelines.
Use when implementing Deepgram project, key, member, scope, billing, invitation, or usage operations from the Rust SDK, including manage feature flags and the real Deepgram::projects/keys/members/scopes/billing/usage APIs.
Use when implementing Deepgram speech-to-text in the Rust SDK, including prerecorded REST transcription, live WebSocket streaming, listen feature flags, Options builder usage, and response handling.
Use when implementing Deepgram text-to-speech in the Rust SDK, including Aura model selection, speak feature flags, output file or byte-stream handling, and real crate APIs under speak::options and Speak.
Use when a user asks for Deepgram text intelligence from Rust. Route to raw HTTP guidance because this crate does not currently expose a dedicated /v1/read client or typed text-intelligence module.