Agent (agent/websocket.rs)

deepgram-rust-sdk · src/agent/websocket.rs · rust · MIT
voice, Voice / Speech

Rust WebSocket client for Deepgram Voice Agent, providing send/receive streams and settings.

// Source: https://github.com/deepgram/deepgram-rust-sdk | License: MIT | Copyright 2022 Deepgram
// Provided via justclaw.it.com; keep this notice with the code.
//! Voice Agent WebSocket connection — the live session at
//! `wss://agent.deepgram.com/v1/agent/converse`.
//!
//! This module ties together the typed message surfaces from
//! [`crate::agent::messages`] (client→server) and
//! [`crate::agent::response`] (server→client) into an actual connection.
//! Pattern mirrors `crate::listen::flux::FluxHandle`: a `Sender`-side
//! handle for outgoing messages and a `Stream` for incoming events.
//!
//! # Example
//!
//! ```no_run
//! use deepgram::Deepgram;
//! use deepgram::agent::{
//!     audio::{AudioConfig, AudioInput, AudioInputEncoding},
//!     listen::{AgentListenProvider, AgentL

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key