Codex.Voice.Model.StreamedTranscriptionSession behaviour (Codex SDK v0.16.1)

Copy Markdown View Source

Behaviour for streaming transcription sessions.

A streaming transcription session receives audio input continuously and produces text transcriptions for each detected turn in the conversation.

Summary

Callbacks

Closes the transcription session and releases resources.

Returns a stream of text transcriptions.

Callbacks

close(session)

@callback close(session :: pid()) :: :ok

Closes the transcription session and releases resources.

transcribe_turns(session)

@callback transcribe_turns(session :: pid()) :: Enumerable.t()

Returns a stream of text transcriptions.

Each element in the stream represents a complete turn in the conversation. The stream completes when close/1 is called on the session.