Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove auxiliary audio extension #1021

Merged
merged 2 commits into from
Mar 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
remove auxiliary audio extension
  • Loading branch information
ain-soph committed Mar 3, 2023
commit 2f3e7fe9446f8c7c766962cd46ae9bd7d1eb968b
1 change: 1 addition & 0 deletions whisper/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,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)

with open(output_path, "w", encoding="utf-8") as f:
Expand Down