From 0c0308a3d119330db8ff19dcd37ac46d5a0946d6 Mon Sep 17 00:00:00 2001 From: briancaffey Date: Mon, 8 Jul 2024 06:30:42 -0400 Subject: [PATCH] fix(api): fix order of args for writestr (#546) --- examples/api/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/api/main.py b/examples/api/main.py index d407a5d91..a1bb568f9 100644 --- a/examples/api/main.py +++ b/examples/api/main.py @@ -101,7 +101,7 @@ async def generate_voice(params: ChatTTSParams): buf, "a", compression=zipfile.ZIP_DEFLATED, allowZip64=False ) as f: for idx, wav in enumerate(wavs): - f.writestr(wav_arr_to_mp3_view(wav), f"{idx}.mp3") + f.writestr(f"{idx}.mp3", wav_arr_to_mp3_view(wav)) logger.info("Audio generation successful.") buf.seek(0)