Transcribes prerecorded and live audio in Go using the Deepgram SDK's Listen v1 REST and WebSocket APIs, with channel or callback streaming handlers.
Ships in deepgram-go-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 pkg/client/listen work:
FromURL, FromFile, or FromStreampkg/client/listen/v1/websocketUse a different skill when:
deepgram-go-text-to-speech)deepgram-go-text-intelligence)deepgram-go-audio-intelligence)deepgram-go-conversational-stt)Set DEEPGRAM_API_KEY before constructing clients.
export DEEPGRAM_API_KEY="your_api_key"
This SDK reads env-backed defaults via the client option layer. Prefer API key or token auth supported by the repo's client options; do not hardcode credentials.
Prerecorded REST:
package main
import (
"context"
"fmt"
"log"
api "github.com/deepgram/deepgram-go-sdk/v3/pkg/api/listen/v1/rest"
listen "github.com/deepgram/deepgram-go-sdk/v3/pkg/client/listen"
interfaces "github.com/deepgram/deepgram-go-sdk/v3/pkg/client/interfaces"
)
func main() {
if err := run(); err != nil {
log.Fatal(err)
}
}
func run() error {
ctx := context.Background()
client := listen.NewRESTWithDefaults()
dg := api.New(client)
resp, err := dg.FromURL(
ctx,
"https://dpgr.am/spacewalk.wav",
&interfaces.PreRecordedTranscriptionOptions{
Model: "nova-3",
SmartFormat: true,
Punctuate: true,
},
)
if err != nil {
return err
}
fmt.Println(resp.Results.Channels[0].Alternatives[0].Transcript)
return nil
}
Live WebSocket with channel fan-out:
package main
import (
"context"
"fmt"
"log"
listenws "github.com/deepgram/deepgram-go-sdk/v3/pkg/api/listen/v1/websocket"
listen "github.com/deepgram/deepgram-go-sdk/v3/pkg/client/listen"
interfaces "github.com/deepgram/deepgram-go-sdk/v3/pkg/client/interfaces"
)
func main() {
if err := run(); err != nil {
log.Fatal(err)
}
}
func run() error {
ctx := context.Background()
handler := listenws.NewDefaultChanHandler()
conn, err := listen.NewWSUsingChanWithDefaults(
ctx,
&interfaces.LiveTranscriptionOptions{Model: "nova-3", InterimResults: true},
handler,
)
if err != nil {
return err
}
defer conn.Stop()
if ok := conn.Connect(); !ok {
return fmt.Errorf("connect failed")
}
conn.Start()
// The handler receives Open/Message/Metadata/UtteranceEnd events.
// In a real app, stream PCM/audio chunks from your mic or file reader here.
// For example (pseudo-code):
// for chunk := range audioChunks {
// if err := conn.WriteBinary(chunk); err != nil { return err }
// }
//
// When the input stream ends, flush any trailing audio and close cleanly:
// if err := conn.Finalize(); err != nil { return err }
return nil
}
interfaces.PreRecordedTranscriptionOptions
Model, Language, Punctuate, SmartFormat, Diarize, DiarizeModel (batch diarization version: latest/v1/v2), Redact, Utterancespkg/api/listen/v1/rest: api.New(client).FromURL, FromFile, FromStreaminterfaces.LiveTranscriptionOptions
Model, Language, Encoding, SampleRate, Channels, InterimResults, EndpointingLanguageHint ([]string, sent as repeated language_hint): biases detection on Nova-3 multilingual; requires Model: "nova-3" and Language: "multi" (ignored otherwise; unsupported codes fail the handshake with HTTP 400). Results expose Alternatives[i].LanguagesHinted and Languageslisten.NewRESTWithDefaults(), listen.NewREST(apiKey, options)listen.NewWSUsingCallback...listen.NewWSUsingChan...Connect() returns bool; call Start(), stream/write audio, KeepAlive() as needed, Finalize(), then defer conn.Stop()README.mddocs.gopkg/client/listen/client.gopkg/client/listen/v1/rest/client.gopkg/client/listen/v1/websocket/client_callback.gopkg/client/listen/v1/websocket/client_channel.gopkg/client/interfaces/v1/types-prerecorded.gopkg/client/interfaces/v1/types-stream.gohttps://developers.deepgram.com/openapi.yamlhttps://developers.deepgram.com/asyncapi.yaml/llmstxt/developers_deepgram_llms_txthttps://developers.deepgram.com/reference/speech-to-text/listen-pre-recordedhttps://developers.deepgram.com/reference/speech-to-text/listen-streaminghttps://developers.deepgram.com/docs/speech-to-textlisten package names for STT v1, not transcription.NewWSUsingChan..., keep defer conn.Stop() near construction, and finalize before shutdown.context.Context and return error; do not translate examples into exception-style control flow.examples/speech-to-text/rest/url/main.goexamples/speech-to-text/rest/file/main.goexamples/speech-to-text/websocket/microphone_channel/main.goexamples/speech-to-text/websocket/microphone_callback/main.gotests/edge_cases/keepalive/main.gotests/edge_cases/reconnect_client/main.goFor 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-go-audio-intelligenceUse when writing or reviewing Go code in this repo that applies summaries, topics, intents, sentiment, language detection, diarization, redaction, or entity extraction to audio inputs through Listen v1 REST. Route plain transcription to deepgram-go-speech-to-text and plain-text Read requests to deepgram-go-text-intelligence./deepgram-go-conversational-sttUse when planning or reviewing Go SDK work for Deepgram conversational STT / Flux v2. This repo ships first-class callback and channel Listen v2 WebSocket clients with typed options and mid-session configuration. Route v1 transcription to deepgram-go-speech-to-text./deepgram-go-/deepgram-deepgram-go-sdk:deepgram-go-speech-to-textfrom deepgram-go-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