Merge pull request #72870 from nh2/mumble-rnnoise

Add RNNoise, use it in Mumble
This commit is contained in:
Niklas Hambüchen 2019-11-07 19:04:57 +01:00 committed by GitHub
commit b618df3225
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 1 deletions

View File

@ -1,6 +1,7 @@
{ stdenv, fetchurl, fetchFromGitHub, fetchpatch, pkgconfig, qt5
, avahi, boost, libopus, libsndfile, protobuf, speex, libcap
, alsaLib, python
, rnnoise
, jackSupport ? false, libjack2 ? null
, speechdSupport ? false, speechd ? null
, pulseSupport ? false, libpulseaudio ? null
@ -73,7 +74,7 @@ let
type = "mumble";
nativeBuildInputs = [ qt5.qttools ];
buildInputs = [ libopus libsndfile speex qt5.qtsvg ]
buildInputs = [ libopus libsndfile speex qt5.qtsvg rnnoise ]
++ optional stdenv.isLinux alsaLib
++ optional jackSupport libjack2
++ optional speechdSupport speechd

View File

@ -0,0 +1,23 @@
{ stdenv, lib, fetchFromGitHub, autoreconfHook }:
stdenv.mkDerivation (rec {
name = "rnnoise-${version}";
version = "0.0.1";
src = fetchFromGitHub {
owner = "xiph";
repo = "rnnoise";
rev = "91ef401f4c3536c6de999ac609262691ec888c4c";
sha256 = "1h2ibg67gfcwnpvkq1rx0sngf9lk9j8pqsmsmmk5hclvrr2lp3yb";
};
nativeBuildInputs = [ autoreconfHook ];
meta = with lib; {
homepage = https://people.xiph.org/~jm/demo/rnnoise/;
description = "Recurrent neural network for audio noise reduction.";
license = licenses.bsd3;
maintainers = [ maintainers.nh2 ];
platforms = platforms.all;
};
})

View File

@ -6001,6 +6001,8 @@ in
rng-tools = callPackage ../tools/security/rng-tools { };
rnnoise = callPackage ../development/libraries/rnnoise { };
rnv = callPackage ../tools/text/xml/rnv { };
rounded-mgenplus = callPackage ../data/fonts/rounded-mgenplus { };