From c87b6429f25f040841b764d89d734e6b3460cff2 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 21 Feb 2024 16:58:59 +0800 Subject: [PATCH] bugfix --- coquitts/coqui.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/coquitts/coqui.py b/coquitts/coqui.py index 37e520c..de7f9e7 100644 --- a/coquitts/coqui.py +++ b/coquitts/coqui.py @@ -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)