[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
165/295: gnu: Add flite.
From: |
guix-commits |
Subject: |
165/295: gnu: Add flite. |
Date: |
Mon, 27 Jul 2020 06:26:00 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit f5e5b8201b85b935c63504689ce4f49503f0f712
Author: Raghav Gururajan <raghavgururajan@disroot.org>
AuthorDate: Thu Jul 2 01:55:56 2020 -0400
gnu: Add flite.
* gnu/packages/speech.scm (flite): New variable.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/speech.scm | 68 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm
index c9c1eaa..c7fbb98 100644
--- a/gnu/packages/speech.scm
+++ b/gnu/packages/speech.scm
@@ -50,6 +50,74 @@
#: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 all of 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 'unpack 'patch-rpath
+ (lambda _
+ (substitute* "main/Makefile"
+ (("flite_LIBS_flags \\+= -Wl,-rpath [^ ]*")
+ "flite_LIBS_flags +="))
+ #t))
+ (delete 'check)
+ ;; Modifying testsuite/Makefile is not done in favor of
+ ;; overriding 'check.
+ ;; The path not taken would be:
+ ;; test:\n\t$(foreach x,$(subst tris1,,$(subst dcoffset_wave,,$(subst
flite_test,,$(subst by_word,,$(subst bin2ascii,,$(subst lpc_resynth,,$(subst
rfc,,$(subst compare_wave,,$(subst record_in_noise,,$(subst
combine_waves,,$(patsubst play_%,,$(subst record_wave,,$(subst
lex_lookup,,$(patsubst lpc_test%,,$(patsubst asciiS2U%,,$(patsubst
asciiU2S%,,$(ALL))))))))))))))))),echo TEST $x && ./$x data.one && ) true
+ (add-after 'install 'check
+ (lambda _
+ (invoke "make" "-C" "testsuite")
+ (with-directory-excursion "testsuite"
+ (invoke "./token_test")
+ (invoke "./hrg_test")
+ (invoke "./regex_test")
+ (invoke "./nums_test")
+ (invoke "./lex_test")
+ (invoke "./utt_test")
+ (invoke "./multi_thread"))
+ #t))
+ (add-after 'install 'remove-static-libs
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out")))
+ (for-each delete-file
+ (find-files out "\\.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")
- 135/295: gnu: gdk-pixbuf+svg: Update package definition., (continued)
- 135/295: gnu: gdk-pixbuf+svg: Update package definition., guix-commits, 2020/07/27
- 139/295: gnu: glib-networking: Update to 2.62.4., guix-commits, 2020/07/27
- 142/295: gnu: gsettings-desktop-schemas: Update package definition., guix-commits, 2020/07/27
- 144/295: gnu: faad2: Update to 2.8.8., guix-commits, 2020/07/27
- 145/295: gnu: glib: Update package definition., guix-commits, 2020/07/27
- 147/295: gnu: glib-networking: Update to 2.64.3., guix-commits, 2020/07/27
- 148/295: gnu: gobject-introspection: Update package definition., guix-commits, 2020/07/27
- 153/295: gnu: gst-plugins-good: Update package definition., guix-commits, 2020/07/27
- 162/295: gnu: Add libtimidity., guix-commits, 2020/07/27
- 164/295: gnu: Add faac., guix-commits, 2020/07/27
- 165/295: gnu: Add flite.,
guix-commits <=
- 160/295: gnu: Add tslib., guix-commits, 2020/07/27
- 161/295: gnu: Add flux., guix-commits, 2020/07/27
- 168/295: gnu: Add libde265., guix-commits, 2020/07/27
- 169/295: gnu: Add libmms., guix-commits, 2020/07/27
- 180/295: gnu: Add transcode., guix-commits, 2020/07/27
- 186/295: gnu: Add rtmpdump., guix-commits, 2020/07/27
- 192/295: gnu: gtk-doc: Update package definition., guix-commits, 2020/07/27
- 191/295: gnu: gtk+: Update package definition., guix-commits, 2020/07/27
- 193/295: gnu: gtk+: Propagate libcloudproviders., guix-commits, 2020/07/27
- 195/295: gnu: gtksourceview-3: Update package definition., guix-commits, 2020/07/27