ggerganov / whisper.cpp

Port of OpenAI's Whisper model in C/C++
MIT License
34.98k stars 3.57k forks source link

Bash error with the ./examples/yt-wsp.sh file on macOS #530

Open MatteoGauthier opened 1 year ago

MatteoGauthier commented 1 year ago

Hey, I got an issue when I try to use yt-wsp.sh example :

# ./examples/yt-wsp.sh https://www.youtube.com/watch?v=3Z8O5IjWDEk
./examples/yt-wsp.sh: line 42: realpath: command not found
noman-land commented 1 year ago

I ran into this issue as well and was able to resolve it by installing coreutils:

brew install coreutils

I found three references to realpath in the repo:

  1. https://github.com/ggerganov/whisper.cpp/blob/70567eff232773d6786c91585d040f53c36b87a4/models/download-ggml-model.sh#L14-L15
  2. https://github.com/ggerganov/whisper.cpp/blob/70567eff232773d6786c91585d040f53c36b87a4/examples/yt-wsp.sh#L42
  3. https://github.com/ggerganov/whisper.cpp/blob/70567eff232773d6786c91585d040f53c36b87a4/models/download-coreml-model.sh#L11-L12