Use 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.
81
94%
Does it follow best practices?
Impact
97%
0.97x1 of 3 eval scenarios. Add 2 more for a full score.
Passed
No findings from the security scan
Use this skill when someone asks for Flux or conversational STT v2 in the Go SDK.
Current repo status: this SDK ships a first-class pkg/client/listen/v2 WebSocket client for Flux STT. Flux STT does not have a REST client.
Use a different skill when:
deepgram-go-speech-to-text)deepgram-go-voice-agent)Flux constructors with defaults resolve credentials from DEEPGRAM_API_KEY or DEEPGRAM_ACCESS_TOKEN.
export DEEPGRAM_API_KEY="your_api_key"Use the versioned v2 package and typed options:
package main
import (
"context"
"log"
api "github.com/deepgram/deepgram-go-sdk/v3/pkg/api/listen/v2/websocket"
interfaces "github.com/deepgram/deepgram-go-sdk/v3/pkg/client/interfaces"
listen "github.com/deepgram/deepgram-go-sdk/v3/pkg/client/listen/v2"
)
func main() {
ctx := context.Background()
handler := api.NewDefaultCallbackHandler()
client, err := listen.NewWSUsingCallbackWithDefaults(ctx, &interfaces.FluxTranscriptionOptions{
Model: "flux-general-en",
}, handler)
if err != nil {
log.Fatal(err)
}
defer client.Stop()
if !client.Connect() {
log.Fatal("connect failed")
}
}This establishes the session only. Send audio with Write or Stream; use a runnable example for the complete capture and event-handling flow.
interfaces.FluxTranscriptionOptions
Model is required: flux-general-en or flux-general-multiEncoding, SampleRate, Keyterm, Tag, and LanguageHint configure connection behaviorEagerEotThreshold, EotThreshold, and EotTimeoutMs configure turn detectioninterfaces.FluxConfigureOptions
WSCallback.Configure or WSChannel.Configure to update thresholds, keyterms, or language hints mid-sessionlisten.NewWSUsingCallbackWithDefaults and listen.NewWSUsingChanWithDefaults use environment-backed credentialslisten.NewWSUsingCallback and listen.NewWSUsingChan accept explicit v2 client options and handlersREADME.mddocs.gopkg/client/listen/v2/client.gopkg/client/listen/v2/websocketpkg/api/listen/v2/websocket/interfacespkg/client/interfaces/v2/types-flux.gohttps://developers.deepgram.com/openapi.yamlhttps://developers.deepgram.com/asyncapi.yaml/llmstxt/developers_deepgram_llms_txthttps://developers.deepgram.com/reference/speech-to-text/listen-fluxdeepgram-go-speech-to-text.pkg/client/listen/v2, not the v1 pkg/client/listen facade, for Flux STT.examples/speech-to-text/websocket/flux_callback/main.goexamples/speech-to-text/websocket/flux_channel/main.goexamples/speech-to-text/websocket/flux_force_end_turn/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).
deepgram/deepgram-go-sdk
8da671a
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.