Skip to content

Commit

Permalink
fix(api): fix order of args for writestr
Browse files Browse the repository at this point in the history
  • Loading branch information
briancaffey committed Jul 7, 2024
1 parent bfe5f26 commit 4d8bf19
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 4d8bf19

Please sign in to comment.