From unknown Thu Sep 11 10:04:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#39721] [WIP PATCH] Parlatype Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 21 Feb 2020 18:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39721 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39721@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158231070831582 (code B ref -1); Fri, 21 Feb 2020 18:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Feb 2020 18:45:08 +0000 Received: from localhost ([127.0.0.1]:48108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5DIR-0008DK-Sm for submit@debbugs.gnu.org; Fri, 21 Feb 2020 13:45:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:47666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5DIO-0008D7-Rv for submit@debbugs.gnu.org; Fri, 21 Feb 2020 13:45:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51699) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5DIM-0004KC-Vg for guix-patches@gnu.org; Fri, 21 Feb 2020 13:45:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.9 required=5.0 tests=BAYES_50, RAZOR2_CF_RANGE_51_100,RAZOR2_CHECK,RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5DII-0000Bg-Vd for guix-patches@gnu.org; Fri, 21 Feb 2020 13:45:02 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:53427) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j5DII-0000Ar-Hh for guix-patches@gnu.org; Fri, 21 Feb 2020 13:44:58 -0500 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 53CBB20005 for ; Fri, 21 Feb 2020 18:44:55 +0000 (UTC) From: Nicolas Goaziou Message-ID: <87o8treqe3.fsf@nicolasgoaziou.fr> Date: Fri, 21 Feb 2020 19:44:55 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.200 X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hello, I've been sitting on this patch for a few months now, but I'm stuck at this point. So, this package is about Parlatype. It compiles fine, but doesn't start, complaining about a missing Gstreamer dependency. As one can tell from the FIXME, I attempted to fix it without much success. I think fresh eyes are required. Thank you for any love you'll give to that package. Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-parlatype.patch Content-Description: Add Parlatype (WIP) >From 5ac3fda0fcc7ce24d6f0ce023f2ba3919c4100b2 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 21 Feb 2020 09:40:03 +0100 Subject: [PATCH] gnu: Add parlatype. * gnu/packages/speech.scm (sphinxbase, pocketsphinx, parlatype): New variables. --- gnu/packages/speech.scm | 121 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm index 21ad6f8928..44d3e3948d 100644 --- a/gnu/packages/speech.scm +++ b/gnu/packages/speech.scm @@ -28,18 +28,28 @@ #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system gnu) + #:use-module (guix build-system meson) #:use-module (gnu packages) #:use-module (gnu packages audio) #:use-module (gnu packages autotools) + #:use-module (gnu packages bison) #:use-module (gnu packages compression) + #:use-module (gnu packages documentation) #:use-module (gnu packages emacs) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages gcc) + #:use-module (gnu packages gettext) #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) + #:use-module (gnu packages gstreamer) + #:use-module (gnu packages gtk) #:use-module (gnu packages linux) #:use-module (gnu packages ncurses) + #: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 swig) #:use-module (gnu packages texinfo) #:use-module (gnu packages textutils)) @@ -461,3 +471,114 @@ The system is written in C++ and uses the Edinburgh Speech Tools Library for low level architecture and has a Scheme (SIOD) based command interpreter for control.") (license (license:non-copyleft "file://COPYING")))) + +(define-public sphinxbase + (package + (name "sphinxbase") + (version "5prealpha") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/cmusphinx/" + "sphinxbase/" version "/" + "sphinxbase-" version ".tar.gz")) + (sha256 + (base32 "0vr4k8pv5a8nvq9yja7kl13b5lh0f9vha8fc8znqnm8bwmcxnazp")))) + (build-system gnu-build-system) + (arguments + `(#:parallel-tests? #f)) ;tests fail otherwise + (native-inputs + `(("bison" ,bison) + ("doxygen" ,doxygen) + ("perl" ,perl) ;for tests + ("python" ,python))) + (inputs + `(("pulseaudio" ,pulseaudio) + ("swig" ,swig))) + (home-page "https://cmusphinx.github.io/") + (synopsis "Support library required by Pocketsphinx and Sphinxtrain") + (description "This package contains the basic libraries shared by +the CMU Sphinx trainer and all the Sphinx decoders (Sphinx-II, +Sphinx-III, and PocketSphinx), as well as some common utilities for +manipulating acoustic feature and audio files.") + (license license:bsd-4))) + +(define-public pocketsphinx + (package + (name "pocketsphinx") + (version "5prealpha") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/cmusphinx/" + "pocketsphinx/" version "/" + "pocketsphinx-" version ".tar.gz")) + (sha256 + (base32 "1n9yazzdgvpqgnfzsbl96ch9cirayh74jmpjf7svs4i7grabanzg")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("perl" ,perl) ;for tests + ("python" ,python))) + (inputs + `(("gstreamer" ,gstreamer) + ("libcap" ,libcap) + ("pulseaudio" ,pulseaudio) + ("sphinxbase" ,sphinxbase) + ("swig" ,swig))) + (home-page "https://cmusphinx.github.io/") + (synopsis "Recognizer library written in C") + (description "PocketSphinx is one of Carnegie Mellon University's +large vocabulary, speaker-independent continuous speech recognition +engine.") + (license license:bsd-2))) + +(define-public parlatype + (package + (name "parlatype") + (version "1.6.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gkarsay/parlatype.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nbn939cramizbyp2s57hmlb3hpr02i0az2f1z570mjc7jqgd8g8")))) + (build-system meson-build-system) + (arguments + `(#:tests? #f ;require internet access + #:configure-flags (list "-Dlibreoffice=false") + #:phases + (modify-phases %standard-phases + ;; FIXME: The following doesn't work; at runtime, parlatype + ;; executable cannot find gstreamer good plugin (playbin). + (add-after 'install 'wrap-parlatype + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))) + (wrap-program (string-append out "/bin/parlatype") + `("GST_PLUGIN_SYSTEM_PATH" ":" = (,gst-plugin-path)))) + #t))))) + (native-inputs + `(("appstream-glib" ,appstream-glib) + ("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate + ("gettext" ,gettext-minimal) + ("glib" ,glib "bin") ;for glib-compile-resources + ("pkg-config" ,pkg-config) + ("yelp-tools" ,yelp-tools))) + (inputs + `(("gst-plugins-base" ,gst-plugins-base) + ("gst-plugins-good" ,gst-plugins-good) + ("gstreamer" ,gstreamer) + ("gtk+" ,gtk+) + ("pocketsphinx" ,pocketsphinx) + ("pulseaudio" ,pulseaudio) + ("sphinxbase" ,sphinxbase))) + (home-page "http://gkarsay.github.io/parlatype/") + (synopsis "GNOME audio player for transcription") + (description "Parlatype is an audio player for the GNOME desktop +environment. Its main purpose is the manual transcription of spoken +audio files.") + (license license:gpl3+))) -- 2.25.0 --=-=-=-- From unknown Thu Sep 11 10:04:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#39721] [WIP PATCH] Parlatype (v2) Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Mar 2020 09:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39721 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39721@debbugs.gnu.org Received: via spool by 39721-submit@debbugs.gnu.org id=B39721.158469822225862 (code B ref 39721); Fri, 20 Mar 2020 09:58:02 +0000 Received: (at 39721) by debbugs.gnu.org; 20 Mar 2020 09:57:02 +0000 Received: from localhost ([127.0.0.1]:43989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFEOj-0006it-GS for submit@debbugs.gnu.org; Fri, 20 Mar 2020 05:57:02 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:38633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFEOh-0006iZ-Et for 39721@debbugs.gnu.org; Fri, 20 Mar 2020 05:57:00 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 9B8B020002 for <39721@debbugs.gnu.org>; Fri, 20 Mar 2020 09:56:52 +0000 (UTC) From: Nicolas Goaziou References: <87o8treqe3.fsf@nicolasgoaziou.fr> Date: Fri, 20 Mar 2020 10:56:51 +0100 In-Reply-To: <87o8treqe3.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 21 Feb 2020 19:44:55 +0100") Message-ID: <87lfnvbb8c.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Nicolas Goaziou writes: > I've been sitting on this patch for a few months now, but I'm stuck at > this point. > > So, this package is about Parlatype. It compiles fine, but doesn't > start, complaining about a missing Gstreamer dependency. As one can tell > from the FIXME, I attempted to fix it without much success. I think > fresh eyes are required. Gentle bump. I'm sending a rebased version of the patch. The executable complains that "parlasphinx" plugin is missing from the good gstreamer plugins. Yet, "libgstparlasphinx.so" is correctly installed in "$out/lib/gstreamer-1.0/". Any clue ? Thanks! --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-parlatype.patch Content-Description: WIP Parlatype (v2) >From f9bb2ed8fa47fae8d5b154fdd8cdf6d9176a26f0 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 21 Feb 2020 09:40:03 +0100 Subject: [PATCH] gnu: Add parlatype. * gnu/packages/speech.scm (sphinxbase, pocketsphinx, parlatype): New variables. --- gnu/packages/speech.scm | 121 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm index 5fdf2cdbd8..1fbdd5d501 100644 --- a/gnu/packages/speech.scm +++ b/gnu/packages/speech.scm @@ -28,19 +28,29 @@ #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system gnu) + #:use-module (guix build-system meson) #:use-module (gnu packages) #:use-module (gnu packages audio) #:use-module (gnu packages autotools) #:use-module (gnu packages base) ;for 'which' + #:use-module (gnu packages bison) #:use-module (gnu packages compression) + #:use-module (gnu packages documentation) #:use-module (gnu packages emacs) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages gcc) + #:use-module (gnu packages gettext) #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) + #:use-module (gnu packages gstreamer) + #:use-module (gnu packages gtk) #:use-module (gnu packages linux) #:use-module (gnu packages ncurses) + #: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 swig) #:use-module (gnu packages texinfo) #:use-module (gnu packages textutils)) @@ -471,3 +481,114 @@ The system is written in C++ and uses the Edinburgh Speech Tools Library for low level architecture and has a Scheme (SIOD) based command interpreter for control.") (license (license:non-copyleft "file://COPYING")))) + +(define-public sphinxbase + (package + (name "sphinxbase") + (version "5prealpha") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/cmusphinx/" + "sphinxbase/" version "/" + "sphinxbase-" version ".tar.gz")) + (sha256 + (base32 "0vr4k8pv5a8nvq9yja7kl13b5lh0f9vha8fc8znqnm8bwmcxnazp")))) + (build-system gnu-build-system) + (arguments + `(#:parallel-tests? #f)) ;tests fail otherwise + (native-inputs + `(("bison" ,bison) + ("doxygen" ,doxygen) + ("perl" ,perl) ;for tests + ("python" ,python))) + (inputs + `(("pulseaudio" ,pulseaudio) + ("swig" ,swig))) + (home-page "https://cmusphinx.github.io/") + (synopsis "Support library required by Pocketsphinx and Sphinxtrain") + (description "This package contains the basic libraries shared by +the CMU Sphinx trainer and all the Sphinx decoders (Sphinx-II, +Sphinx-III, and PocketSphinx), as well as some common utilities for +manipulating acoustic feature and audio files.") + (license license:bsd-4))) + +(define-public pocketsphinx + (package + (name "pocketsphinx") + (version "5prealpha") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/cmusphinx/" + "pocketsphinx/" version "/" + "pocketsphinx-" version ".tar.gz")) + (sha256 + (base32 "1n9yazzdgvpqgnfzsbl96ch9cirayh74jmpjf7svs4i7grabanzg")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("perl" ,perl) ;for tests + ("python" ,python))) + (inputs + `(("gstreamer" ,gstreamer) + ("libcap" ,libcap) + ("pulseaudio" ,pulseaudio) + ("sphinxbase" ,sphinxbase) + ("swig" ,swig))) + (home-page "https://cmusphinx.github.io/") + (synopsis "Recognizer library written in C") + (description "PocketSphinx is one of Carnegie Mellon University's +large vocabulary, speaker-independent continuous speech recognition +engine.") + (license license:bsd-2))) + +(define-public parlatype + (package + (name "parlatype") + (version "1.6.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gkarsay/parlatype.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nbn939cramizbyp2s57hmlb3hpr02i0az2f1z570mjc7jqgd8g8")))) + (build-system meson-build-system) + (arguments + `(#:tests? #f ;require internet access + #:configure-flags (list "-Dlibreoffice=false") + #:phases + (modify-phases %standard-phases + ;; FIXME: The following doesn't work; at runtime, parlatype cannot + ;; find gstreamer good plugin (parlasphinx). + (add-after 'install 'wrap-parlatype + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))) + (wrap-program (string-append out "/bin/parlatype") + `("GST_PLUGIN_SYSTEM_PATH" ":" = (,gst-plugin-path)))) + #t))))) + (native-inputs + `(("appstream-glib" ,appstream-glib) + ("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate + ("gettext" ,gettext-minimal) + ("glib" ,glib "bin") ;for glib-compile-resources + ("pkg-config" ,pkg-config) + ("yelp-tools" ,yelp-tools))) + (inputs + `(("gst-plugins-base" ,gst-plugins-base) + ("gst-plugins-good" ,gst-plugins-good) + ("gstreamer" ,gstreamer) + ("gtk+" ,gtk+) + ("pocketsphinx" ,pocketsphinx) + ("pulseaudio" ,pulseaudio) + ("sphinxbase" ,sphinxbase))) + (home-page "http://gkarsay.github.io/parlatype/") + (synopsis "GNOME audio player for transcription") + (description "Parlatype is an audio player for the GNOME desktop +environment. Its main purpose is the manual transcription of spoken +audio files.") + (license license:gpl3+))) -- 2.25.1 --=-=-=-- From unknown Thu Sep 11 10:04:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#39721] [WIP PATCH] Parlatype (v2) Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 20 Mar 2020 16:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39721 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Goaziou , 39721@debbugs.gnu.org Received: via spool by 39721-submit@debbugs.gnu.org id=B39721.15847220681551 (code B ref 39721); Fri, 20 Mar 2020 16:35:02 +0000 Received: (at 39721) by debbugs.gnu.org; 20 Mar 2020 16:34:28 +0000 Received: from localhost ([127.0.0.1]:45430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFKbL-0000Ox-Vr for submit@debbugs.gnu.org; Fri, 20 Mar 2020 12:34:28 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:33765) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFKbK-0000Oc-7K for 39721@debbugs.gnu.org; Fri, 20 Mar 2020 12:34:26 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2332E5C0219; Fri, 20 Mar 2020 12:34:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 20 Mar 2020 12:34:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=wil+BCga7ysS51y2anTUC3sarp 5dPJTdR0zFSOv2MO8=; b=Bf9alLV4LgSchKNXBosWSAlHOoPIkMdxOScjOFikqq ORLoS/5BrGIMgFy3XBkHhjC7eoLvDJd6/SOPAxBfrCuLhC6zey3JHiTFEYjBfO9V ChVW03YEu4GVgDyXbA9LP8KZdjBSBAlhkHjjrLF9SDkTcoaGEe2DJ3aAwNvw6z/Y CuVoZoM3R1ylozOGbi9YYGleOGhz0jaGYKOfn9ou5ivNjoYZwvbbHFe7t8PSciAc HXlOO7rhWGGjmopAIMokuZwBvn8EYLOQXajdj1RnIjqn87/p2TRu0ZTgZrMs6K1/ geemtGkkWtp2jTJVvW9U/gEhjKDIt9rHs2O/U61jPAEQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=wil+BC ga7ysS51y2anTUC3sarp5dPJTdR0zFSOv2MO8=; b=3TZF2f1c6LPnCuM0r4uU/E 8b/0aJeeCrKQDZHdw2M4jfSYxqJyuLGTDrLVMIxgTd9HR5x/O9wx3p0H8LsUHDNK Hkz+NxY4M8LUeCja8ZN1B6paASWZM12GzVuqh9kp1jLQUKwrhj0J3Be/h9KC9SqV l/x3oD9VorpnnzMyj/W9k8dm38YbJOFxnypVbup2wtgxKeEUjIDKXvPfY0+NwVlA iv1EtBZRn7QQNoRq6DfeVFRz6F9+cwjt2HimYxHY6K6B8PzRdV4pL9bcK8G+blS4 Qy1uMItmj93U0BgHcwEPnqdMaIBcLOlD+iEqgvE3wyav7K2i/NQvp8zFfsF0ws8w == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeguddgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffujghffgffkfggtgesghdtre ertdertdenucfhrhhomhepofgrrhhiuhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghs thhmrghilhdrtghomheqnecukfhppeekgedrvddtvddrieekrdejheenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmsggrkhhkvgesfhgrshht mhgrihhlrdgtohhm X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 97B1F3060FE7; Fri, 20 Mar 2020 12:34:19 -0400 (EDT) From: Marius Bakke In-Reply-To: <87lfnvbb8c.fsf@nicolasgoaziou.fr> References: <87o8treqe3.fsf@nicolasgoaziou.fr> <87lfnvbb8c.fsf@nicolasgoaziou.fr> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Fri, 20 Mar 2020 17:34:17 +0100 Message-ID: <87zhcb7zp2.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: > Nicolas Goaziou writes: > >> I've been sitting on this patch for a few months now, but I'm stuck at >> this point.=20 >> >> So, this package is about Parlatype. It compiles fine, but doesn't >> start, complaining about a missing Gstreamer dependency. As one can tell >> from the FIXME, I attempted to fix it without much success. I think >> fresh eyes are required. > > Gentle bump. > > I'm sending a rebased version of the patch. > > The executable complains that "parlasphinx" plugin is missing from the > good gstreamer plugins. Yet, "libgstparlasphinx.so" is correctly > installed in "$out/lib/gstreamer-1.0/". > > Any clue ? Maybe you need to add $out/lib/gstreamer-1.0 to the wrapped GST_PLUGIN_SYSTEM_PATH variable. Currently it will only get wrapped with the gstreamer plugins added as inputs, and not itself, IIUC. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl508IkACgkQoqBt8qM6 VPoMqgf9FLTerZB+IXNts83tIp8rQVfijQwGksBRnC168C7tqsJM72tf72nKjtAp twyzKHtnpkS23iiaCRoogR1SFR1vDr779FzKweUByXhY4GiVf9aN4ikn77PHpkT8 V+Tz5fgqozQIpD9ZZV2Xo+zYbeCJUYWSU2BM0Ot7IftR69+wv+1RzXzNPId5OtWi /edBaLF+FQlG4RCVs0Vt0Wt0OVVtgGL7Ra+LPwAS/YCbOi41vfrPITwD5fYjsIYC +eaqaoF7kltuw4jZ0sD/j7W6UWlc1J+BShICyFZfRKlpA+Gq+cKz7RkTpNJbL0sv Qs6j8IbZpCfhIhaL2jnzTHgxJbP+LA== =cni7 -----END PGP SIGNATURE----- --=-=-=-- From unknown Thu Sep 11 10:04:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#39721] [PATCH] Parlatype (v3) (was: Re: [WIP PATCH] Parlatype (v2)) Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 21 Mar 2020 16:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39721 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Marius Bakke Cc: 39721@debbugs.gnu.org Received: via spool by 39721-submit@debbugs.gnu.org id=B39721.158480847525769 (code B ref 39721); Sat, 21 Mar 2020 16:35:01 +0000 Received: (at 39721) by debbugs.gnu.org; 21 Mar 2020 16:34:35 +0000 Received: from localhost ([127.0.0.1]:47861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFh4w-0006hU-LF for submit@debbugs.gnu.org; Sat, 21 Mar 2020 12:34:35 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:59373) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFh4s-0006h8-8u for 39721@debbugs.gnu.org; Sat, 21 Mar 2020 12:34:28 -0400 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay12.mail.gandi.net (Postfix) with ESMTPSA id E0836200003; Sat, 21 Mar 2020 16:34:18 +0000 (UTC) From: Nicolas Goaziou References: <87o8treqe3.fsf@nicolasgoaziou.fr> <87lfnvbb8c.fsf@nicolasgoaziou.fr> <87zhcb7zp2.fsf@devup.no> Date: Sat, 21 Mar 2020 17:34:17 +0100 In-Reply-To: <87zhcb7zp2.fsf@devup.no> (Marius Bakke's message of "Fri, 20 Mar 2020 17:34:17 +0100") Message-ID: <87k13d8y5y.fsf_-_@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hello, Marius Bakke writes: > Maybe you need to add $out/lib/gstreamer-1.0 to the wrapped > GST_PLUGIN_SYSTEM_PATH variable. Currently it will only get wrapped > with the gstreamer plugins added as inputs, and not itself, IIUC. That was it. Thank you! Here are the patches, now for real submission. I'm not sure about the location for parlatype. I added it to "speech.scm" because it is mainly used for audio transcription, but it can read any audio file. It has apparently some video support, too, but I didn't try (and it may be missing some plugins). Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-sphinxbase.patch Content-Transfer-Encoding: quoted-printable Content-Description: Add sphinxbase >From 3e0151bbc9ad3171371142c9b793f48cc7583979 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 21 Mar 2020 14:17:52 +0100 Subject: [PATCH 1/3] gnu: Add sphinxbase. * gnu/packages/speech.scm (sphinxbase): 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 5fdf2cdbd8..41010cb1dc 100644 --- a/gnu/packages/speech.scm +++ b/gnu/packages/speech.scm @@ -5,6 +5,7 @@ ;;; Copyright =C2=A9 2018 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2016 Kei Kebreau ;;; Copyright =C2=A9 2019 Ricardo Wurmus +;;; Copyright =C2=A9 2020 Nicolas Goaziou ;;; ;;; This file is part of GNU Guix. ;;; @@ -32,15 +33,19 @@ #:use-module (gnu packages audio) #:use-module (gnu packages autotools) #:use-module (gnu packages base) ;for 'which' + #:use-module (gnu packages bison) #:use-module (gnu packages compression) + #:use-module (gnu packages documentation) #:use-module (gnu packages emacs) #:use-module (gnu packages gcc) #:use-module (gnu packages glib) #:use-module (gnu packages linux) #:use-module (gnu packages ncurses) + #: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 swig) #:use-module (gnu packages texinfo) #:use-module (gnu packages textutils)) =20 @@ -471,3 +476,34 @@ The system is written in C++ and uses the Edinburgh Sp= eech Tools Library for low level architecture and has a Scheme (SIOD) based command interpreter f= or control.") (license (license:non-copyleft "file://COPYING")))) + +(define-public sphinxbase + (package + (name "sphinxbase") + (version "5prealpha") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/cmusphinx/" + "sphinxbase/" version "/" + "sphinxbase-" version ".tar.gz")) + (sha256 + (base32 "0vr4k8pv5a8nvq9yja7kl13b5lh0f9vha8fc8znqnm8bwmcxnazp")))) + (build-system gnu-build-system) + (arguments + `(#:parallel-tests? #f)) ;tests fail otherwise + (native-inputs + `(("bison" ,bison) + ("doxygen" ,doxygen) + ("perl" ,perl) ;for tests + ("python" ,python) + ("swig" ,swig))) + (inputs + `(("pulseaudio" ,pulseaudio))) + (home-page "https://cmusphinx.github.io/") + (synopsis "Support library required by Pocketsphinx and Sphinxtrain") + (description "This package contains the basic libraries shared by +the CMU Sphinx trainer and all the Sphinx decoders (Sphinx-II, +Sphinx-III, and PocketSphinx), as well as some common utilities for +manipulating acoustic feature and audio files.") + (license license:bsd-4))) --=20 2.25.1 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0002-gnu-Add-pocketsphinx.patch Content-Description: Add pocketsphinx >From c413571972b51c97c5432f0428b64f492adb4ff1 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 21 Mar 2020 15:59:01 +0100 Subject: [PATCH 2/3] gnu: Add pocketsphinx. * gnu/packages/speech.scm (pocketsphinx): New variable. --- gnu/packages/speech.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm index 41010cb1dc..8ee6fbfdc4 100644 --- a/gnu/packages/speech.scm +++ b/gnu/packages/speech.scm @@ -39,6 +39,7 @@ #:use-module (gnu packages emacs) #:use-module (gnu packages gcc) #:use-module (gnu packages glib) + #:use-module (gnu packages gstreamer) #:use-module (gnu packages linux) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) @@ -507,3 +508,33 @@ the CMU Sphinx trainer and all the Sphinx decoders (Sphinx-II, Sphinx-III, and PocketSphinx), as well as some common utilities for manipulating acoustic feature and audio files.") (license license:bsd-4))) + +(define-public pocketsphinx + (package + (name "pocketsphinx") + (version "5prealpha") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/cmusphinx/" + "pocketsphinx/" version "/" + "pocketsphinx-" version ".tar.gz")) + (sha256 + (base32 "1n9yazzdgvpqgnfzsbl96ch9cirayh74jmpjf7svs4i7grabanzg")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("perl" ,perl) ;for tests + ("python" ,python) + ("swig" ,swig))) + (inputs + `(("gstreamer" ,gstreamer) + ("libcap" ,libcap) + ("pulseaudio" ,pulseaudio) + ("sphinxbase" ,sphinxbase))) + (home-page "https://cmusphinx.github.io/") + (synopsis "Recognizer library written in C") + (description "PocketSphinx is one of Carnegie Mellon University's +large vocabulary, speaker-independent continuous speech recognition +engine.") + (license license:bsd-2))) -- 2.25.1 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0003-gnu-Add-parlatype.patch Content-Description: Add parlatype >From 9e6789d0b075d8881c6e10f2fb56d7bc56cd0907 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 21 Mar 2020 17:19:15 +0100 Subject: [PATCH 3/3] gnu: Add parlatype. * gnu/packages/speech.scm (parlatype): New variable. --- gnu/packages/speech.scm | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm index 8ee6fbfdc4..64616d1484 100644 --- a/gnu/packages/speech.scm +++ b/gnu/packages/speech.scm @@ -29,6 +29,7 @@ #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system gnu) + #:use-module (guix build-system meson) #:use-module (gnu packages) #:use-module (gnu packages audio) #:use-module (gnu packages autotools) @@ -37,9 +38,13 @@ #:use-module (gnu packages compression) #:use-module (gnu packages documentation) #:use-module (gnu packages emacs) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages gcc) + #:use-module (gnu packages gettext) #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) #:use-module (gnu packages gstreamer) + #:use-module (gnu packages gtk) #:use-module (gnu packages linux) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) @@ -538,3 +543,60 @@ manipulating acoustic feature and audio files.") large vocabulary, speaker-independent continuous speech recognition engine.") (license license:bsd-2))) + +(define-public parlatype + ;; This is one commit away from 2.0, because the latter introduced + ;; a regression in ASR. + (let ((commit "7d22ead13ef7578f99d24146663cc1bdb7d8c2a9") + (revision "1")) + (package + (name "parlatype") + (version (git-version "2.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gkarsay/parlatype.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0r3k3qczbzi7bs5s1rddhpsnadyr805df40bqkx0srlxgh5mfghf")))) + (build-system meson-build-system) + (arguments + `(#:glib-or-gtk? #t + #:tests? #f ;require internet access + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-parlatype + ;; Add gstreamer plugin provided in this packages to system's + ;; plugins. + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (gst-plugin-path (string-append + out "/lib/gstreamer-1.0/" + ":" + (getenv "GST_PLUGIN_SYSTEM_PATH")))) + (wrap-program (string-append out "/bin/parlatype") + `("GST_PLUGIN_SYSTEM_PATH" ":" = (,gst-plugin-path)))) + #t))))) + (native-inputs + `(("appstream-glib" ,appstream-glib) + ("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate + ("gettext" ,gettext-minimal) + ("glib" ,glib "bin") ;for glib-compile-resources + ("pkg-config" ,pkg-config) + ("yelp-tools" ,yelp-tools))) + (inputs + `(("gst-plugins-base" ,gst-plugins-base) + ("gst-plugins-good" ,gst-plugins-good) + ("gstreamer" ,gstreamer) + ("gtk+" ,gtk+) + ("pocketsphinx" ,pocketsphinx) + ("pulseaudio" ,pulseaudio) + ("sphinxbase" ,sphinxbase))) + (home-page "http://gkarsay.github.io/parlatype/") + (synopsis "GNOME audio player for transcription") + (description "Parlatype is an audio player for the GNOME desktop +environment. Its main purpose is the manual transcription of spoken +audio files.") + (license license:gpl3+)))) -- 2.25.1 --=-=-=-- From unknown Thu Sep 11 10:04:24 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#39721] [PATCH] Parlatype (v3) (was: Re: [WIP PATCH] Parlatype (v2)) Resent-From: Marius Bakke Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Mar 2020 18:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39721 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Goaziou Cc: 39721@debbugs.gnu.org Received: via spool by 39721-submit@debbugs.gnu.org id=B39721.158550814626187 (code B ref 39721); Sun, 29 Mar 2020 18:56:02 +0000 Received: (at 39721) by debbugs.gnu.org; 29 Mar 2020 18:55:46 +0000 Received: from localhost ([127.0.0.1]:59773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jId62-0006oJ-7N for submit@debbugs.gnu.org; Sun, 29 Mar 2020 14:55:46 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:46275) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jId60-0006o5-4I for 39721@debbugs.gnu.org; Sun, 29 Mar 2020 14:55:44 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id D9B40898; Sun, 29 Mar 2020 14:55:37 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 29 Mar 2020 14:55:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=8t/6i9fR90CW4NAiI6oyiIK6Ec U66m5cyKQEpbVR070=; b=C3MlLmgy8zbFG7ExF2jkKDVQwL8Bc7J2H/pfUPlsB6 Iw4yp0zrvbFSxdlxjENTA6SGID1zNHbuJqaeDVGA3IkPmRDCGOJ9vChkXBu5Q1NA yNX5UiAzHOBI3E3Qt2f5qHWRa80qJ4QfwtWEXKrkWkN/s5VKZg678pXbR+DZB31J TcqJmLMBFl2SKDC2xLMdtmacGcdWZGAzzmAb7k2f0GQAhlUbTFck/FXKe2UP+pu+ 7nYTkmYJ5kLPUUwToae0zh7BZ3EBxDRehCl70Dmh7u0uRfH+tLmN6f/JlBHXN/Wn B8GHAenXBr5oAfYx7kyyENozeIZMfRhrUQ8oiQre9veg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=8t/6i9 fR90CW4NAiI6oyiIK6EcU66m5cyKQEpbVR070=; b=37SFiqAvdgu+Q0WNPDdyFr MwM0qK4VcQHdRLWStk7Yqg/HAFn0gz9OJ+kkj/HZO44rsjReYItb8xbRwYkd819X 3dnK9gcg815hBwd0zcNS+8FQBjXgXU/fS6mM5rVqhwMK+8/QsfQcub0qvOEWoqER lcmapKTk4d1vCeM12g1Jm2qZKkeQ7O91qcsMN0opAsmoQ9wP4VSnLI8EqQXmIiYx ud3V75axpeVsO6DIQDqq1oFTinZC8SGc0zRQJem/rMdso3sdcnt8/oimWtMSFEdy ime/SnvepSuWViGPVpDUL74t3pl65v4XCYwd8oPLIalZIRLAlooOShqKBIMVXhGA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudeifedgudefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufgjfhgffffkgggtsehgtd erredtredtnecuhfhrohhmpeforghrihhushcuuegrkhhkvgcuoehmsggrkhhkvgesfhgr shhtmhgrihhlrdgtohhmqeenucfkphepkeegrddvtddvrdeikedrjeehnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsrghkkhgvsehfrghs thhmrghilhdrtghomh X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id DC2463280064; Sun, 29 Mar 2020 14:55:36 -0400 (EDT) From: Marius Bakke In-Reply-To: <87k13d8y5y.fsf_-_@nicolasgoaziou.fr> References: <87o8treqe3.fsf@nicolasgoaziou.fr> <87lfnvbb8c.fsf@nicolasgoaziou.fr> <87zhcb7zp2.fsf@devup.no> <87k13d8y5y.fsf_-_@nicolasgoaziou.fr> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Sun, 29 Mar 2020 20:55:34 +0200 Message-ID: <87sghrxa6x.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain Nicolas Goaziou writes: > Hello, > > Marius Bakke writes: > >> Maybe you need to add $out/lib/gstreamer-1.0 to the wrapped >> GST_PLUGIN_SYSTEM_PATH variable. Currently it will only get wrapped >> with the gstreamer plugins added as inputs, and not itself, IIUC. > > That was it. Thank you! > > Here are the patches, now for real submission. > > I'm not sure about the location for parlatype. I added it to > "speech.scm" because it is mainly used for audio transcription, but it > can read any audio file. It has apparently some video support, too, but > I didn't try (and it may be missing some plugins). The patches LGTM. Perhaps Parlatype fits in gnome.scm? That way we don't have to include that module in speech.scm. Thanks! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6A7yYACgkQoqBt8qM6 VPrQiQgAl0R9z5RvvO9MU33xtC7Ddszy5z83V77bftlQVoTA3PkkC/edMqX0BBlS pxH2A/D0PMpP4xDBgBRtelBW1QdcmcfID0q51blInjHM9Iul++EXhSduq4WDStCk 7Ud6nXpb6sQDaxXoPr40C3iDIs7gjnZst1++cGiN3Tvt3I0cQf0K98ru8WziVsJ7 a/QTKATW0LFdJfl30DTT1022RIkCat44MuatN0WtxwKMsapFUikAKNIIJCsmtRtR AsiVqMbJPxZ1eeuEfFSR0dLBopSCg+FPemLYDUgfal9XzUffx+g6IxYB0YlYJNCP aOyvYRKiP+v9Oll+SA24WhwUQCFF+g== =q0G2 -----END PGP SIGNATURE----- --=-=-=-- From unknown Thu Sep 11 10:04:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nicolas Goaziou Subject: bug#39721: closed (Re: [bug#39721] [PATCH] Parlatype (v3)) Message-ID: References: <87d08uc2pm.fsf@nicolasgoaziou.fr> <87o8treqe3.fsf@nicolasgoaziou.fr> X-Gnu-PR-Message: they-closed 39721 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 39721@debbugs.gnu.org Date: Sun, 29 Mar 2020 20:43:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1585514582-13552-1" This is a multi-part message in MIME format... ------------=_1585514582-13552-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #39721: [WIP PATCH] Parlatype which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 39721@debbugs.gnu.org. --=20 39721: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D39721 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1585514582-13552-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 39721-done) by debbugs.gnu.org; 29 Mar 2020 20:42:56 +0000 Received: from localhost ([127.0.0.1]:60004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIelj-0003WD-Sa for submit@debbugs.gnu.org; Sun, 29 Mar 2020 16:42:56 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:43639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIelh-0003Vx-AN for 39721-done@debbugs.gnu.org; Sun, 29 Mar 2020 16:42:54 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 3FCE0FF803; Sun, 29 Mar 2020 20:42:46 +0000 (UTC) From: Nicolas Goaziou To: Marius Bakke Subject: Re: [bug#39721] [PATCH] Parlatype (v3) References: <87o8treqe3.fsf@nicolasgoaziou.fr> <87lfnvbb8c.fsf@nicolasgoaziou.fr> <87zhcb7zp2.fsf@devup.no> <87k13d8y5y.fsf_-_@nicolasgoaziou.fr> <87sghrxa6x.fsf@devup.no> Date: Sun, 29 Mar 2020 22:42:45 +0200 In-Reply-To: <87sghrxa6x.fsf@devup.no> (Marius Bakke's message of "Sun, 29 Mar 2020 20:55:34 +0200") Message-ID: <87d08uc2pm.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39721-done Cc: 39721-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Marius Bakke writes: > The patches LGTM. Perhaps Parlatype fits in gnome.scm? That way we > don't have to include that module in speech.scm. Fair enough. I applied the three patches as 337fc72228df2b01f024c1276703ea4369cee37d, 9e9dd4098f7a2de658625a0e803d4955ce6ba8fd and 1a17d21b24f56a02282821fc04cca54637d84170. Thank you! Regards, -- Nicolas Goaziou ------------=_1585514582-13552-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Feb 2020 18:45:08 +0000 Received: from localhost ([127.0.0.1]:48108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5DIR-0008DK-Sm for submit@debbugs.gnu.org; Fri, 21 Feb 2020 13:45:08 -0500 Received: from lists.gnu.org ([209.51.188.17]:47666) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5DIO-0008D7-Rv for submit@debbugs.gnu.org; Fri, 21 Feb 2020 13:45:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51699) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5DIM-0004KC-Vg for guix-patches@gnu.org; Fri, 21 Feb 2020 13:45:04 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.9 required=5.0 tests=BAYES_50, RAZOR2_CF_RANGE_51_100,RAZOR2_CHECK,RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5DII-0000Bg-Vd for guix-patches@gnu.org; Fri, 21 Feb 2020 13:45:02 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:53427) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j5DII-0000Ar-Hh for guix-patches@gnu.org; Fri, 21 Feb 2020 13:44:58 -0500 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 53CBB20005 for ; Fri, 21 Feb 2020 18:44:55 +0000 (UTC) From: Nicolas Goaziou To: guix-patches@gnu.org Subject: [WIP PATCH] Parlatype Message-ID: <87o8treqe3.fsf@nicolasgoaziou.fr> Date: Fri, 21 Feb 2020 19:44:55 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.200 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Hello, I've been sitting on this patch for a few months now, but I'm stuck at this point. So, this package is about Parlatype. It compiles fine, but doesn't start, complaining about a missing Gstreamer dependency. As one can tell from the FIXME, I attempted to fix it without much success. I think fresh eyes are required. Thank you for any love you'll give to that package. Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-parlatype.patch Content-Description: Add Parlatype (WIP) >From 5ac3fda0fcc7ce24d6f0ce023f2ba3919c4100b2 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 21 Feb 2020 09:40:03 +0100 Subject: [PATCH] gnu: Add parlatype. * gnu/packages/speech.scm (sphinxbase, pocketsphinx, parlatype): New variables. --- gnu/packages/speech.scm | 121 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) diff --git a/gnu/packages/speech.scm b/gnu/packages/speech.scm index 21ad6f8928..44d3e3948d 100644 --- a/gnu/packages/speech.scm +++ b/gnu/packages/speech.scm @@ -28,18 +28,28 @@ #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix build-system gnu) + #:use-module (guix build-system meson) #:use-module (gnu packages) #:use-module (gnu packages audio) #:use-module (gnu packages autotools) + #:use-module (gnu packages bison) #:use-module (gnu packages compression) + #:use-module (gnu packages documentation) #:use-module (gnu packages emacs) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages gcc) + #:use-module (gnu packages gettext) #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) + #:use-module (gnu packages gstreamer) + #:use-module (gnu packages gtk) #:use-module (gnu packages linux) #:use-module (gnu packages ncurses) + #: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 swig) #:use-module (gnu packages texinfo) #:use-module (gnu packages textutils)) @@ -461,3 +471,114 @@ The system is written in C++ and uses the Edinburgh Speech Tools Library for low level architecture and has a Scheme (SIOD) based command interpreter for control.") (license (license:non-copyleft "file://COPYING")))) + +(define-public sphinxbase + (package + (name "sphinxbase") + (version "5prealpha") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/cmusphinx/" + "sphinxbase/" version "/" + "sphinxbase-" version ".tar.gz")) + (sha256 + (base32 "0vr4k8pv5a8nvq9yja7kl13b5lh0f9vha8fc8znqnm8bwmcxnazp")))) + (build-system gnu-build-system) + (arguments + `(#:parallel-tests? #f)) ;tests fail otherwise + (native-inputs + `(("bison" ,bison) + ("doxygen" ,doxygen) + ("perl" ,perl) ;for tests + ("python" ,python))) + (inputs + `(("pulseaudio" ,pulseaudio) + ("swig" ,swig))) + (home-page "https://cmusphinx.github.io/") + (synopsis "Support library required by Pocketsphinx and Sphinxtrain") + (description "This package contains the basic libraries shared by +the CMU Sphinx trainer and all the Sphinx decoders (Sphinx-II, +Sphinx-III, and PocketSphinx), as well as some common utilities for +manipulating acoustic feature and audio files.") + (license license:bsd-4))) + +(define-public pocketsphinx + (package + (name "pocketsphinx") + (version "5prealpha") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/cmusphinx/" + "pocketsphinx/" version "/" + "pocketsphinx-" version ".tar.gz")) + (sha256 + (base32 "1n9yazzdgvpqgnfzsbl96ch9cirayh74jmpjf7svs4i7grabanzg")))) + (build-system gnu-build-system) + (native-inputs + `(("pkg-config" ,pkg-config) + ("perl" ,perl) ;for tests + ("python" ,python))) + (inputs + `(("gstreamer" ,gstreamer) + ("libcap" ,libcap) + ("pulseaudio" ,pulseaudio) + ("sphinxbase" ,sphinxbase) + ("swig" ,swig))) + (home-page "https://cmusphinx.github.io/") + (synopsis "Recognizer library written in C") + (description "PocketSphinx is one of Carnegie Mellon University's +large vocabulary, speaker-independent continuous speech recognition +engine.") + (license license:bsd-2))) + +(define-public parlatype + (package + (name "parlatype") + (version "1.6.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gkarsay/parlatype.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1nbn939cramizbyp2s57hmlb3hpr02i0az2f1z570mjc7jqgd8g8")))) + (build-system meson-build-system) + (arguments + `(#:tests? #f ;require internet access + #:configure-flags (list "-Dlibreoffice=false") + #:phases + (modify-phases %standard-phases + ;; FIXME: The following doesn't work; at runtime, parlatype + ;; executable cannot find gstreamer good plugin (playbin). + (add-after 'install 'wrap-parlatype + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH"))) + (wrap-program (string-append out "/bin/parlatype") + `("GST_PLUGIN_SYSTEM_PATH" ":" = (,gst-plugin-path)))) + #t))))) + (native-inputs + `(("appstream-glib" ,appstream-glib) + ("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate + ("gettext" ,gettext-minimal) + ("glib" ,glib "bin") ;for glib-compile-resources + ("pkg-config" ,pkg-config) + ("yelp-tools" ,yelp-tools))) + (inputs + `(("gst-plugins-base" ,gst-plugins-base) + ("gst-plugins-good" ,gst-plugins-good) + ("gstreamer" ,gstreamer) + ("gtk+" ,gtk+) + ("pocketsphinx" ,pocketsphinx) + ("pulseaudio" ,pulseaudio) + ("sphinxbase" ,sphinxbase))) + (home-page "http://gkarsay.github.io/parlatype/") + (synopsis "GNOME audio player for transcription") + (description "Parlatype is an audio player for the GNOME desktop +environment. Its main purpose is the manual transcription of spoken +audio files.") + (license license:gpl3+))) -- 2.25.0 --=-=-=-- ------------=_1585514582-13552-1--