Merge branch 'master' into staging
[jackhill/guix/guix.git] / gnu / packages / speech.scm
CommitLineData
9698f4b7
DT
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 David Thompson <davet@gnu.org>
b3df4d7e 3;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
b3e2ea8d 4;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
9698f4b7
DT
5;;;
6;;; This file is part of GNU Guix.
7;;;
8;;; GNU Guix is free software; you can redistribute it and/or modify it
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
13;;; GNU Guix is distributed in the hope that it will be useful, but
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20
21(define-module (gnu packages speech)
22 #:use-module ((guix licenses) #:prefix license:)
23 #:use-module (guix packages)
24 #:use-module (guix download)
25 #:use-module (guix build-system gnu)
26 #:use-module (gnu packages)
904f8a31 27 #:use-module (gnu packages audio)
b3df4d7e
MB
28 #:use-module (gnu packages autotools)
29 #:use-module (gnu packages gcc)
30 #:use-module (gnu packages glib)
31 #:use-module (gnu packages pkg-config)
32 #:use-module (gnu packages pulseaudio)
904f8a31 33 #:use-module (gnu packages python)
b3df4d7e 34 #:use-module (gnu packages textutils))
9698f4b7
DT
35
36(define-public mitlm
37 (package
38 (name "mitlm")
39 (version "0.4.1")
40 ;; No official release tarballs, so for now we use the one from Debian
41 ;; that is maintained by one of the project developers.
42 ;;
43 ;; See: https://github.com/mitlm/mitlm/issues/54
44 (source (origin
45 (method url-fetch)
46 (uri (string-append "mirror://debian/pool/main/m/mitlm/mitlm_"
47 version ".orig.tar.gz"))
48 (sha256
49 (base32
50 "12m09xxx8jbir9cnzzaysvni5sfijpfj96z1x1520qqvmpc8lmn7"))))
51 (build-system gnu-build-system)
52 (native-inputs
53 `(("gfortran" ,gfortran)))
54 (synopsis "The MIT Language Modeling toolkit")
55 (description "The MIT Language Modeling (MITLM) toolkit is a set of
56tools designed for the efficient estimation of statistical n-gram language
57models involving iterative parameter estimation. It achieves much of its
58efficiency through the use of a compact vector representation of n-grams.")
59 (home-page "https://github.com/mitlm/mitlm")
60 (license license:expat)))
b3df4d7e
MB
61
62(define-public speech-dispatcher
63 (package
64 (name "speech-dispatcher")
65 (version "0.8.5")
66 (source (origin
67 (method url-fetch)
68 (uri (string-append "https://devel.freebsoft.org/pub/"
69 "projects/speechd/speech-dispatcher-"
70 version ".tar.gz"))
71 (sha256
72 (base32
73 "18jlxnhlahyi6njc6l6576hfvmzivjjgfjyd2n7vvrvx9inphjrb"))))
74 (build-system gnu-build-system)
75 (native-inputs
76 `(("intltool" ,intltool)
77 ("pkg-config" ,pkg-config)))
78 (inputs
79 `(("dotconf" ,dotconf)
904f8a31 80 ("espeak" ,espeak)
b3df4d7e
MB
81 ("glib" ,glib)
82 ("libltdl" ,libltdl)
904f8a31
SB
83 ("libsndfile" ,libsndfile)
84 ("pulseaudio" ,pulseaudio)
85 ("python" ,python)))
b3df4d7e
MB
86 (synopsis "Common interface to speech synthesizers")
87 (description "The Speech Dispatcher project provides a high-level
88device independent layer for access to speech synthesis through a simple,
89stable and well documented interface.")
90 (home-page "https://devel.freebsoft.org/speechd")
91 ;; The software is distributed under GPL2+, but includes a number
92 ;; of files covered by other licenses.
93 (license (list license:gpl2+
94 license:fdl1.2+ ; Most files in doc/ are dual gpl2+/fdl1.2+.
95 license:lgpl2.1+
96 license:gpl2
97 (license:non-copyleft
98 ;; festival_client.{c,h} carries an expat-style license.
99 "See src/modules/festival_client.c in the distribution.")
100 license:gpl3+)))) ; doc/texinfo.tex -- with TeX exception.
b3e2ea8d
LF
101
102(define-public sonic
103 (package
104 (name "sonic")
105 (version "0.2.0")
106 (source (origin
107 (method url-fetch)
108 (uri (string-append "https://github.com/waywardgeek/sonic/archive/"
109 "release-" version ".tar.gz"))
110 (file-name (string-append name "-" version ".tar.gz"))
111 (sha256
112 (base32
113 "11a0q9wkgbb9ymf52v7dvybfhj8hprgr67zs1xcng143fvjpr0n7"))))
114 (build-system gnu-build-system)
115 (arguments
116 `(#:tests? #f ; No test suite.
117 #:make-flags
118 (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
119 #:phases
120 (modify-phases %standard-phases
121 (delete 'configure)))) ; No ./configure script.
122 (synopsis "Speed up or slow down speech")
123 (description "Sonic implements a simple algorithm for speeding up or slowing
124down speech. However, it's optimized for speed ups of over 2X, unlike previous
125algorithms for changing speech rate. Sonic is a C library designed to be easily
126integrated into streaming voice applications such as text-to-speech (TTS) back
127ends.
128
129The primary motivation behind Sonic is to enable the blind and visually impaired
130to improve their productivity with speech engines, like eSpeak. Sonic can also
131be used by the sighted.")
132 (home-page "https://github.com/waywardgeek/sonic")
133 (license license:asl2.0)))