bugfix
This commit is contained in:
parent
a460bf4824
commit
c2bc2fcc8c
@ -1,3 +1,4 @@
|
||||
import asyncio
|
||||
from io import BytesIO
|
||||
from TTS.utils.manage import ModelManager
|
||||
from TTS.utils.synthesizer import Synthesizer
|
||||
@ -38,4 +39,7 @@ class CoquiTTS:
|
||||
buf = b.read()
|
||||
return buf
|
||||
|
||||
generate = awaitify(_generate)
|
||||
async def generate(self, text):
|
||||
w = asyncio.create_task(self._generate(text))
|
||||
await asyncio.wait(w)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user