guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/13: gnu: Add openfst-for-vosk.


From: guix-commits
Subject: 04/13: gnu: Add openfst-for-vosk.
Date: Mon, 17 Oct 2022 04:45:53 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 9ca6416a1933b6fcf3124c13a7eeeed999aaa968
Author: Nicolas Graves <ngraves@ngraves.fr>
AuthorDate: Thu Sep 29 11:00:17 2022 +0200

    gnu: Add openfst-for-vosk.
    
    * gnu/packages/machine-learning.scm (openfst-for-vosk): New variable.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 gnu/packages/machine-learning.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/machine-learning.scm 
b/gnu/packages/machine-learning.scm
index e702e499fc..3ad907e0c9 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -583,6 +583,22 @@ optimizing, and searching weighted finite-state 
transducers (FSTs).")
     (arguments '(#:configure-flags '("--enable-ngram-fsts" 
"CXXFLAGS=-std=c++14")
                  #:make-flags '("CXXFLAGS=-std=c++14")))))
 
+(define openfst-for-vosk
+  (package
+    (inherit openfst)
+    (version "1.8.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "http://www.openfst.org/twiki/pub/FST/";
+                           "FstDownload/openfst-" version ".tar.gz"))
+       (sha256
+        (base32 "0h2lfhhihg63b804hrcljnkggijbjmp84i5g8q735wb09y9z2c4p"))))
+    (arguments
+     '(#:configure-flags
+       '("--enable-shared" "--enable-far" "--enable-ngram-fsts"
+         "--enable-lookahead-fsts" "--with-pic" "--disable-bin")))))
+
 (define-public shogun
   (package
     (name "shogun")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]