aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-09-11 00:24:42 +0200
committerJulien Lepiller <julien@lepiller.eu>2020-09-11 01:06:49 +0200
commitfa76fb632def85586bf7759acd0d42e9a2acd29a (patch)
tree0f8d22579b07f4e97f25eda898a5cd53ee1e102b /gnu/packages
parent629982c050500a244e28878306ee345174b3cf0e (diff)
downloadguix-fa76fb632def85586bf7759acd0d42e9a2acd29a.tar.gz
guix-fa76fb632def85586bf7759acd0d42e9a2acd29a.zip
gnu: Add praat.
* gnu/packages/language.scm (praat): New variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/language.scm47
1 files changed, 47 insertions, 0 deletions
diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
index 4959f96a19..0c59cd1bf7 100644
--- a/gnu/packages/language.scm
+++ b/gnu/packages/language.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2018 Nikita <nikita@n0.is>
;;; Copyright © 2019 Alex Vong <alexvong1995@gmail.com>
;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2020 Julien Lepiller <julien@lepiller.eu>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -23,14 +24,17 @@
(define-module (gnu packages language)
#:use-module (gnu packages)
#:use-module (gnu packages autotools)
+ #:use-module (gnu packages audio)
#:use-module (gnu packages glib)
#:use-module (gnu packages gtk)
#:use-module (gnu packages java)
+ #:use-module (gnu packages linux)
#:use-module (gnu packages llvm)
#:use-module (gnu packages man)
#:use-module (gnu packages ocr)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages pulseaudio)
#:use-module (gnu packages python)
#:use-module (gnu packages perl-check)
#:use-module (gnu packages swig)
@@ -1057,3 +1061,46 @@ labelled links connecting pairs of words. The parser also produces a
\"constituent\" (HPSG style phrase tree) representation of a sentence (showing
noun phrases, verb phrases, etc.).")
(license bsd-3)))
+
+(define-public praat
+ (package
+ (name "praat")
+ (version "6.1.16")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/praat/praat")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1rx4qvl0dd85x0r6pl0zk4bysx9ykxl05kywjr4pyvv6dvpswkrm"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f; no test target
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'configure
+ (lambda _
+ (copy-file "makefiles/makefile.defs.linux.pulse" "makefile.defs")
+ #t))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ (mkdir-p bin)
+ (copy-file "praat" (string-append bin "/praat")))
+ #t)))))
+ (inputs
+ `(("alsa-lib" ,alsa-lib)
+ ("gtk" ,gtk+-2)
+ ("jack" ,jack-1)
+ ("publesaudio" ,pulseaudio)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (home-page "http://www.fon.hum.uva.nl/praat/")
+ (synopsis "Doing phonetics by computer")
+ (description "Praat is a tool to perform phonetics tasks. It can do speach
+analysis (pitch, formant, intensity, ...), speach synthesis, labeling, segmenting
+and manipulation.")
+ (license gpl2+)))