Provides code patterns for Deepgram Text-to-Speech in C# using REST (ToStream/ToFile) and WebSocket (Connect, SpeakWithText, Flush) clients.
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.
Convert text to audio via REST or low-latency streaming WebSocket synthesis.
Use a different skill when:
deepgram-dotnet-voice-agent.dotnet add package Deepgram
using Deepgram;
Library.Initialize();
var client = ClientFactory.CreateSpeakRESTClient();
The SDK reads DEEPGRAM_API_KEY by default and also supports bearer access tokens through DeepgramHttpClientOptions / DeepgramWsClientOptions.
using Deepgram;
using Deepgram.Models.Speak.v1.REST;
Library.Initialize();
var client = ClientFactory.CreateSpeakRESTClient();
var response = await client.ToFile(
new TextSource("Hello World!"),
"output.mp3",
new SpeakSchema()
{
Model = "aura-2-thalia-en",
});
Console.WriteLine(response);
If you want the bytes in memory, call ToStream(...) and read response.Stream.
using Deepgram;
using Deepgram.Models.Speak.v2.WebSocket;
Library.Initialize();
var speakClient = ClientFactory.CreateSpeakWebSocketClient();
await speakClient.Subscribe(new EventHandler<AudioResponse>((sender, e) =>
{
if (e.Stream != null)
{
// Streaming Speak (Encoding = "linear16") delivers raw PCM — no WAV header.
// Save as .raw, or prepend a valid WAV header (see examples/text-to-speech/websocket/simple/Program.cs).
using (var writer = new BinaryWriter(File.Open("output.raw", FileMode.Append)))
{
writer.Write(e.Stream.ToArray());
}
}
}));
bool connected = await speakClient.Connect(new SpeakSchema()
{
Encoding = "linear16",
SampleRate = 48000,
});
if (!connected)
{
Console.Error.WriteLine("WebSocket connection failed — check API key and network.");
return;
}
speakClient.SpeakWithText("Hello World!");
speakClient.Flush();
Console.ReadKey();
await speakClient.Stop();
REST SpeakSchema: Model, BitRate, CallBack, CallBackMethod, Container, Encoding, SampleRate.
WebSocket SpeakSchema: Model, BitRate, Encoding, SampleRate.
Streaming controls: SpeakWithText, Flush, Clear, Close, SendMessageImmediately.
Deepgram/Clients/Speak/v1/REST/Client.cs, Deepgram/Clients/Speak/v2/WebSocket/Client.cs, Deepgram/Models/Speak/v1/REST/SpeakSchema.cs, Deepgram/Models/Speak/v2/WebSocket/SpeakSchema.csToStream / ToFile, not GenerateAsync. Use the actual .NET names.MemoryStream. ToFile writes the file for you and then clears response.Stream.AudioResponse.Stream. You must write or play the bytes yourself.Flush(), you may wait indefinitely for the buffered text to synthesize.DeepgramWsClientOptions.AutoFlushSpeakDelta can flush automatically for token-by-token input.linear16 + 48000, your WAV header / playback path must match.StreamCallBack(...) for async REST callback processing.examples/text-to-speech/rest/file/hello-world/Program.csexamples/text-to-speech/rest/file/woodchuck/Program.csexamples/text-to-speech/websocket/simple/Program.cstests/edge_cases/tts_v1_client_example/Cross-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
/deepgram-deepgram-dotnet-sdk:deepgram-dotnet-text-to-speechfrom 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.
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.Other plugins' skills for the same job