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 tts.ex
Raw

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