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/tts.ex
defmodule AgentSea.Voice.TTS do
@moduledoc """
Text-to-speech behaviour. Adapters: remote (OpenAI/ElevenLabs over Req) or, in
future, local (Piper / Bumblebee).
"""
@type result :: %{audio: binary(), format: String.t()}
@callback synthesize(text :: String.t(), opts :: keyword()) ::
{:ok, result()} | {:error, term()}
end