Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sshh12 committed Sep 23, 2023
1 parent 9719f01 commit ba19dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llm_convo/audio_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_duration(self, audio_fn: str) -> float:
)
popen.wait()
output = popen.stdout.read().decode("utf-8")
duration = float(output.split("=")[1].split("\r")[0])
duration = float(output.split("=")[1].replace("\r\n", "\n").split("\n")[0])
return duration


Expand Down

0 comments on commit ba19dad

Please sign in to comment.