GNU bug report logs - #42583
[PATCH 1/2] gnu: Add rnnoise.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Pierre Neidhardt <mail@HIDDEN>; Keywords: patch; Done: Pierre Neidhardt <mail@HIDDEN>; Maintainer for guix-patches is guix-patches@HIDDEN.
bug closed, send any further explanations to 42583 <at> debbugs.gnu.org and Pierre Neidhardt <mail@HIDDEN> Request was from Pierre Neidhardt <mail@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 42583 <at> debbugs.gnu.org:


Received: (at 42583) by debbugs.gnu.org; 6 Aug 2020 16:54:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 06 12:54:43 2020
Received: from localhost ([127.0.0.1]:54854 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k3jAA-00089Y-So
	for submit <at> debbugs.gnu.org; Thu, 06 Aug 2020 12:54:43 -0400
Received: from relay8-d.mail.gandi.net ([217.70.183.201]:59315)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1k3jA7-00089K-Uq
 for 42583 <at> debbugs.gnu.org; Thu, 06 Aug 2020 12:54:41 -0400
X-Originating-IP: 86.246.37.13
Received: from bababa (lfbn-idf2-1-572-13.w86-246.abo.wanadoo.fr
 [86.246.37.13]) (Authenticated sender: mail@HIDDEN)
 by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id EE8CE1BF203;
 Thu,  6 Aug 2020 16:54:33 +0000 (UTC)
From: Pierre Neidhardt <mail@HIDDEN>
To: Mathieu Othacehe <othacehe@HIDDEN>
Subject: Re: [bug#42583] [PATCH 1/2] gnu: Add rnnoise.
In-Reply-To: <87y2mrubg4.fsf@HIDDEN>
References: <20200728144524.4674-1-mail@HIDDEN> <87d04aalbl.fsf@HIDDEN>
 <87wo2ivhqu.fsf@HIDDEN> <87y2mrubg4.fsf@HIDDEN>
Date: Thu, 06 Aug 2020 18:54:32 +0200
Message-ID: <87tuxf3ebb.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-Spam-Score: -0.2 (/)
X-Debbugs-Envelope-To: 42583
Cc: 42583 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Merged with 59b8daf2d2ec693467f299c06cb7f689a984a1d9.
Thanks for reviewing!

=2D-=20
Pierre Neidhardt
https://ambrevar.xyz/

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl8sNcgACgkQm9z0l6S7
zH88oAf/b3gjaK30aMhg5B2PAu21N8fMiPEYraf6d5e1b3+r2rdBFXL7al7f516P
mQkjdKYp6GGt43cY+M9WjnHojVpMb0nYYH2nlv36YXRb6Ax9Af12cyJ1oy37sj8d
ahzI2lEMeO71Z4yaOhX+zOFN+aMa9PW9VCx8cv0N5wX0By9yrAbUTEyhf2kQxYv/
eYOQRi7SMuZ9IUB11Zs0FhHVluerygTEUtUMXo7J3oSC4Fivi9NVIzESQQ6SE6ic
/bp2jWupp4iR+H47gwh2Hy43MBX/pet+bGjFi+N6k3qJ6kAY67Un/sG8iFG+VQe+
Jg9tX3e00y7WK/44PsvAnW7PygmmiQ==
=7+wN
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#42583; Package guix-patches. Full text available.

Message received at 42583 <at> debbugs.gnu.org:


Received: (at 42583) by debbugs.gnu.org; 6 Aug 2020 13:54:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 06 09:54:31 2020
Received: from localhost ([127.0.0.1]:53503 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k3gLn-0007ST-7b
	for submit <at> debbugs.gnu.org; Thu, 06 Aug 2020 09:54:31 -0400
Received: from eggs.gnu.org ([209.51.188.92]:45476)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <othacehe@HIDDEN>) id 1k3gLk-0007SC-AT
 for 42583 <at> debbugs.gnu.org; Thu, 06 Aug 2020 09:54:29 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:51199)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <othacehe@HIDDEN>)
 id 1k3gLf-0004mX-0K; Thu, 06 Aug 2020 09:54:23 -0400
Received: from lfbn-ann-1-356-169.w86-200.abo.wanadoo.fr
 ([86.200.73.169]:51142 helo=meru)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <othacehe@HIDDEN>)
 id 1k3gLe-0006Yy-G7; Thu, 06 Aug 2020 09:54:22 -0400
