From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MPFEDas1JV8degAA0tVLHw (envelope-from ) for ; Sat, 01 Aug 2020 09:28:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GIEcCas1JV/KVgAAB5/wlQ (envelope-from ) for ; Sat, 01 Aug 2020 09:28:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 855119409E6 for ; Sat, 1 Aug 2020 09:28:10 +0000 (UTC) Received: from localhost ([::1]:59888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k1noG-0007Kb-RE for larch@yhetil.org; Sat, 01 Aug 2020 05:28:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k1noA-0007KQ-Ox for guix-patches@gnu.org; Sat, 01 Aug 2020 05:28:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k1noA-0004Mi-Fe for guix-patches@gnu.org; Sat, 01 Aug 2020 05:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k1noA-00080n-BH for guix-patches@gnu.org; Sat, 01 Aug 2020 05:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42583] [PATCH 1/2] gnu: Add rnnoise. Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Aug 2020 09:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42583 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 42583@debbugs.gnu.org Received: via spool by 42583-submit@debbugs.gnu.org id=B42583.159627403530744 (code B ref 42583); Sat, 01 Aug 2020 09:28:02 +0000 Received: (at 42583) by debbugs.gnu.org; 1 Aug 2020 09:27:15 +0000 Received: from localhost ([127.0.0.1]:39168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k1nnP-0007zo-6O for submit@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 ) id 1k1nnM-0007zb-N7 for 42583@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@ambrevar.xyz) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 998CE1BF205; Sat, 1 Aug 2020 09:27:06 +0000 (UTC) From: Pierre Neidhardt In-Reply-To: <87d04aalbl.fsf@gnu.org> References: <20200728144524.4674-1-mail@ambrevar.xyz> <87d04aalbl.fsf@gnu.org> Date: Sat, 01 Aug 2020 11:27:05 +0200 Message-ID: <87wo2ivhqu.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.2 (/) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: vNbpeCD1/DKt --=-=-= 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 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 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 --=-=-=--