File size: 179 Bytes
c72bd11
 
 
 
 
1
2
3
4
5
import edge_tts

async def generate_audio(text, outputFilename):
    communicate = edge_tts.Communicate(text, "en-AU-WilliamNeural")
    await communicate.save(outputFilename)