Skip to content

Commit

Permalink
whisper-cpp: 1.5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
BingoKingo authored and Anonymous committed May 6, 2024
1 parent ee4d4d7 commit 0336d6f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Formula/w/whisper-cpp.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class WhisperCpp < Formula
desc "Port of OpenAI's Whisper model in C/C++"
homepage "https://github.com/ggerganov/whisper.cpp"
url "https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.5.4.tar.gz"
sha256 "06eed84de310fdf5408527e41e863ac3b80b8603576ba0521177464b1b341a3a"
url "https://github.com/ggerganov/whisper.cpp/archive/refs/tags/v1.5.5.tar.gz"
sha256 "27fa5c472657af2a6cee63de349a34b23d0f3781fa9b8ef301a940cf64964a79"
license "MIT"
head "https://github.com/ggerganov/whisper.cpp.git", branch: "master"

Expand All @@ -22,8 +22,14 @@ class WhisperCpp < Formula
end

def install
system "make"
if OS.mac?
system "make", "WHISPER_COREML=1"
else
system "make"
end

bin.install "main" => "whisper-cpp"
bin.install "server" => "whisper-cpp-server"

pkgshare.install ["samples/jfk.wav", "models/for-tests-ggml-tiny.bin", "ggml-metal.metal"]
end
Expand Down

0 comments on commit 0336d6f

Please sign in to comment.