mirror of
https://github.com/openai/whisper.git
synced 2025-03-30 14:28:27 +00:00
remove auxiliary audio extension (#1021)
Co-authored-by: Jong Wook Kim <jongwook@openai.com>
This commit is contained in:
parent
b80bcf610d
commit
c6e4e5efb3
@ -75,6 +75,7 @@ class ResultWriter:
|
||||
|
||||
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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user