From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Mathieu Othacehe <othacehe@gnu.org>
Cc: 42583@debbugs.gnu.org
Subject: [bug#42583] [PATCH 1/2] gnu: Add rnnoise.
Date: Sat, 01 Aug 2020 11:27:05 +0200 [thread overview]
Message-ID: <87wo2ivhqu.fsf@ambrevar.xyz> (raw)
In-Reply-To: <87d04aalbl.fsf@gnu.org>
[-- Attachment #1.1: Type: text/plain, Size: 319 bytes --]
Hi Mathieu,
Mathieu Othacehe <othacehe@gnu.org> 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.
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-Add-noisetorch.patch --]
[-- Type: text/x-patch, Size: 3276 bytes --]
From 38e1053bf387e3d98e58a2972769fe7b826c3eff Mon Sep 17 00:00:00 2001
From: Pierre Neidhardt <mail@ambrevar.xyz>
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
next prev parent reply other threads:[~2020-08-01 9:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-28 14:45 [bug#42583] [PATCH 1/2] gnu: Add rnnoise Pierre Neidhardt
2020-08-01 7:15 ` Mathieu Othacehe
2020-08-01 9:27 ` Pierre Neidhardt [this message]
2020-08-06 13:54 ` Mathieu Othacehe
2020-08-06 16:54 ` Pierre Neidhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wo2ivhqu.fsf@ambrevar.xyz \
--to=mail@ambrevar.xyz \
--cc=42583@debbugs.gnu.org \
--cc=othacehe@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).