bugfix
This commit is contained in:
parent
c2bc2fcc8c
commit
ca507e5a1b
@ -40,6 +40,10 @@ class CoquiTTS:
|
|||||||
return buf
|
return buf
|
||||||
|
|
||||||
async def generate(self, text):
|
async def generate(self, text):
|
||||||
w = asyncio.create_task(self._generate(text))
|
loop = asyncio.get_event_loop()
|
||||||
await asyncio.wait(w)
|
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