LemonGateway.Voice.DeepgramClient (lemon_gateway v0.1.0)

View Source

WebSocket client for Deepgram streaming speech-to-text.

Uses WebSockex to connect to Deepgram's real-time transcription API and forward transcripts to the call session.

Summary

Functions

Sends audio data to Deepgram for transcription.

Starts a Deepgram WebSocket connection for a call session.

Returns the via tuple for registry lookup.

Functions

init(state)

send_audio(pid, audio_data)

@spec send_audio(pid(), binary()) :: :ok

Sends audio data to Deepgram for transcription.

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start()

Starts a Deepgram WebSocket connection for a call session.

via_tuple(call_sid)

@spec via_tuple(String.t()) :: {:via, Registry, {atom(), String.t()}}

Returns the via tuple for registry lookup.