This commit is contained in:
yumoqing 2024-02-21 16:58:59 +08:00
parent f75a060f2a
commit c87b6429f2

View File

@ -39,8 +39,5 @@ class CoquiTTS:
buf = b.read()
return buf
async def generate(self, text):
loop = asyncio.get_event_loop()
result = await loop.run_in_executor(None, self._generate, text)
return result
generate = awaitify(_generate)