From 54a4ae12f4a4fb8fcfc3405eeec7016a57fd7539 Mon Sep 17 00:00:00 2001 From: retoor Date: Sat, 18 Jan 2025 15:44:44 +0100 Subject: [PATCH] Update. --- src/rspeech/gcloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rspeech/gcloud.py b/src/rspeech/gcloud.py index b666aa4..aabfb60 100644 --- a/src/rspeech/gcloud.py +++ b/src/rspeech/gcloud.py @@ -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():