Skip to content

Commit 9411968

Browse files
authored
Merge PR #6389: Backport "Merge PR #6364: FEAT(client): Add ReNameNoise as a replacement for RNNoise" to 1.5.x
2 parents ae3e59b + 2ef93a0 commit 9411968

File tree

15 files changed

+67
-272
lines changed

15 files changed

+67
-272
lines changed

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
[submodule "3rdparty/speexdsp"]
88
path = 3rdparty/speexdsp
99
url = https://github.com/xiph/speexdsp.git
10-
[submodule "3rdparty/rnnoise-src"]
11-
path = 3rdparty/rnnoise-src
12-
url = https://github.com/mumble-voip/rnnoise.git
1310
[submodule "3rdparty/FindPythonInterpreter"]
1411
path = 3rdparty/FindPythonInterpreter
1512
url = https://github.com/Krzmbrzl/FindPythonInterpreter.git
@@ -28,3 +25,6 @@
2825
[submodule "3rdparty/cmake-compiler-flags"]
2926
path = 3rdparty/cmake-compiler-flags
3027
url = https://github.com/Krzmbrzl/cmake-compiler-flags.git
28+
[submodule "3rdparty/renamenoise"]
29+
path = 3rdparty/renamenoise
30+
url = https://github.com/mumble-voip/ReNameNoise.git

3rdparty/renamenoise

Submodule renamenoise added at 2a551ab

3rdparty/rnnoise-build/CMakeLists.txt

Lines changed: 0 additions & 57 deletions
This file was deleted.

3rdparty/rnnoise-build/config.h

Lines changed: 0 additions & 122 deletions
This file was deleted.

3rdparty/rnnoise-src

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/dev/build-instructions/cmake_options.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ Use the bundled GSL version instead of looking for one on the system
4444
Build the included version of nlohmann_json instead of looking for one on the system
4545
(Default: ON)
4646

47-
### bundled-rnnoise
47+
### bundled-renamenoise
4848

49-
Build the included version of RNNoise instead of looking for one on the system.
50-
(Default: ${rnnoise})
49+
Build the included version of ReNameNoise instead of looking for one on the system.
50+
(Default: ${renamenoise})
5151

5252
### bundled-speex
5353

@@ -189,14 +189,14 @@ Build support for custom Diffie-Hellman parameters.
189189
Use Qt's text-to-speech system (part of the Qt Speech module) instead of Mumble's own OS-specific text-to-speech implementations.
190190
(Default: OFF)
191191

192-
### retracted-plugins
192+
### renamenoise
193193

194-
Build redacted (outdated) plugins as well
195-
(Default: OFF)
194+
Use ReNameNoise for machine learning noise reduction.
195+
(Default: ON)
196196

197-
### rnnoise
197+
### retracted-plugins
198198

199-
Use RNNoise for machine learning noise reduction.
199+
Build redacted (outdated) plugins as well
200200
(Default: OFF)
201201

202202
### server

installer/ClientInstaller.cs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
public struct Features {
1919
public bool overlay;
2020
public bool g15;
21-
public bool rnnoise;
2221
}
2322

