Skip to content

Commit

Permalink
remove auxiliary audio extension (openai#1021)
Browse files Browse the repository at this point in the history
Co-authored-by: Jong Wook Kim <[email protected]>
  • Loading branch information
ain-soph and jongwook authored Mar 7, 2023
1 parent b80bcf6 commit c6e4e5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions whisper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def __init__(self, output_dir: str):

def __call__(self, result: dict, audio_path: str):
audio_basename = os.path.basename(audio_path)
audio_basename = os.path.splitext(audio_basename)[0]
output_path = os.path.join(
self.output_dir, audio_basename + "." + self.extension
)
Expand Down

0 comments on commit c6e4e5e

Please sign in to comment.