Use when writing or reviewing Go code in this repo that sends text to Deepgram Read via the analyze client. Route speech/audio inputs to deepgram-go-speech-to-text or deepgram-go-audio-intelligence, and management/admin work to deepgram-go-management-api.
96
95%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
Use this skill for plain-text analysis handled by pkg/client/analyze.
Use a different skill when:
/v1/listen (deepgram-go-audio-intelligence)deepgram-go-speech-to-text)deepgram-go-management-api)Set DEEPGRAM_API_KEY before creating the analyze client.
export DEEPGRAM_API_KEY="your_api_key"package main
import (
"context"
"fmt"
"log"
"strings"
api "github.com/deepgram/deepgram-go-sdk/v3/pkg/api/analyze/v1"
analyze "github.com/deepgram/deepgram-go-sdk/v3/pkg/client/analyze"
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 := analyze.NewWithDefaults()
dg := api.New(client)
resp, err := dg.FromStream(
ctx,
strings.NewReader("Deepgram provides APIs for speech, voice, and media intelligence."),
&interfaces.AnalyzeOptions{Summarize: true, Sentiment: true},
)
if err != nil {
return err
}
if resp.Results.Summary != nil {
fmt.Println(resp.Results.Summary.Text)
}
return nil
}interfaces.AnalyzeOptions
Summarize, Sentiment, and other Read features exposed by the analyze clientpkg/api/analyze/v1: api.New(client).FromFile, FromStream, FromURLanalyze.NewWithDefaults()analyze.New(apiKey, options)README.mddocs.gopkg/client/analyze/client.gopkg/client/analyze/v1/client.gopkg/client/interfaces/v1/types-analyze.gopkg/api/version/analyze-version.gohttps://developers.deepgram.com/openapi.yamlhttps://developers.deepgram.com/asyncapi.yaml/llmstxt/developers_deepgram_llms_txthttps://developers.deepgram.com/reference/text-intelligence/analyze-texthttps://developers.deepgram.com/docs/text-intelligencehttps://developers.deepgram.com/docs/text-sentiment-analysisanalyze, but the product route maps to Read / text intelligence.FromFile, FromStream, and FromURL live on the pkg/api/analyze/v1 wrapper, not on the base client.context.Context and stream readers for large inputs instead of materializing everything into one string.examples/analyze/summary/main.goexamples/analyze/sentiment/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/skillsThis SDK ships language-idiomatic code skills; deepgram/skills ships cross-language product knowledge (see api, docs, recipes, examples, starters, setup-mcp).
b7c92f4
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.