Packages
agentsea_voice
0.1.0
AgentSea voice: text-to-speech and speech-to-text behaviours with OpenAI and ElevenLabs adapters.
Current section
Files
Jump to
Current section
Files
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