Expand description
Official Rust SDK for Deepgram’s automated speech recognition APIs.
Get started transcribing with a Transcription object.
§Cargo features
listen(default): speech-to-text, REST and WebSocket, including Flux.speak(default): text-to-speech, REST and WebSocket, including Flux.manage(default): project, key, and usage management.connect-diagnostics: per-phase connect timings for/v1/listenWebSocket connections; see thediagnosticsmodule.rustls-tls-native-roots: also trust the operating system’s certificate store forwss://WebSocket connections, on top of the bundled public roots. For TLS-inspecting proxies, internal CAs, and self-hosted deployments; see thetlsmodule.
Re-exports§
pub use rustls;
Modules§
- auth
- Token-based authentication for Deepgram.
- common
- Common lib for other modules
- diagnostics
- Opt-in connect-time diagnostics for live transcription streaming
connections (
/v1/listen). - listen
- Listen module
- manage
- Manage module
- speak
- Speak module
- tls
- TLS trust for
wss://WebSocket connections.
Structs§
- Deepgram
- A client for the Deepgram API.
- Http
Error - A generic “error” for HTTP connections
- Reqwest
Error - The Errors that may occur when processing a
Request. - Serde
Json Error - This type represents all possible errors that can occur when serializing or deserializing JSON data.
- Speak
- Generate speech from text using Deepgram’s text to speech api.
- Transcription
- Transcribe audio using Deepgram’s automated speech recognition.
Enums§
- Deepgram
Error - Errors that may arise from the
deepgramcrate. - Serde
Urlencoded Error - Errors returned during serializing to
application/x-www-form-urlencoded. - Tungstenite
Error - Possible WebSocket errors.