From 5ea62c03c490f798e1478d5a27ea2733b6472ddf Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 2 Jul 2020 01:55:56 -0400 Subject: [PATCH 22/51] gnu: Add flite. * gnu/packages/speech.scm (flite): New variable. --- gnu/packages/speech.scm | 58 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm index c9c1eaa8d9..0968b015be 100644 --- a/gnu/packages/speech.scm +++ b/gnu/packages/speech.scm @@ -50,6 +50,64 @@ #:use-module (gnu packages texinfo) #:use-module (gnu packages textutils)) +(define-public flite + (package + (name "flite") + (version "2.1") + (source + (origin + (method url-fetch) + (uri + (string-append "http://www.festvox.org/" name "/packed/" name + "-" version "/" name "-" version "-release.tar.bz2")) + (sha256 + (base32 "119b7l7pjb1l5raqq24p8rmhdqni49vjh2mgdryrfr575rm3yg67")))) + (build-system gnu-build-system) + (arguments + ;; XXX: + ;; There numerous issues with the testsuite. + ;; Enable them once they are fixed in upstream. + `(#:tests? #f + #:configure-flags + (list + "--enable-shared" + (string-append "LDFLAGS=-Wl,-rpath=" + (assoc-ref %outputs "out") + "/lib")) + #:phases + (modify-phases %standard-phases + (add-after 'install 'remove-static-libs + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out"))) + (for-each delete-file + (list + (string-append out "/lib/libflite.a") + (string-append out "/lib/libflite_cmu_grapheme_lang.a") + (string-append out "/lib/libflite_cmu_grapheme_lex.a") + (string-append out "/lib/libflite_cmu_indic_lang.a") + (string-append out "/lib/libflite_cmu_indic_lex.a") + (string-append out "/lib/libflite_cmulex.a") + (string-append out "/lib/libflite_cmu_time_awb.a") + (string-append out "/lib/libflite_cmu_us_awb.a") + (string-append out "/lib/libflite_cmu_us_kal16.a") + (string-append out "/lib/libflite_cmu_us_kal.a") + (string-append out "/lib/libflite_cmu_us_rms.a") + (string-append out "/lib/libflite_cmu_us_slt.a") + (string-append out "/lib/libflite_usenglish.a")))) + #t))))) + (native-inputs + `(("perl" ,perl))) + (inputs + `(("alsa" ,alsa-lib))) + (synopsis "Speech synthesis system") + (description "Flite (festival-lite) is a small, fast run-time text to speech +synthesis engine developed at CMU and primarily designed for small embedded +machines and/or large servers. It is designed as an alternative text to speech +synthesis engine to Festival for voices built using the FestVox suite of voice +building tools.") + (home-page "http://www.festvox.org/flite/index.html") + (license (license:non-copyleft "file:///COPYING")))) + (define-public espeak (package (name "espeak") -- 2.26.2