3
0
Fork 0
forked from mirrors/nixpkgs

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 { };