Octoroom.Agent.Processors.Transcriber (octoroom_agents v0.1.0)

Copy Markdown View Source

Transcribes each UserAudio turn with an LLM, off the reply path.

UserAudio passes through at once; the transcript follows later as a Transcription with the same turn_id, usually after the reply has started. UserAudio is uninterruptible, so a transcription survives the user interrupting the reply.

Options: :model (a Gemini model, such as "gemini-3.1-flash-lite"; needed), and :transcribe, a fn pcm, sample_rate -> {:ok, text} | {:error, reason} end that replaces the model (for tests).