Subject: [PATCH] gnu: add ekho

From: qblade <[email-masked]>
Date: Wed, 24 Feb 2021 11:43:12 +0000

Empty Message

From 28c74e38d5b1b27aa83385b0c6a9ddec62ff3416 Mon Sep 17 00:00:00 2001
From: qblade <[email-masked]>
Date: Wed, 24 Feb 2021 11:35:35 +0000
Subject: [PATCH] gnu: add ekho

* gnu/packages/speech.scm (ekho): New variable.
---
 gnu/packages/speech.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm
index 66d8fca31b..793b4fe626 100644
--- a/gnu/packages/speech.scm
+++ b/gnu/packages/speech.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2019 Ricardo Wurmus <[email-masked]>
 ;;; Copyright © 2020 Nicolas Goaziou <[email-masked]>
 ;;; Copyright © 2020 Efraim Flashner <[email-masked]>
+;;; Copyright © 2021 qblade <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -616,3 +617,38 @@ manipulating acoustic feature and audio files.")
 large vocabulary, speaker-independent continuous speech recognition
 engine.")
     (license license:bsd-2)))
+
+(define-public ekho
+  (package
+    (name "ekho")
+    (version "8.4")
+    (source (origin
+              (method url-fetch)
+              (uri
+               (string-append
+                "http://sourceforge.net/projects/e-guidedog/files/Ekho/"
+                version "/ekho-" version ".tar.xz"))
+              (sha256
+               (base32
+                "1v476kpw09ljj8mavasj4hya2w11jwlx7q22rh1lsn9jkkam5i2a"))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("libsndfile" ,libsndfile)
+       ("espeak-ng" ,espeak-ng)
+       ("pulseaudio" ,pulseaudio)
+       ("alsa-lib" ,alsa-lib)))
+    (build-system gnu-build-system)
+    (native-search-paths
+     (list (search-path-specification
+            (variable "EKHO_DATA_PATH")
+            (files '("share/ekho-data")))))
+    (home-page "https://eguidedog.net/ekho.php")
+    (synopsis "Chinese text-to-speech software")
+    (description "it can speak Cantonese
+Mandarin, Hakka, Tibetan, Ngangien and English (through Festival),
+Korean is in trial.")
+    (license (list
+              license:gpl2+
+              ;; libmusicxml
+              license:mpl2.0))))
-- 
2.29.2