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