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.21k stars 444 forks source link

Make it possible to use edge-tts without async #194

Closed xiaobili closed 2 months ago

xiaobili commented 4 months ago

The stream method in the communicate object seems to only have asynchronous generators.

there is a Scenes,that i want to use flask to send byte data to client,but the flask doesn't support async generator

FujiwaraChoki commented 3 months ago

+1

rany2 commented 2 months ago

This feature was added by @lzieniew in 6.1.11.

FujiwaraChoki commented 2 months ago

lets gooo