jianchang512 / ChatTTS-ui

一个简单的本地网页界面,使用ChatTTS将文字合成为语音,同时支持对外提供API接口。A simple native web interface that uses ChatTTS to synthesize text into speech, along with support for external API interfaces.
https://pyvideotrans.com
Other
5.1k stars 556 forks source link

feat(app): async router #53

Closed QIN2DIM closed 1 month ago

QIN2DIM commented 1 month ago

Do you consider switching to Fastapi asynchronous interface?

For example, you can use the coroutine queue to handle tasks. In this way, the page will not be blocked when generating audio files

jianchang512 commented 1 month ago

This type of task usually does not have several concurrency, even most of them are single request, flask + waitress is enough, and waitress is pure py, simple/compatible, in contrast, there is no need to add complexity to introduce asynchronous