2423
public class ClientInstaller : MumbleInstall {
@@ -87,14 +86,11 @@ public ClientInstaller(string version, string arch, Features features) {
8786
// 64 bit
8887
this.Platform = WixSharp.Platform.x64;
8988
binaries = new List<string>() {
89+
"renamenoise.dll",
9090
"speexdsp.dll",
9191
"mumble.exe",
9292
};
9393

94-
if (features.rnnoise) {
95-
binaries.Add("rnnoise.dll");
96-
}
97-
9894
if (features.overlay) {
9995
binaries.Add("mumble_ol.dll");
10096
binaries.Add("mumble_ol_helper.exe");
@@ -109,14 +105,11 @@ public ClientInstaller(string version, string arch, Features features) {
109105
// 32 bit
110106
this.Platform = WixSharp.Platform.x86;
111107
binaries = new List<string>() {
108+
"renamenoise.dll",
112109
"speexdsp.dll",
113110
"mumble.exe",
114111
};
115112

116-
if (features.rnnoise) {
117-
binaries.Add("rnnoise.dll");
118-
}
119-
120113
if (features.overlay) {
121114
binaries.Add("mumble_ol.dll");
122115
binaries.Add("mumble_ol_helper.exe");
@@ -221,10 +214,6 @@ public static void Main(string[] args) {
221214
if (args[i] == "--overlay") {
222215
features.overlay = true;
223216
}
224-
225-
if (args[i] == "--rnnoise") {
226-
features.rnnoise = true;
227-
}
228217
}
229218

230219
if (version != null && arch != null) {

src/mumble/AudioConfigDialog.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ AudioInputDialog::AudioInputDialog(Settings &st) : ConfigWidget(st) {
7676
// Hide the slider by default
7777
showSpeexNoiseSuppressionSlider(false);
7878

79-
#ifndef USE_RNNOISE
80-
// Hide options related to RNNoise
81-
qrbNoiseSupRNNoise->setVisible(false);
79+
#ifndef USE_RENAMENOISE
80+
// Hide options related to ReNameNoise
81+
qrbNoiseSupReNameNoise->setVisible(false);
8282
qrbNoiseSupBoth->setVisible(false);
8383
#endif
8484
}
@@ -143,12 +143,12 @@ void AudioInputDialog::load(const Settings &r) {
143143
loadSlider(qsSpeexNoiseSupStrength, 14);
144144
}
145145

146-
bool allowRNNoise = SAMPLE_RATE == 48000;
146+
bool allowReNameNoise = SAMPLE_RATE == 48000;
147147

148-
if (!allowRNNoise) {
148+
if (!allowReNameNoise) {
149149
const QString tooltip = QObject::tr("RNNoise is not available due to a sample rate mismatch.");
150-
qrbNoiseSupRNNoise->setEnabled(false);
151-
qrbNoiseSupRNNoise->setToolTip(tooltip);
150+
qrbNoiseSupReNameNoise->setEnabled(false);
151+
qrbNoiseSupReNameNoise->setToolTip(tooltip);
152152
qrbNoiseSupBoth->setEnabled(false);
153153
qrbNoiseSupBoth->setToolTip(tooltip);
154154
}
@@ -161,9 +161,9 @@ void AudioInputDialog::load(const Settings &r) {
161161
loadCheckBox(qrbNoiseSupSpeex, true);
162162
break;
163163
case Settings::NoiseCancelRNN:
164-
#ifdef USE_RNNOISE
165-
if (allowRNNoise) {
166-
loadCheckBox(qrbNoiseSupRNNoise, true);
164+
#ifdef USE_RENAMENOISE
165+
if (allowReNameNoise) {
166+
loadCheckBox(qrbNoiseSupReNameNoise, true);
167167
} else {
168168
// We have to switch to speex as a fallback
169169
loadCheckBox(qrbNoiseSupSpeex, true);
@@ -174,8 +174,8 @@ void AudioInputDialog::load(const Settings &r) {
174174
#endif
175175
break;
176176
case Settings::NoiseCancelBoth:
177-
#ifdef USE_RNNOISE
178-
if (allowRNNoise) {
177+
#ifdef USE_RENAMENOISE
178+
if (allowReNameNoise) {
179179
loadCheckBox(qrbNoiseSupBoth, true);
180180
} else {
181181
// We have to switch to speex as a fallback
@@ -233,7 +233,7 @@ void AudioInputDialog::save() const {
233233
s.noiseCancelMode = Settings::NoiseCancelOff;
234234
} else if (qrbNoiseSupBoth->isChecked()) {
235235
s.noiseCancelMode = Settings::NoiseCancelBoth;
236-
} else if (qrbNoiseSupRNNoise->isChecked()) {
236+
} else if (qrbNoiseSupReNameNoise->isChecked()) {
237237
s.noiseCancelMode = Settings::NoiseCancelRNN;
238238
} else {
239239
s.noiseCancelMode = Settings::NoiseCancelSpeex;

0 commit comments

Comments
 (0)