Builds interactive Deepgram Voice Agent sessions over WebSocket in C#, covering SettingsSchema, event subscriptions, mic streaming, and injected messages.
Ships in deepgram-dotnet-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.
Full-duplex voice agent sessions over a single WebSocket.
Use a different skill when:
deepgram-dotnet-speech-to-text or deepgram-dotnet-conversational-stt.deepgram-dotnet-text-to-speech.deepgram-dotnet-management-api.dotnet add package Deepgram
dotnet add package Deepgram.Microphone # only if you need local mic capture
using Deepgram;
Deepgram.Library.Initialize();
// Uses DEEPGRAM_API_KEY env var; pass apiKey: "..." to override
var agentClient = ClientFactory.CreateAgentWebSocketClient();
using Deepgram.Models.Agent.v2.WebSocket;
var agentClient = ClientFactory.CreateAgentWebSocketClient();
await agentClient.Subscribe(new EventHandler<ConversationTextResponse>((sender, e) =>
{
Console.WriteLine(e);
}));
await agentClient.Subscribe(new EventHandler<AudioResponse>((sender, e) =>
{
if (e.Stream != null)
{
// Raw linear16 PCM — see examples/agent/websocket/no_mic/Program.cs for WAV header.
using var writer = new BinaryWriter(File.Open("output.raw", FileMode.Append));
writer.Write(e.Stream.ToArray());
}
}));
var settings = new SettingsSchema();
settings.Agent.Think.Provider.Type = "open_ai";
settings.Agent.Think.Provider.Model = "gpt-4o-mini";
settings.Agent.Greeting = "Hello! How can I help you today?";
settings.Agent.Listen.Provider.Type = "deepgram";
settings.Agent.Listen.Provider.Model = "nova-3";
settings.Agent.Speak.Provider.Type = "deepgram";
settings.Agent.Speak.Provider.Model = "aura-2-thalia-en";
settings.Audio.Input.Encoding = "linear16";
settings.Audio.Input.SampleRate = 24000;
settings.Audio.Output.Encoding = "linear16";
settings.Audio.Output.SampleRate = 24000;
bool connected = await agentClient.Connect(settings);
if (!connected)
{
Console.Error.WriteLine("Agent WebSocket connection failed — check API key and network.");
return;
}
await agentClient.SendInjectUserMessage("Say hello in one sentence.");
// Cleanup when done
Console.ReadKey();
await agentClient.Stop();
var microphone = new Microphone(
push_callback: (audioData, length) =>
{
byte[] chunk = new byte[length];
Array.Copy(audioData, chunk, length);
agentClient.SendBinary(chunk);
},
rate: 24000,
channels: 1,
format: SampleFormat.Int16);
microphone.Start();
// Cleanup
Console.ReadKey();
microphone.Stop();
await agentClient.Stop();
Settings models:
SettingsSchemaAudio, Input, OutputAgent, Listen, Think, SpeakProvider (dynamic extra properties supported)Important events:
ConversationTextResponseAudioResponseAgentStartedSpeakingResponseAgentAudioDoneResponseAgentThinkingResponseUserStartedSpeakingResponseFunctionCallRequestResponseSettingsAppliedResponseProtocol events (subscribe through ClientFactory.CreateAgentProtocolClient(), which returns IAgentProtocolClient):
ListenUpdatedResponse, ThinkUpdatedResponseFunctionCallCancelledResponse, FunctionCallResponseLatencyReportResponse, AgentWarningResponse, AgentHistoryResponseSend helpers:
SendInjectUserMessage(string)SendInjectUserMessage(InjectUserMessageSchema)SendBinary(...)SendBinaryImmediately(...)SendKeepAlive()SendUpdateListen(...), SendUpdateThink(...), SendUpdateSpeak(...), SendUpdatePrompt(...)SendInjectAgentMessage(...), SendFunctionCallResponse(...)SendForceEndTurn() (requires a Flux STT listen provider; flushes queued audio first)Deepgram/Clients/Agent/v2/Websocket/Client.cs, Deepgram/Clients/Interfaces/v2/IAgentWebSocketClient.cs, Deepgram/Models/Agent/v2/WebSocket/*.cs, Deepgram.Microphone/Microphone.csSettingsSchema, ConversationTextResponse, etc. — not the Python names.Provider is dynamic. Extra provider-specific properties are stored through JsonExtensionData; set them carefully.FunctionCallRequestResponse.Functions carries typed calls. For each client-side call, send an ID-matched AgentFunctionCallResponseSchema; never respond after receiving FunctionCallCancelled for that ID. Subscribe to FunctionCallCancelledResponse through IAgentProtocolClient (ClientFactory.CreateAgentProtocolClient()); without that subscription the message arrives as UnhandledResponse.SendFunctionCallResponse(...) for current function results. Build an AgentFunctionCallResponseSchema with id, name, and content; do not use the legacy FunctionCallResponseSchema wire shape for new code.linear16 / 24000.Deepgram.Microphone depends on PortAudio. Local microphone examples need the helper project/package and a working PortAudio environment.examples/agent/websocket/simple/Program.csexamples/agent/websocket/no_mic/Program.csexamples/agent/websocket/arbitrary_keys/Program.csCross-language product knowledge (API reference, recipes, MCP setup): npx skills add deepgram/skills.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/deepgram-dotnet-audio-intelligenceUse when writing or reviewing C# code in this repo that enables Deepgram intelligence overlays on Speech-to-Text requests. Covers `PreRecordedSchema` analytics flags such as `Summarize`, `Topics`, `Intents`, `Sentiment`, `DetectLanguage`, `DetectEntities`, `Diarize`, and `Redact`, plus the smaller live-streaming subset on `LiveSchema`. Use `deepgram-dotnet-speech-to-text` for plain transcription and `deepgram-dotnet-text-intelligence` for analytics on already-transcribed text./deepgram-dotnet-conversational-sttUse when evaluating, extending, or writing C# code for conversational speech-to-text, Flux-style real-time transcription, or turn-taking streaming in the Deepgram .NET SDK. Identifies missing Flux request parameters (language_hint, eot_threshold), maps existing WebSocket response types, provides the closest supported LiveSchema code path, and guides adding TurnInfo models and Flux examples. Use `deepgram-dotnet-speech-to-text` for standard streaming transcription without turn awareness./deepgram-dotnet-management-apiUse when writing or reviewing C# code in this repo that calls Deepgram Management APIs for projects, models, keys, members, invitations, usage, balances, and auth token grants. Covers `ClientFactory.CreateManageClient()` and `ClientFactory.CreateAuthClient()`. Unlike some other SDKs, this repo does not currently expose reusable Voice Agent configuration management endpoints./deepgram-dotnet-speech-to-textUse when writing or reviewing C# code in this repo that calls Deepgram Speech-to-Text for prerecorded or live transcription. Covers `ClientFactory.CreateListenRESTClient()` with `TranscribeUrl` / `TranscribeFile`, and `ClientFactory.CreateListenWebSocketClient()` with `Connect`, `Subscribe`, and `Send`. Use `deepgram-dotnet-audio-intelligence` for summaries/sentiment/topics overlays, `deepgram-dotnet-conversational-stt` for Flux-specific work, and `deepgram-dotnet-voice-agent` for full-duplex assistants./deepgram-dotnet-text-intelligenceUse when writing or reviewing C# code in this repo that calls Deepgram Text Intelligence / Read (`/read`) for sentiment, summarization, topic detection, and intent recognition on text or hosted text URLs. Covers `ClientFactory.CreateAnalyzeClient()` with `AnalyzeText`, `AnalyzeUrl`, and `AnalyzeFile`. Use `deepgram-dotnet-audio-intelligence` when the source is audio instead of text./deepgram-dotnet-text-to-speechUse when writing or reviewing C# code in this repo that calls Deepgram Text-to-Speech. Covers `ClientFactory.CreateSpeakRESTClient()` with `ToStream` / `ToFile`, and `ClientFactory.CreateSpeakWebSocketClient()` with `Connect`, `SpeakWithText`, `Flush`, and streaming `AudioResponse` events. Use `deepgram-dotnet-voice-agent` for full-duplex assistants instead of one-way synthesis./deepgram-deepgram-dotnet-sdk:deepgram-dotnet-voice-agentfrom deepgram-dotnet-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