speech.scm 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2016 David Thompson <davet@gnu.org>
  3. ;;; Copyright © 2016 Marius Bakke <mbakke@fastmail.com>
  4. ;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
  5. ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
  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. (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)
  27. #:use-module (gnu packages audio)
  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)
  33. #:use-module (gnu packages python)
  34. #:use-module (gnu packages textutils))
  35. (define-public mitlm
  36. (package
  37. (name "mitlm")
  38. (version "0.4.2")
  39. (source (origin
  40. (method url-fetch)
  41. (uri (string-append "https://github.com/mitlm/mitlm/releases/"
  42. "download/v" version "/"
  43. name "-" version ".tar.xz"))
  44. (sha256
  45. (base32
  46. "09fv4fcpmw9g1j0zml0k5kk1lgjw2spr8gn51llbkaaph6v8d62a"))))
  47. (build-system gnu-build-system)
  48. (native-inputs
  49. `(("gfortran" ,gfortran)))
  50. (synopsis "The MIT Language Modeling toolkit")
  51. (description "The MIT Language Modeling (MITLM) toolkit is a set of
  52. tools designed for the efficient estimation of statistical n-gram language
  53. models involving iterative parameter estimation. It achieves much of its
  54. efficiency through the use of a compact vector representation of n-grams.")
  55. (home-page "https://github.com/mitlm/mitlm")
  56. (license license:expat)))
  57. (define-public speech-dispatcher
  58. (package
  59. (name "speech-dispatcher")
  60. (version "0.8.5")
  61. (source (origin
  62. (method url-fetch)
  63. (uri (string-append "https://devel.freebsoft.org/pub/"
  64. "projects/speechd/speech-dispatcher-"
  65. version ".tar.gz"))
  66. (sha256
  67. (base32
  68. "18jlxnhlahyi6njc6l6576hfvmzivjjgfjyd2n7vvrvx9inphjrb"))))
  69. (build-system gnu-build-system)
  70. (native-inputs
  71. `(("intltool" ,intltool)
  72. ("pkg-config" ,pkg-config)))
  73. (inputs
  74. `(("dotconf" ,dotconf)
  75. ("espeak" ,espeak)
  76. ("glib" ,glib)
  77. ("libltdl" ,libltdl)
  78. ("libsndfile" ,libsndfile)
  79. ("pulseaudio" ,pulseaudio)
  80. ("python" ,python)))
  81. (synopsis "Common interface to speech synthesizers")
  82. (description "The Speech Dispatcher project provides a high-level
  83. device independent layer for access to speech synthesis through a simple,
  84. stable and well documented interface.")
  85. (home-page "https://devel.freebsoft.org/speechd")
  86. ;; The software is distributed under GPL2+, but includes a number
  87. ;; of files covered by other licenses.
  88. (license (list license:gpl2+
  89. license:fdl1.2+ ; Most files in doc/ are dual gpl2+/fdl1.2+.
  90. license:lgpl2.1+
  91. license:gpl2
  92. (license:non-copyleft
  93. ;; festival_client.{c,h} carries an expat-style license.
  94. "See src/modules/festival_client.c in the distribution.")
  95. license:gpl3+)))) ; doc/texinfo.tex -- with TeX exception.
  96. (define-public sonic
  97. (package
  98. (name "sonic")
  99. (version "0.2.0")
  100. (source (origin
  101. (method url-fetch)
  102. (uri (string-append "https://github.com/waywardgeek/sonic/archive/"
  103. "release-" version ".tar.gz"))
  104. (file-name (string-append name "-" version ".tar.gz"))
  105. (sha256
  106. (base32
  107. "11a0q9wkgbb9ymf52v7dvybfhj8hprgr67zs1xcng143fvjpr0n7"))))
  108. (build-system gnu-build-system)
  109. (arguments
  110. `(#:tests? #f ; No test suite.
  111. #:make-flags
  112. (list (string-append "DESTDIR=" (assoc-ref %outputs "out")))
  113. #:phases
  114. (modify-phases %standard-phases
  115. (delete 'configure)))) ; No ./configure script.
  116. (synopsis "Speed up or slow down speech")
  117. (description "Sonic implements a simple algorithm for speeding up or slowing
  118. down speech. However, it's optimized for speed ups of over 2X, unlike previous
  119. algorithms for changing speech rate. Sonic is a C library designed to be easily
  120. integrated into streaming voice applications such as text-to-speech (TTS) back
  121. ends.
  122. The primary motivation behind Sonic is to enable the blind and visually impaired
  123. to improve their productivity with speech engines, like eSpeak. Sonic can also
  124. be used by the sighted.")
  125. (home-page "https://github.com/waywardgeek/sonic")
  126. (license license:asl2.0)))