summaryrefslogtreecommitdiff
path: root/gnu/packages/speech.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/speech.scm')
-rw-r--r--gnu/packages/speech.scm71
1 files changed, 29 insertions, 42 deletions
diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm
index 23da2455da..53721d7dc5 100644
--- a/gnu/packages/speech.scm
+++ b/gnu/packages/speech.scm
@@ -29,6 +29,7 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix utils)
#:use-module (guix build-system cmake)
@@ -56,7 +57,8 @@
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages swig)
#:use-module (gnu packages texinfo)
- #:use-module (gnu packages textutils))
+ #:use-module (gnu packages textutils)
+ #:use-module (gnu packages video))
(define-public flite
(package
@@ -649,59 +651,44 @@ It can also speak English through eSpeak or Festival.")
;; libmusicxml
license:mpl2.0))))
-(define-public sphinxbase
+(define-public pocketsphinx
(package
- (name "sphinxbase")
- (version "5prealpha")
+ (name "pocketsphinx")
+ (version "5.0.4")
(source
(origin
- (method url-fetch)
- (uri (string-append "mirror://sourceforge/cmusphinx/"
- "sphinxbase/" version "/"
- "sphinxbase-" version ".tar.gz"))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/cmusphinx/pocketsphinx")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "0vr4k8pv5a8nvq9yja7kl13b5lh0f9vha8fc8znqnm8bwmcxnazp"))
- (patches (search-patches "sphinxbase-fix-doxygen.patch"))))
- (build-system gnu-build-system)
+ (base32
+ "16andx54333rdyf6c33s8pfns2wvqfapqp9dhh8fpgzdyg6bfhhd"))))
+ (build-system cmake-build-system)
(arguments
- `(#:parallel-tests? #f)) ;tests fail otherwise
+ (list #:tests? #false ;XXX: test binaries are missing
+ #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"
+ "-DBUILD_GSTREAMER=ON")))
(native-inputs
- (list bison
- doxygen
- perl ;for tests
+ (list pkg-config
+ perl ;for tests
python
swig))
(inputs
- (list pulseaudio))
- (home-page "https://cmusphinx.github.io/")
- (synopsis "Support library required by Pocketsphinx and Sphinxtrain")
- (description "This package contains the basic libraries shared by
-the CMU Sphinx trainer and all the Sphinx decoders (Sphinx-II,
-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
- (list pkg-config perl ;for tests
- python swig))
- (inputs
- (list gstreamer libcap pulseaudio sphinxbase))
+ (list alsa-lib
+ ffmpeg
+ gstreamer
+ libcap
+ pulseaudio
+ portaudio
+ sox))
(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)))
+
+(define-deprecated-package sphinxbase
+ pocketsphinx)