Skip to content

Creating a formula for "whisper.cpp" #4292

Discussion options

You must be logged in to vote

It exists now! https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/w/whisper-cpp.rb

After manually downloading a model and pointing whisper-cpp to the right place it works fine but it doesn't use metal without some unintuitive trickery. I'm using an M1 Max and without metal it takes about 60 seconds to process a 1 min file. WITH metal the same task only takes 12 seconds!

In order to get the brew installed version to use metal I had to add the following env var:

GGML_METAL_PATH_RESOURCES="/opt/homebrew/Cellar/whisper-cpp/1.5.4/share/whisper-cpp/" whisper-cpp "sample.wav" -m ~/Code/whisper.cpp/models/ggml-medium.en.bin

I'm not sure what the best practice would be to automatically s…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@slhck
Comment options

Answer selected by slhck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants