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