AgentSea.Voice.STT behaviour (agentsea_voice v0.1.0)

Copy Markdown

Speech-to-text behaviour. Adapters: remote (OpenAI Whisper over Req) or, in future, local (Whisper via Bumblebee, in-process).

Summary

Types

result()

@type result() :: %{text: String.t()}

Callbacks

transcribe(audio, opts)

@callback transcribe(audio :: binary(), opts :: keyword()) ::
  {:ok, result()} | {:error, term()}