Files
Python-tts/edge-tts/edge-tts_first.py
2026-05-17 17:27:02 +02:00

10 lines
201 B
Python

#pip install edge-tts
import asyncio
import edge_tts
async def speak():
tts = edge_tts.Communicate("Hello World", voice="en-US-JennyNeural")
await tts.save("output.mp3")
asyncio.run(speak())