Files
PraisonAI/examples/python/audio/tts_basic.py
T
2026-01-18 21:18:40 +00:00

9 lines
226 B
Python

# Text-to-Speech with OpenAI
# Requires: export OPENAI_API_KEY=your-key
from praisonaiagents import AudioAgent
agent = AudioAgent(llm="openai/tts-1")
agent.say("Hello world!", output="hello.mp3")
print("Saved to hello.mp3")