bugfix
This commit is contained in:
parent
a460bf4824
commit
c2bc2fcc8c
@ -1,3 +1,4 @@
|
|||||||
|
import asyncio
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from TTS.utils.manage import ModelManager
|
from TTS.utils.manage import ModelManager
|
||||||
from TTS.utils.synthesizer import Synthesizer
|
from TTS.utils.synthesizer import Synthesizer
|
||||||
@ -38,4 +39,7 @@ class CoquiTTS:
|
|||||||
buf = b.read()
|
buf = b.read()
|
||||||
return buf
|
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