package
1.7.0-dev.1
Repository: https://github.com/deepgram/deepgram-go-sdk.git
Documentation: pkg.go.dev

# Functions

New creates a new websocket connection with the specified options Input parameters: - ctx: context.Context object - apiKey: string containing the Deepgram API key - cOptions: ClientOptions which allows overriding things like hostname, version of the API, etc.
NewForDemo creates a new websocket connection with all default options Notes: - The Deepgram API KEY is read from the environment variable DEEPGRAM_API_KEY */.
NewWithCancel creates a new websocket connection with the specified options Input parameters: - ctx: context.Context object - ctxCancel: allow passing in own cancel - apiKey: string containing the Deepgram API key - cOptions: ClientOptions which allows overriding things like hostname, version of the API, etc.
NewWithDefaults creates a new websocket connection with all default options Notes: - The callback handler is set to the default handler */.
New creates a new websocket connection with the specified options Input parameters: - ctx: context.Context object - apiKey: string containing the Deepgram API key - cOptions: ClientOptions which allows overriding things like hostname, version of the API, etc.
NewForDemo creates a new websocket connection with all default options Notes: - The Deepgram API KEY is read from the environment variable DEEPGRAM_API_KEY */.
New creates a new websocket connection with the specified options Input parameters: - ctx: context.Context object - ctxCancel: allow passing in own cancel - apiKey: string containing the Deepgram API key - cOptions: ClientOptions which allows overriding things like hostname, version of the API, etc.
NewWithDefaults creates a new websocket connection with all default options Notes: - The Deepgram API KEY is read from the environment variable DEEPGRAM_API_KEY - The chans handler is set to the default handler which just prints all messages to the console */.

# Constants

external constants.
external constants.
MessageTypeClose closes the stream.
MessageTypeFlush flushes the audio from the server.
MessageTypeReset resets the text buffer.
MessageTypeFlush flushes the audio from the server.
No description provided by the author
external constants.

# Structs

external structs.
WSCallback is a struct representing the websocket client connection using callbacks.
WSChannel is a struct representing the websocket client connection using channels.

# Type aliases

Client is an alias for WSCallback Deprecated: use WSCallback instead.