gnu: Add pocketsphinx.

* gnu/packages/speech.scm (pocketsphinx): New variable.
This commit is contained in:
Nicolas Goaziou 2020-03-21 15:59:01 +01:00
parent 337fc72228
commit 9e9dd4098f
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -39,6 +39,7 @@ (define-module (gnu packages speech)
#:use-module (gnu packages emacs)
#:use-module (gnu packages gcc)
#:use-module (gnu packages glib)
#:use-module (gnu packages gstreamer)
#:use-module (gnu packages linux)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages perl)
@ -507,3 +508,33 @@ (define-public sphinxbase
Sphinx-III, and PocketSphinx), as well as some common utilities for
manipulating acoustic feature and audio files.")
(license license:bsd-4)))
(define-public pocketsphinx
(package
(name "pocketsphinx")
(version "5prealpha")
(source
(origin
(method url-fetch)
(uri (string-append "mirror://sourceforge/cmusphinx/"
"pocketsphinx/" version "/"
"pocketsphinx-" version ".tar.gz"))
(sha256
(base32 "1n9yazzdgvpqgnfzsbl96ch9cirayh74jmpjf7svs4i7grabanzg"))))
(build-system gnu-build-system)
(native-inputs
`(("pkg-config" ,pkg-config)
("perl" ,perl) ;for tests
("python" ,python)
("swig" ,swig)))
(inputs
`(("gstreamer" ,gstreamer)
("libcap" ,libcap)
("pulseaudio" ,pulseaudio)
("sphinxbase" ,sphinxbase)))
(home-page "https://cmusphinx.github.io/")
(synopsis "Recognizer library written in C")
(description "PocketSphinx is one of Carnegie Mellon University's
large vocabulary, speaker-independent continuous speech recognition
engine.")
(license license:bsd-2)))