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 <jongwook@openai.com>
  • Loading branch information
2 people authored and zackees committed May 5, 2023
1 parent 627ea97 commit 52c4e4a
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 52c4e4a

Please sign in to comment.