Expand description
Realtime voice subsystem.
Sibling to crate::llm — exposes RealtimeVoiceBroker that opens
duplex voice + tool sessions against a realtime-capable provider
(currently OpenAI’s Realtime API over WebSocket). Mirrors the Python
and TypeScript implementations so consumers see the same conceptual
API regardless of language.
Re-exports§
pub use broker::RealtimeVoiceBroker;pub use codec::decode_base64_pcm16;pub use codec::encode_base64_pcm16;pub use config::InterruptOutputPolicy;pub use config::RealtimeAudioFormat;pub use config::RealtimeModality;pub use config::RealtimeToolChoice;pub use config::RealtimeVoiceConfig;pub use config::SemanticVadConfig;pub use config::ServerVadConfig;pub use config::TurnDetectionMode;pub use events::RealtimeEvent;pub use events::RealtimeItem;pub use events::TokenUsage;pub use gateway::ClientRealtimeEvent;pub use gateway::RealtimeGatewaySession;pub use gateway::RealtimeVoiceGateway;pub use gateway::ServerRealtimeEvent;pub use openai_gateway::OpenAIRealtimeGateway;pub use openai_gateway::OpenAIRealtimeGatewayOptions;pub use session::build_session_update;pub use session::RealtimeSession;pub use transport::RealtimeTransport;pub use transport::WebSocketTransport;
Modules§
- broker
- Realtime voice broker — sibling to
crate::llm::broker::LlmBroker. - codec
- Base64 ↔ PCM16 audio codec helpers.
- config
- Configuration for the realtime voice subsystem.
- events
- Vendor-neutral event union for the realtime subsystem.
- gateway
- Realtime voice gateway trait.
- openai_
gateway - OpenAI Realtime API gateway.
- schemas
- Boundary handling for OpenAI Realtime API server events.
- session
- Realtime session — driver that normalises raw OpenAI events into
vendor-neutral
RealtimeEventvalues and dispatches tool batches. - transport
- Transport abstraction for the realtime subsystem.