Manages WebSocket connections for Deepgram TTS streaming.
// Source: https://github.com/deepgram/deepgram-go-sdk | License: MIT | Copyright 2021 Deepgram Devs // Provided via justclaw.it.com; keep this notice with the code. // Copyright 2026 Deepgram SDK contributors. All Rights Reserved. // Use of this source code is governed by a MIT license that can be found in the LICENSE file. // SPDX-License-Identifier: MIT package websocketv2 import ( "context" "fmt" "runtime/debug" "strings" "time" "github.com/dvonthenen/websocket" klog "k8s.io/klog/v2" msginterfaces "github.com/deepgram/deepgram-go-sdk/v3/pkg/api/speak/v2/websocket/interfaces" version "github.com/deepgram/deepgram-go-sdk/v3/pkg/api/version" common "github.com/deepgram/deepgram-go-sdk/v3/pkg/client/common/v2" clientinterfaces "github.com/deepgram/deepgram-go-sdk/v3/pkg/clie ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key