mirror of
https://github.com/MervinPraison/PraisonAI.git
synced 2026-11-07 04:35:58 -10:00
10 lines
249 B
Python
10 lines
249 B
Python
# praisonai: skip=true
|
|
# 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")
|