TTS Providers
TTS Providers
TTS plugins convert the agent’s text responses into spoken audio.
Set your API key in .env
Create a .env file (same directory where you run the worker) and add your provider key:
# .env
CARTESIA_API_KEY=...
How to use a TTS plugin
Worker defaults
from dotenv import load_dotenv
from siphon.agent import Agent
from siphon.plugins import cartesia, openai
load_dotenv()
agent = Agent(
agent_name="Agent-System",
llm=openai.LLM(),
tts=cartesia.TTS(),
)
if __name__ == "__main__":
agent.dev()
Per-call overrides
You can also pass a TTS object into Dispatch(...) or Call(...) for per-call overrides.