From: Mathieu Othacehe <othacehe@HIDDEN>
To: Pierre Neidhardt <mail@HIDDEN>
Subject: Re: [bug#42583] [PATCH 1/2] gnu: Add rnnoise.
References: <20200728144524.4674-1-mail@HIDDEN> <87d04aalbl.fsf@HIDDEN>
 <87wo2ivhqu.fsf@HIDDEN>
Date: Thu, 06 Aug 2020 15:54:19 +0200
In-Reply-To: <87wo2ivhqu.fsf@HIDDEN> (Pierre Neidhardt's message of
 "Sat, 01 Aug 2020 11:27:05 +0200")
Message-ID: <87y2mrubg4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 42583
Cc: 42583 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


Hey Pierre,

> +    (version "0.5.3-beta")

Looks like a 0.6.1-beta is out there.

Otherwise, looks fine!

Thanks,

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#42583; Package guix-patches. Full text available.

Message received at 42583 <at> debbugs.gnu.org:


Received: (at 42583) by debbugs.gnu.org; 1 Aug 2020 09:27:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 01 05:27:15 2020
Received: from localhost ([127.0.0.1]:39168 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k1nnP-0007zo-6O
	for submit <at> debbugs.gnu.org; Sat, 01 Aug 2020 05:27:15 -0400
Received: from relay8-d.mail.gandi.net ([217.70.183.201]:42787)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1k1nnM-0007zb-N7
 for 42583 <at> debbugs.gnu.org; Sat, 01 Aug 2020 05:27:13 -0400
X-Originating-IP: 86.246.37.13
Received: from mimimi (lfbn-idf2-1-572-13.w86-246.abo.wanadoo.fr
 [86.246.37.13]) (Authenticated sender: mail@HIDDEN)
 by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 998CE1BF205;
 Sat,  1 Aug 2020 09:27:06 +0000 (UTC)
From: Pierre Neidhardt <mail@HIDDEN>
To: Mathieu Othacehe <othacehe@HIDDEN>
Subject: Re: [bug#42583] [PATCH 1/2] gnu: Add rnnoise.
In-Reply-To: <87d04aalbl.fsf@HIDDEN>
References: <20200728144524.4674-1-mail@HIDDEN> <87d04aalbl.fsf@HIDDEN>
Date: Sat, 01 Aug 2020 11:27:05 +0200
Message-ID: <87wo2ivhqu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: -0.2 (/)
X-Debbugs-Envelope-To: 42583
Cc: 42583 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.2 (/)

--=-=-=
Content-Type: multipart/signed; boundary="==-=-=";
	micalg=pgp-sha256; protocol="application/pgp-signature"

--==-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi Mathieu,

Mathieu Othacehe <othacehe@HIDDEN> writes:

> Hey Pierre,
>
>> * gnu/packages/pulseaudio.scm (rnnoise): New variable.
>
> This patch is marked 1/2, is there a second part?

Part 2 got swallowed bit git send-email again :(
I'm attaching it here.

=2D-=20
Pierre Neidhardt
https://ambrevar.xyz/

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl8lNWkACgkQm9z0l6S7
zH9n2ggAnbN5KGKPXpTcCqkKttkhpZURXX0OZd8yDLuxAjLsMMiprOwueKdisPAD
A+v84LxQ+LLDfBcw/BV85yXhHLDKSJpgeNOnHB83ZzXMcW+ZIwZBOSRV5iXuZdO9
ejKWVI6ttP6YBk1hYvhncE0pYm/moNxqjKzPN74Au3ZNhkftmOwaXC+CtXqhtf4g
jLyAOYOKHSFjsvYzU6vKCVMrjM8Ay+55PVewajptNuJTb/CWvjxxAxrFlzMB0QZO
C7Q6zO+M3v16gE/Slb7fqBRGHp09tuu8wRbKHnlEQAj+Ifh5c8msLW+BalJkXI+/
lLVmc8QJOUN5lEvFDbUBtr9u5jvrTQ==
=by9j
-----END PGP SIGNATURE-----
--==-=-=--

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=0002-gnu-Add-noisetorch.patch

From 38e1053bf387e3d98e58a2972769fe7b826c3eff Mon Sep 17 00:00:00 2001
From: Pierre Neidhardt <mail@HIDDEN>
Date: Tue, 28 Jul 2020 16:44:31 +0200
Subject: [PATCH 2/2] gnu: Add noisetorch.

* gnu/packages/pulseaudio.scm (noisetorch): New variable.
---
 gnu/packages/pulseaudio.scm | 53 +++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/pulseaudio.scm b/gnu/packages/pulseaudio.scm
index e411cfa46c..abc457e96b 100644
--- a/gnu/packages/pulseaudio.scm
+++ b/gnu/packages/pulseaudio.scm
@@ -37,6 +37,7 @@
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system go)
   #:use-module (guix build-system python)
   #:use-module (gnu packages)
   #:use-module (gnu packages algebra)
@@ -503,3 +504,55 @@ however they are only reduced in volume when voice is present.
 The plugin is made to work with 1 or 2 channels (ladspa plugin),
 16 bit, 48000 Hz audio input.")
     (license l:gpl3)))
+
+(define-public noisetorch
+  (package
+    (name "noisetorch")
+    (version "0.5.3-beta")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/lawl/NoiseTorch")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1qs3laxggdwg5f3lxm1g29s9s2qn7yvlhlydqcava28a879vnxa5"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "github.com/lawl/NoiseTorch"
+       #:install-source? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'symlink-rnnoise
+           (lambda* (#:key inputs #:allow-other-keys)
+             (with-directory-excursion "src/github.com/lawl/NoiseTorch"
+               (let ((dir "librnnoise_ladspa/bin/ladspa")
+                     (rnnoise (assoc-ref inputs "rnnoise")))
+                 (mkdir-p dir)
+                 (symlink (string-append rnnoise "/lib/ladspa/librnnoise_ladspa.so")
+                          (string-append dir "/librnnoise_ladspa.so"))))
+             #t))
+         (add-after 'unpack 'gen-version.go
+           (lambda _
+             (with-directory-excursion "src/github.com/lawl/NoiseTorch"
+               (substitute* "main.go"
+                 (("//go:generate go run scripts/embedversion\\.go") ""))
+               (with-output-to-file "version.go"
+                 (lambda ()
+                   (format #t "package main~%~%var version=~s~&" ,version))))
+             #t))
+         (add-before 'build 'go-generate
+           (lambda _
+             (with-directory-excursion "src/github.com/lawl/NoiseTorch"
+               (invoke "go" "generate")))))))
+    (inputs
+     `(("rnnoise" ,rnnoise)))
+    (home-page "https://github.com/lawl/NoiseTorch")
+    (synopsis "Real-time microphone noise suppression")
+    (description "NoiseTorch creates a virtual PulseAudio microphone that
+suppresses noise, in any application.  Use whichever conferencing or VOIP
+application you like and simply select the NoiseTorch Virtual Microphone as
+input to torch the sound of your mechanical keyboard, computer fans, trains
+and the likes.")
+    (license l:gpl3)))
-- 
2.26.2


--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#42583; Package guix-patches. Full text available.

Message received at 42583 <at> debbugs.gnu.org:


Received: (at 42583) by debbugs.gnu.org; 1 Aug 2020 07:15:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Aug 01 03:15:39 2020
Received: from localhost ([127.0.0.1]:39073 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k1lk3-0004mT-4B
	for submit <at> debbugs.gnu.org; Sat, 01 Aug 2020 03:15:39 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33220)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <othacehe@HIDDEN>) id 1k1lk1-0004mF-B7
 for 42583 <at> debbugs.gnu.org; Sat, 01 Aug 2020 03:15:37 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:33229)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <othacehe@HIDDEN>)
 id 1k1lju-0006tK-RK; Sat, 01 Aug 2020 03:15:30 -0400
Received: from [2a01:cb18:832e:5f00:c08f:7d21:ea98:a1c5] (port=59070
 helo=cervin)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <othacehe@HIDDEN>)
 id 1k1ljt-0000CR-4H; Sat, 01 Aug 2020 03:15:30 -0400
From: Mathieu Othacehe <othacehe@HIDDEN>
To: Pierre Neidhardt <mail@HIDDEN>
Subject: Re: [bug#42583] [PATCH 1/2] gnu: Add rnnoise.
References: <20200728144524.4674-1-mail@HIDDEN>
Date: Sat, 01 Aug 2020 09:15:26 +0200
In-Reply-To: <20200728144524.4674-1-mail@HIDDEN> (Pierre Neidhardt's
 message of "Tue, 28 Jul 2020 16:45:24 +0200")
Message-ID: <87d04aalbl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 42583
Cc: 42583 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


Hey Pierre,

> * gnu/packages/pulseaudio.scm (rnnoise): New variable.

This patch is marked 1/2, is there a second part?

Otherwise this looks fine!

Thanks,

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#42583; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Jul 2020 14:45:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 28 10:45:53 2020
Received: from localhost ([127.0.0.1]:58778 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k0QrY-0002QV-Pz
	for submit <at> debbugs.gnu.org; Tue, 28 Jul 2020 10:45:53 -0400
Received: from lists.gnu.org ([209.51.188.17]:38448)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mail@HIDDEN>) id 1k0QrV-0002QK-Dg
 for submit <at> debbugs.gnu.org; Tue, 28 Jul 2020 10:45:51 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35044)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mail@HIDDEN>) id 1k0QrV-0007AG-5j
 for guix-patches@HIDDEN; Tue, 28 Jul 2020 10:45:49 -0400
Received: from relay5-d.mail.gandi.net ([217.70.183.197]:44171)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mail@HIDDEN>) id 1k0QrS-0003gD-Cf
 for guix-patches@HIDDEN; Tue, 28 Jul 2020 10:45:48 -0400
X-Originating-IP: 86.246.37.13
Received: from localhost.localdomain
 (lfbn-idf2-1-572-13.w86-246.abo.wanadoo.fr [86.246.37.13])
 (Authenticated sender: mail@HIDDEN)
 by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id B10971C0018
 for <guix-patches@HIDDEN>; Tue, 28 Jul 2020 14:45:41 +0000 (UTC)
From: Pierre Neidhardt <mail@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH 1/2] gnu: Add rnnoise.
Date: Tue, 28 Jul 2020 16:45:24 +0200
Message-Id: <20200728144524.4674-1-mail@HIDDEN>
X-Mailer: git-send-email 2.26.2
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=217.70.183.197; envelope-from=mail@HIDDEN;
 helo=relay5-d.mail.gandi.net
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/28 10:45:42
X-ACL-Warn: Detected OS   = Linux 3.11 and newer
X-Spam_score_int: -15
X-Spam_score: -1.6
X-Spam_bar: -
X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=1,
 FROM_SUSPICIOUS_NTLD_FP=1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

* gnu/packages/pulseaudio.scm (rnnoise): New variable.
---
 gnu/packages/pulseaudio.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/pulseaudio.scm b/gnu/packages/pulseaudio.scm
index 58c7e5bd7d..e411cfa46c 100644
--- a/gnu/packages/pulseaudio.scm
+++ b/gnu/packages/pulseaudio.scm
@@ -11,6 +11,7 @@
 ;;; Copyright © 2019 Alex Griffin <a@HIDDEN>
 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@HIDDEN>
 ;;; Copyright © 2020 Amin Bandali <bandali@HIDDEN>
+;;; Copyright © 2020 Pierre Neidhardt <mail@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -33,6 +34,7 @@
   #:use-module (guix git-download)
   #:use-module (guix utils)
   #:use-module ((guix licenses) #:prefix l:)
+  #:use-module (guix build-system cmake)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
@@ -468,3 +470,36 @@ volume levels of the sinks (get, set, decrease, increase, toggle mute, etc).")
 PulseAudio server settings from the X11 system tray.  See the project
 README.md for a detailed list of features.")
     (license l:lgpl2.1+)))
+
+(define-public rnnoise
+  (package
+    (name "rnnoise")
+    (version "0.9")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/werman/noise-suppression-for-voice")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "18bq5b50xw3d4r1ildinafpg3isb9y216430h4mm9wr3ir7h76a7"))))
+    (build-system cmake-build-system)
+    (arguments
+     ;; No tests.
+     '(#:tests? #f))
+    (inputs
+     `(;; TODO: Add VST to build the plugin.
+       ("pulseaudio" ,pulseaudio)))
+    (home-page "https://github.com/werman/noise-suppression-for-voice")
+    (synopsis "Real-time Noise suppression plugin based on Xiph's RNNoise")
+    (description "The plugin is meant to suppress a wide range of noise
+origins: computer fans, office, crowd, airplane, car, train, construction.
+
+Mild background noise is always suppressed, loud sounds, like
+clicking of mechanical keyboard, are suppressed while there is no voice
+however they are only reduced in volume when voice is present.
+
+The plugin is made to work with 1 or 2 channels (ladspa plugin),
+16 bit, 48000 Hz audio input.")
+    (license l:gpl3)))

base-commit: f2dc025edab09b2f1c6cdce521635d0f518134ee
-- 
2.26.2





Acknowledgement sent to Pierre Neidhardt <mail@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#42583; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 6 Aug 2020 17:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.