10 lines
201 B
Python
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()) |