From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GBSQETA6IF+KcwAA0tVLHw (envelope-from ) for ; Tue, 28 Jul 2020 14:46:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CN5rDTA6IF8mDQAA1q6Kng (envelope-from ) for ; Tue, 28 Jul 2020 14:46:08 +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 C98F39402D1 for ; Tue, 28 Jul 2020 14:46:07 +0000 (UTC) Received: from localhost ([::1]:36100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k0Qrm-0007EH-GQ for larch@yhetil.org; Tue, 28 Jul 2020 10:46:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k0Qri-0007Dt-KD for guix-patches@gnu.org; Tue, 28 Jul 2020 10:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47232) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k0Qri-0003hI-AR for guix-patches@gnu.org; Tue, 28 Jul 2020 10:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k0Qri-0002R0-9C for guix-patches@gnu.org; Tue, 28 Jul 2020 10:46: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: Tue, 28 Jul 2020 14:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42583 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42583@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.15959475539336 (code B ref -1); Tue, 28 Jul 2020 14:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Jul 2020 14:45:53 +0000 Received: from localhost ([127.0.0.1]:58778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k0QrY-0002QV-Pz for submit@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 ) id 1k0QrV-0002QK-Dg for submit@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 ) id 1k0QrV-0007AG-5j for guix-patches@gnu.org; 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 ) id 1k0QrS-0003gD-Cf for guix-patches@gnu.org; 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@ambrevar.xyz) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id B10971C0018 for ; Tue, 28 Jul 2020 14:45:41 +0000 (UTC) From: Pierre Neidhardt Date: Tue, 28 Jul 2020 16:45:24 +0200 Message-Id: <20200728144524.4674-1-mail@ambrevar.xyz> 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@ambrevar.xyz; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.1 (--) 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: -0.01 X-TUID: VeYiP1+BKA+a * 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 ;;; Copyright © 2019 Mathieu Othacehe ;;; Copyright © 2020 Amin Bandali +;;; Copyright © 2020 Pierre Neidhardt ;;; ;;; 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