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
4.48k stars 462 forks source link

Broken Python 3.8 Support #96

Closed Frustrated-Programmer9001 closed 1 year ago

Frustrated-Programmer9001 commented 1 year ago

I'm trying to run the basic_generation example but I'm getting errors:

image

rany2 commented 1 year ago

Fixed in 6.1.6: https://github.com/rany2/edge-tts/commit/ca6e7b06691f3bb9c8892c630fd648abd987957b

Frustrated-Programmer9001 commented 1 year ago

I've tried the new version and I'm still getting the same errors. image

rany2 commented 1 year ago

Which python version?

Frustrated-Programmer9001 commented 1 year ago

3.8.16

rany2 commented 1 year ago

can you try to just await the async main function? I think it's doing this because asyncio loop is already running by IDE