all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#42583] [PATCH 1/2] gnu: Add rnnoise.
@ 2020-07-28 14:45 Pierre Neidhardt
  2020-08-01  7:15 ` Mathieu Othacehe
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre Neidhardt @ 2020-07-28 14:45 UTC (permalink / raw)
  To: 42583

* 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@ajgrf.com>
 ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
 ;;; Copyright © 2020 Amin Bandali <bandali@gnu.org>
+;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
 ;;;
 ;;; 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





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#42583] [PATCH 1/2] gnu: Add rnnoise.
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Mathieu Othacehe @ 2020-08-01  7:15 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 42583


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




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#42583] [PATCH 1/2] gnu: Add rnnoise.
  2020-08-01  7:15 ` Mathieu Othacehe
@ 2020-08-01  9:27   ` Pierre Neidhardt
  2020-08-06 13:54     ` Mathieu Othacehe
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre Neidhardt @ 2020-08-01  9:27 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 42583


[-- 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#42583] [PATCH 1/2] gnu: Add rnnoise.
  2020-08-01  9:27   ` Pierre Neidhardt
@ 2020-08-06 13:54     ` Mathieu Othacehe
  2020-08-06 16:54       ` Pierre Neidhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Mathieu Othacehe @ 2020-08-06 13:54 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: 42583


Hey Pierre,

> +    (version "0.5.3-beta")

Looks like a 0.6.1-beta is out there.

Otherwise, looks fine!

Thanks,

Mathieu




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#42583] [PATCH 1/2] gnu: Add rnnoise.
  2020-08-06 13:54     ` Mathieu Othacehe
@ 2020-08-06 16:54       ` Pierre Neidhardt
  0 siblings, 0 replies; 5+ messages in thread
From: Pierre Neidhardt @ 2020-08-06 16:54 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 42583

[-- Attachment #1: Type: text/plain, Size: 126 bytes --]

Merged with 59b8daf2d2ec693467f299c06cb7f689a984a1d9.
Thanks for reviewing!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-08-06 16:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2020-08-06 13:54     ` Mathieu Othacehe
2020-08-06 16:54       ` Pierre Neidhardt

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.