depot/third_party/nixpkgs/pkgs/development/python-modules/openai-whisper/ffmpeg-path.patch
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

13 lines
411 B
Diff

diff --git a/whisper/audio.py b/whisper/audio.py
index 4f5b6e0..bfe7924 100644
--- a/whisper/audio.py
+++ b/whisper/audio.py
@@ -44,7 +44,7 @@ def load_audio(file: str, sr: int = SAMPLE_RATE):
# and resampling as necessary. Requires the ffmpeg CLI in PATH.
# fmt: off
cmd = [
- "ffmpeg",
+ "@ffmpeg@/bin/ffmpeg",
"-nostdin",
"-threads", "0",
"-i", file,