guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 8f753893a03b7a121e6bc8fa19c32ac0e1f1f488
Author: Roman Scherer <[email protected]>
AuthorDate: Tue Jul 7 21:28:58 2026 +0200

    gnu: whisper-cpp: Update to 1.9.1.
    
    * gnu/packages/machine-learning.scm (whisper-cpp): Update to 1.9.1.
    [arguments]: Update #:configure-flags.
    
    Merges guix/guix!9807
    
    Signed-off-by: Cayetano Santos <[email protected]>
    Modified-by: Cayetano Santos <[email protected]>
---
 gnu/packages/machine-learning.scm | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index 4589212ca3..6c004bc185 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1080,7 +1080,7 @@ generation, etc.")
 (define-public whisper-cpp
   (package
     (name "whisper-cpp")
-    (version "1.8.6")                   ;keep in sync with ggml-for-whisper
+    (version "1.9.1")                   ;keep in sync with ggml-for-whisper
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -1089,14 +1089,14 @@ generation, etc.")
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "0akcmzy4krhdwrzv6y4d8gp02ir7dmfwv6glm6zhbdiq0g0za1w3"))))
+                "1mpmmqm83qy39a1zqphy059x2crzwll2j34ypgwwghy2ji6nc2xm"))))
     (build-system cmake-build-system)
     (arguments
      (list
       #:configure-flags
       #~(list "-DBUILD_SHARED_LIBS=ON"
               "-DWHISPER_SDL2=TRUE"
-              "-DWHISPER_FFMPEG=TRUE"
+              "-DWHISPER_COMMON_FFMPEG=TRUE"
               "-DWHISPER_USE_SYSTEM_GGML=ON")
       #:phases
       #~(modify-phases %standard-phases
@@ -1110,6 +1110,17 @@ generation, etc.")
                          (("LABELS \"large\"")
                           "DISABLED true")))))
                  '())
+          (add-after 'unpack 'fix-parakeet-test
+            (lambda _
+              ;; Unlike whisper-cli, test-parakeet does not load the
+              ;; dynamically loadable ggml backends, so it aborts with
+              ;; "GGML_ASSERT(device) failed" since our ggml is built
+              ;; with -DGGML_BACKEND_DL=ON.
+              (substitute* "tests/test-parakeet.cpp"
+                (("#include \"parakeet\\.h\"")
+                 "#include \"parakeet.h\"\n#include \"ggml-backend.h\"")
+                (("int main\\(\\) \\{")
+                 "int main() {\n    ggml_backend_load_all();"))))
           (add-after 'unpack 'skip-failing-vad-tests
             (lambda _
               (substitute* "tests/CMakeLists.txt"

Reply via email to