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)