Subject: bug#72027: closed (merged a variant of whisper-cpp to guix master)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 02 Jan 2025 23:05:02 +0000

Your bug report

#72027: [PATCH] gnu: Add whisper-cpp.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
72027: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=72027
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: merged a variant of whisper-cpp to guix master
From: [email-masked]
To: [email-masked]
Date: Fri, 03 Jan 2025 00:04:12 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Oops, I had overlooked this oatch before.

I've merged a variant of your patch to guix master as commit 
a707ebe5d3875a49523bc17de2d36af6f1c18f7e.

Though I'm not sure what enabling SDL does when none of the programs are 
installed in the first place.  How is this supposed to be?

Cheers,
    Danny

Subject: [PATCH] gnu: Add whisper-cpp.
From: Andy Tai <[email-masked]>
To: [email-masked]
Cc: Andy Tai <[email-masked]>
Date: Tue, 9 Jul 2024 21:53:16 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/machine-learning.scm (whisper-cpp): New variable.

Change-Id: If191f434a3f66b16afdc702069eaed1ca22e2427
---
 gnu/packages/machine-learning.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 8ca9a6376e..61c25b49da 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -5982,6 +5982,29 @@ (define-public oneapi-dnnl-for-r-torch
        (sha256
         (base32 "1zyw5rd8x346bb7gac9a7x3saviw3zvp6aqz2z1l9sv163vmjfz6"))))))
 
+(define-public whisper-cpp
+    (package
+      (name "whisper-cpp")
+      (version "1.6.2")
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/ggerganov/whisper.cpp")
+               (commit (string-append "v" version))))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "01q4j602wkvsf9vw0nsazzgvjppf4fhpy90vqnm9affynyxhi0c4"))))
+      (build-system cmake-build-system)
+      (properties '((tunable? . #true))) ;use AVX512, FMA, etc. when available
+      (home-page "https://github.com/ggerganov/whisper.cpp")
+      (synopsis "Port of OpenAI's Whisper model in C/C++ ")
+      (description "This package is a high-performance inference of OpenAI's
+Whisper automatic speech recognition (ASR) model, implemented in plain C/C++
+without dependencies")
+      (license license:expat)))
+
+
 (define-public python-gguf
   (package
     (name "python-gguf")

base-commit: e13f7d48e5b989f5dbd27c19ac81989ec6b3ec6e
-- 
2.34.1