deepgram-go-text-intelligence

द्वारा deepgram

इस रेपो में Go कोड लिखते या समीक्षा करते समय उपयोग करें जो analyze क्लाइंट के माध्यम से Deepgram Read को टेक्स्ट भेजता है। स्पीच/ऑडियो इनपुट को रूट करें…

npx skills add https://github.com/deepgram/deepgram-go-sdk --skill deepgram-go-text-intelligence

Using Deepgram Text Intelligence from the Go SDK

When to use this product

Use this skill for plain-text analysis handled by pkg/client/analyze.

  • summarization
  • sentiment on text input
  • URL, file, or stream based Read requests

Use a different skill when:

  • your source material is audio and should go through /v1/listen (deepgram-go-audio-intelligence)
  • you need transcription first (deepgram-go-speech-to-text)
  • you need admin endpoints (deepgram-go-management-api)

Authentication

Set DEEPGRAM_API_KEY before creating the analyze client.

export DEEPGRAM_API_KEY="your_api_key"

Quick start

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
}

Key parameters

  • interfaces.AnalyzeOptions
    • common fields include Summarize, Sentiment, and other Read features exposed by the analyze client
  • request helpers
    • on pkg/api/analyze/v1: api.New(client).FromFile, FromStream, FromURL
  • constructors
    • analyze.NewWithDefaults()
    • analyze.New(apiKey, options)

API reference (layered)

  1. In-repo reference
    • README.md
    • docs.go
    • pkg/client/analyze/client.go
    • pkg/client/analyze/v1/client.go
    • pkg/client/interfaces/v1/types-analyze.go
    • pkg/api/version/analyze-version.go
  2. OpenAPI
    • https://developers.deepgram.com/openapi.yaml
  3. AsyncAPI
    • https://developers.deepgram.com/asyncapi.yaml
  4. Context7
    • /llmstxt/developers_deepgram_llms_txt
  5. Product docs
    • https://developers.deepgram.com/reference/text-intelligence/analyze-text
    • https://developers.deepgram.com/docs/text-intelligence
    • https://developers.deepgram.com/docs/text-sentiment-analysis

Gotchas

  1. The Go package is named analyze, but the product route maps to Read / text intelligence.
  2. Do not send raw audio here; audio intelligence features live on the listen REST path.
  3. FromFile, FromStream, and FromURL live on the pkg/api/analyze/v1 wrapper, not on the base client.
  4. Reuse context.Context and stream readers for large inputs instead of materializing everything into one string.

Example files in this repo

  • examples/analyze/summary/main.go
  • examples/analyze/sentiment/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).

deepgram की और Skills

1password
deepgram
1Password CLI (op) को सेट अप और उपयोग करें। CLI इंस्टॉल करते समय, डेस्कटॉप ऐप एकीकरण सक्षम करते समय, साइन इन करते समय (एकल या बहु-खाता), या...
agent-orchestration
deepgram
जब आपको wsh के माध्यम से अन्य AI एजेंटों (Claude Code, Aider, Codex, आदि) को उनके टर्मिनल इंटरफेस के जरिए लॉन्च और संचालित करने की आवश्यकता हो, तब उपयोग करें। उदाहरण: "एक साथ कई चलाएं…
api
deepgram
डीपग्राम के स्पीच-टू-टेक्स्ट, टेक्स्ट-टू-स्पीच, वॉइस एजेंट और ऑडियो इंटेलिजेंस एपीआई के साथ बनाएं।
apple-notes
deepgram
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes). Use when a user asks OpenClaw to add a note, list…
apple-reminders
deepgram
Manage Apple Reminders via the `remindctl` CLI on macOS (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
bear-notes
deepgram
grizzly CLI के माध्यम से Bear नोट्स बनाएं, खोजें और प्रबंधित करें।
blogwatcher
deepgram
ब्लॉगवॉचर CLI का उपयोग करके अपडेट के लिए ब्लॉग और RSS/Atom फ़ीड की निगरानी करें।
blucli
deepgram
BluOS CLI (blu) खोज, प्लेबैक, ग्रुपिंग और वॉल्यूम के लिए है।