rany2 / edge-tts

Use Microsoft Edge's online text-to-speech service from Python WITHOUT needing Microsoft Edge or Windows or an API key
https://pypi.org/project/edge-tts/
GNU General Public License v3.0
5.38k stars 549 forks source link

[question] Is there an example to playback from Python? #66

Closed s3xysteak closed 1 year ago

s3xysteak commented 1 year ago

This will be helpful. Thx!

rany2 commented 1 year ago

You could use https://github.com/rany2/edge-tts/blob/master/examples/basic_generation.py and then play the saved mp3 using something like https://pypi.org/project/playsound/