at 23.05-pre 643 B view raw
1diff --git a/whisper/audio.py b/whisper/audio.py 2index a6074e8..da18350 100644 3--- a/whisper/audio.py 4+++ b/whisper/audio.py 5@@ -41,7 +41,7 @@ def load_audio(file: str, sr: int = SAMPLE_RATE): 6 out, _ = ( 7 ffmpeg.input(file, threads=0) 8 .output("-", format="s16le", acodec="pcm_s16le", ac=1, ar=sr) 9- .run(cmd=["ffmpeg", "-nostdin"], capture_stdout=True, capture_stderr=True) 10+ .run(cmd=["@ffmpeg@/bin/ffmpeg", "-nostdin"], capture_stdout=True, capture_stderr=True) 11 ) 12 except ffmpeg.Error as e: 13 raise RuntimeError(f"Failed to load audio: {e.stderr.decode()}") from e