deepgram-go-audio-intelligence
by deepgram
Use when writing or reviewing Go code in this repo that applies summaries, topics, intents, sentiment, language detection, diarization, redaction, or entity…
npx skills add https://github.com/deepgram/deepgram-go-sdk --skill deepgram-go-audio-intelligenceUsing Deepgram Audio Intelligence from the Go SDK
When to use this product
Use this skill for /v1/listen REST requests that combine transcription with analytics overlays.
- summaries
- topics
- intents
- sentiments
- entity extraction
- language detection
- diarization and redaction where supported
Use a different skill when:
- you only need transcription (
deepgram-go-speech-to-text) - your input is already text (
deepgram-go-text-intelligence)
Authentication
Set DEEPGRAM_API_KEY before creating the listen REST client.
export DEEPGRAM_API_KEY="your_api_key"
Quick start
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",
Summarize: "v2",
Topics: true,
Sentiment: true,
},
)
if err != nil {
return err
}
if resp.Results.Summary != nil {
fmt.Println(resp.Results.Summary.Result)
}
return nil
}
Key parameters
- analytics live on
interfaces.PreRecordedTranscriptionOptionsSummarize(for example,"v2")TopicsIntentsSentimentDetectLanguageDetectEntitiesDiarizeDiarizeModelRedact
- response payloads are in
pkg/api/listen/v1/rest/interfaces/types.goSentimentsTopicsIntentsEntitiesSummaryV2
- this SDK is REST-first for audio intelligence; the live WS option struct does not expose the same analytics surface
API reference (layered)
- In-repo reference
README.mddocs.gopkg/client/listen/v1/rest/client.gopkg/client/interfaces/v1/types-prerecorded.gopkg/client/interfaces/v1/types-stream.gopkg/api/listen/v1/rest/interfaces/types.go
- OpenAPI
https://developers.deepgram.com/openapi.yaml
- AsyncAPI
https://developers.deepgram.com/asyncapi.yaml
- Context7
/llmstxt/developers_deepgram_llms_txt
- Product docs
https://developers.deepgram.com/docs/stt-intelligence-feature-overviewhttps://developers.deepgram.com/docs/summarizationhttps://developers.deepgram.com/docs/topic-detectionhttps://developers.deepgram.com/docs/intent-recognitionhttps://developers.deepgram.com/docs/sentiment-analysishttps://developers.deepgram.com/docs/language-detectionhttps://developers.deepgram.com/docs/redactionhttps://developers.deepgram.com/docs/diarization
Gotchas
- In this SDK snapshot, audio intelligence is effectively a prerecorded REST feature set.
LiveTranscriptionOptionsdoes not expose the same summarize/topic/intent/sentiment/entity surface.- REST helpers live on
pkg/api/listen/v1/rest; start fromapi.New(listen.NewRESTWithDefaults()), then layer analytics flags ontoPreRecordedTranscriptionOptions.
Example files in this repo
examples/speech-to-text/rest/summary/main.goexamples/speech-to-text/rest/sentiment/main.goexamples/speech-to-text/rest/topic/main.goexamples/speech-to-text/rest/intent/main.go
Central product skills
For 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).