Transcribes audio with Deepgram speech-to-text using the Rust SDK. Covers prerecorded REST transcription, live WebSocket streaming, Options builder for features like diarization and smart formatting, and subtitle rendering.
Ships in deepgram-rust-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill for prerecorded transcription, live streaming transcription, or when mapping Deepgram docs to the Rust crate's real listen surface.
Deepgram::transcription().stream_request() / stream_request_with_options(...).common::options::Options for STT features such as model, language, punctuate, diarize, smart_format, utterances, and streaming knobs like endpointing.common::captions::srt / webvtt (or response.to_srt(&CaptionOptions::default()) / to_webvtt(...)). Request utterances=true and diarize=true for cues that split on utterance and speaker boundaries.This skill covers Nova models on /v1/listen — Deepgram's general-purpose STT family (nova-3, nova-2, nova, enhanced, base). Both Nova and Flux are actively maintained, industry-leading STT model families.
Use a different skill when:
deepgram-rust-conversational-stt (Flux on /v2/listen).deepgram-rust-audio-intelligence (same /v1/listen endpoint, different params).deepgram-rust-voice-agent.deepgram defaults to manage + listen + speak. For STT-only installs, trim features explicitly:
[dependencies]
deepgram = { version = "0.12", default-features = false, features = ["listen"] }
tokio = { version = "1", features = ["full"] }
futures = "0.3"
use deepgram::Deepgram;
let dg = Deepgram::new(std::env::var("DEEPGRAM_API_KEY")?)?;
Authorization: Token <api_key>.Deepgram::with_temp_token(...) and send Bearer, but are mainly useful for voice APIs rather than Manage APIs.Deepgram::with_base_url(...) or Deepgram::with_base_url_and_api_key(...).use deepgram::{
common::{
audio_source::AudioSource,
options::{Language, Options},
},
Deepgram,
};
use tokio::fs::File;
static PATH_TO_FILE: &str = "examples/audio/bueller.wav";
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let api_key = std::env::var("DEEPGRAM_API_KEY")?;
let dg = Deepgram::new(&api_key)?;
let file = File::open(PATH_TO_FILE).await?;
let source = AudioSource::from_buffer_with_mime_type(file, "audio/wav");
let options = Options::builder()
.punctuate(true)
.language(Language::en_US)
.build();
let response = dg.transcription().prerecorded(source, &options).await?;
println!("{}", response.results.channels[0].alternatives[0].transcript);
Ok(())
}
use std::time::Duration;
use deepgram::{
common::options::{Encoding, Endpointing, Language, Options},
Deepgram,
};
use futures::stream::StreamExt;
static PATH_TO_FILE: &str = "examples/audio/bueller.wav";
static AUDIO_CHUNK_SIZE: usize = 3174;
static FRAME_DELAY: Duration = Duration::from_millis(16);
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let api_key = std::env::var("DEEPGRAM_API_KEY")?;
let dg = Deepgram::new(&api_key)?;
let options = Options::builder()
.smart_format(true)
.language(Language::en_US)
.build();
let mut results = dg
.transcription()
.stream_request_with_options(options)
.keep_alive()
.encoding(Encoding::Linear16)
.sample_rate(44100)
.channels(2)
.endpointing(Endpointing::CustomDurationMs(300))
.interim_results(true)
.utterance_end_ms(1000)
.vad_events(true)
.no_delay(true)
.file(PATH_TO_FILE, AUDIO_CHUNK_SIZE, FRAME_DELAY)
.await?;
println!("Deepgram Request ID: {:?}", results.request_id());
while let Some(result) = results.next().await {
println!("{result:?}");
}
Ok(())
}
prerecorded(...), prerecorded_callback(...), make_prerecorded_request_builder(...).stream_request(), stream_request_with_options(options), then .file(...), .stream(...), or .handle().await?.Options builder fields: model, language, punctuate, smart_format, diarize, diarize_model, multichannel, utterances, detect_language, keywords, keyterms, search, replace, paragraphs, redact_usage, and mip_opt_out. Use extra_values for plain or repeated extra values; extra remains the key-value convenience form.encoding, sample_rate, channels, endpointing, utterance_end_ms, interim_results, no_delay, vad_events, keep_alive, callback.common::batch_response::Response; live common::stream_response::StreamResponse.README.mdsrc/listen/rest.rssrc/listen/websocket.rssrc/common/options.rsexamples/transcription/rest/prerecorded_from_file.rsexamples/transcription/websocket/simple_stream.rshttps://developers.deepgram.com/openapi.yamlhttps://developers.deepgram.com/reference/speech-to-text/listen-pre-recordedhttps://developers.deepgram.com/asyncapi.yamlhttps://developers.deepgram.com/reference/speech-to-text/listen-streaming/llmstxt/developers_deepgram_llms_txthttps://developers.deepgram.com/docs/stt/getting-startedlisten feature gates correctly. STT modules are behind the listen Cargo feature.Options is by value for WebSocket builders. stream_request_with_options(options) takes ownership, unlike prerecorded APIs that take &Options.summary, topics, and sentiments live on prerecorded response types, not StreamResponse..file(...) helpers assume realistic chunk sizes and delays; sending audio too fast can produce bad streaming behavior.Token, not Bearer, for API keys. Bearer is only for temporary tokens.examples/transcription/rest/prerecorded_from_file.rsexamples/transcription/rest/prerecorded_from_url.rsexamples/transcription/rest/callback.rsexamples/transcription/rest/make_prerecorded_request_builder.rsexamples/transcription/websocket/simple_stream.rsexamples/transcription/websocket/callback_stream.rsexamples/transcription/websocket/microphone_stream.rsexamples/transcription/websocket/16_keepalive_close_stream.rsFor 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).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/deepgram-rust-audio-intelligenceUse 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./deepgram-rust-conversational-sttUse 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./deepgram-rust-management-apiUse 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./deepgram-rust-text-intelligenceUse when a user asks for Deepgram text intelligence from Rust. The crate exposes /v1/read through a typed client behind the `read` Cargo feature./deepgram-rust-text-to-speechUse when implementing Deepgram text-to-speech in the Rust SDK, including Aura and Flux TTS model selection, speak feature flags, output file or byte-stream handling, the streaming Aura and Flux TTS WebSocket handles, and real crate APIs under speak::options, speak::flux, and Speak./deepgram-rust-voice-agentUse when implementing a Deepgram Voice Agent from the Rust SDK, including the agent() WebSocket client, Settings/Update messages, typed AgentResponse events, function calling, and saved agent configurations./deepgram-deepgram-rust-sdk:deepgram-rust-speech-to-textfrom deepgram-rust-sdk
Claude Code refuses to install this plugin
This plugin's marketplace entry is invalid: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./" (+4 more)
This plugin's marketplace entry is invalid: skills.0: Invalid string: must start with "./", skills.1: Invalid string: must start with "./", skills.2: Invalid string: must start with "./" (+4 more)
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job