Update.
This commit is contained in:
parent
031a6d9144
commit
54a4ae12f4
@ -104,10 +104,10 @@ async def tts(text:str ,google_project:str="lisa-448004", language_code:str="nl-
|
||||
file = pathlib.Path(str(uuid.uuid4()) + ".mp3")
|
||||
with file.open("wb") as audio_file:
|
||||
audio_file.write(base64.b64decode(audio_content.encode('latin1')))
|
||||
async for tik in play_audio(file):
|
||||
async for tik in play_audio_async(file):
|
||||
await asyncio.sleep(0.1)
|
||||
file.unlink()
|
||||
return
|
||||
|
||||
|
||||
|
||||
def oud():
|
||||
|
Loading…
Reference in New Issue
Block a user