Packages

AgentSea voice: text-to-speech and speech-to-text behaviours with OpenAI and ElevenLabs adapters.

Current section

Files

Jump to
agentsea_voice lib agent_sea voice stt.ex
Raw

lib/agent_sea/voice/stt.ex

defmodule AgentSea.Voice.STT do
@moduledoc """
Speech-to-text behaviour. Adapters: remote (OpenAI Whisper over Req) or, in
future, local (Whisper via Bumblebee, in-process).
"""
@type result :: %{text: String.t()}
@callback transcribe(audio :: binary(), opts :: keyword()) ::
{:ok, result()} | {:error, term()}
end