This commit is contained in:
retoor 2025-01-18 15:44:44 +01:00
parent 031a6d9144
commit 54a4ae12f4

View File

@ -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():