Skip to content

Commit

Permalink
fix(api): fix order of args for writestr (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
briancaffey authored Jul 8, 2024
1 parent aea84bf commit 0c0308a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0c0308a

Please sign in to comment.