Subject: [PATCH 17/19] gnu: Add mycroft-mimic.

From: phodina <[email-masked]>
Date: Sat, 18 Sep 2021 19:11:42 +0000

* gnu/packages/speech.scm (mycroft-mimic): New variable.

diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm
index cbc46b32b4..78694362e8 100644
--- a/gnu/packages/speech.scm
+++ b/gnu/packages/speech.scm
@@ -8,6 +8,7 @@
 ;;; Copyright © 2020 Nicolas Goaziou <[email-masked]>
 ;;; Copyright © 2020 Efraim Flashner <[email-masked]>
 ;;; Copyright © 2021 qblade <[email-masked]>
+;;; Copyright © 2021 Petr Hodina <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -45,6 +46,7 @@
   #:use-module (gnu packages gstreamer)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages ncurses)
+  #:use-module (gnu packages pcre)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages pulseaudio)
@@ -237,6 +239,36 @@ efficiency through the use of a compact vector representation of n-grams.")
     (home-page "https://github.com/mitlm/mitlm")
     (license license:expat)))

+(define-public mycroft-mimic
+  (package
+    (name "mycroft-mimic")
+    (version "1.3.0.1")
+    (source (origin
+              (method git-fetch)
+              (uri
+               (git-reference
+                (url "https://github.com/MycroftAI/mimic1")
+                (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1agwgby9ql8r3x5rd1rgx3xp9y4cdg4pi3kqlz3vanv9na8nf3id"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("libtool" ,libtool)
+       ("automake" ,automake)
+       ("autoconf" ,autoconf)))
+    (inputs `(("alsa-lib" ,alsa-lib)
+              ("pcre2" ,pcre2)))
+    (synopsis "Mycroft's TTS engine, based on CMU's Flite (Festival Lite)")
+    (description "Mimic is a fast, lightweight Text-to-speech engine developed
+by Mycroft A.I. and VocaliD, based on Carnegie Mellon University’s Flite
+(Festival-Lite) software.  Mimic takes in text and reads it out loud to create
+a high quality voice.")
+    (home-page "https://github.com/MycroftAI/mimic1")
+    (license #f)))
+
 (define-public speech-dispatcher
   (package
     (name "speech-dispatcher")
--
2.32.0