bugfix
This commit is contained in:
parent
c2bc2fcc8c
commit
ca507e5a1b
@ -40,6 +40,10 @@ class CoquiTTS:
|
||||
return buf
|
||||
|
||||
async def generate(self, text):
|
||||
w = asyncio.create_task(self._generate(text))
|
||||
await asyncio.wait(w)
|
||||
loop = asyncio.get_event_loop()
|
||||
result = loop.run_in_executor(None, self._generate, text)
|
||||
return result
|
||||
|
||||
w = asyncio.create_task(self._generate(text))
|
||||
return await asyncio.wait(w)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user