From 889dd62d835a4d8fe52208967bd3ca289a0ebe77 Mon Sep 17 00:00:00 2001 From: Miroslav Pejic Date: Mon, 23 Mar 2026 14:25:31 +0100 Subject: [PATCH] [mirotalk] - feat: make custom noise suppression configurable via .env --- .env.template | 7 ++++++- app/src/config.template.js | 4 ++-- app/src/server.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- public/js/brand.js | 2 +- public/js/client.js | 4 ++-- 7 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.env.template b/.env.template index 188ac535..cb6f619d 100644 --- a/.env.template +++ b/.env.template @@ -1,5 +1,5 @@ # ==================================================== -# MiroTalk P2P v.1.7.58 - Environment Configuration +# MiroTalk P2P v.1.7.59 - Environment Configuration # ==================================================== # App environment @@ -126,6 +126,11 @@ IP_LOOKUP_ENABLED=false # true or false API_KEY_SECRET=mirotalkp2p_default_secret API_DISABLED='["token", "meetings"]' +# Custom Noise Suppression +# Enable custom noise suppression using RNNoise. If disabled, the default WebRTC noise suppression will be used. + +CUSTOM_NOISE_SUPPRESSION_ENABLED=true # true or false + # Survey URL # Using to redirect the client after close the call (feedbacks, website...) diff --git a/app/src/config.template.js b/app/src/config.template.js index b21fd164..5570ae88 100644 --- a/app/src/config.template.js +++ b/app/src/config.template.js @@ -2,7 +2,7 @@ /** * ============================================== - * MiroTalk P2P v.1.7.58 - Configuration File + * MiroTalk P2P v.1.7.59 - Configuration File * ============================================== * * This file is the central configuration source. @@ -435,7 +435,7 @@ module.exports = { showLockRoomBtn: true, showUnlockRoomBtn: true, showShortcutsBtn: true, - customNoiseSuppression: true, + customNoiseSuppression: getEnvBoolean(process.env.CUSTOM_NOISE_SUPPRESSION_ENABLED, true), }, remote: { showAudioVolume: true, diff --git a/app/src/server.js b/app/src/server.js index a96a37cd..470b4efd 100755 --- a/app/src/server.js +++ b/app/src/server.js @@ -45,7 +45,7 @@ dependencies: { * @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon * @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661 * @author Miroslav Pejic - miroslav.pejic.85@gmail.com - * @version 1.7.58 + * @version 1.7.59 * */ diff --git a/package-lock.json b/package-lock.json index c0344571..4ef61989 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mirotalk", - "version": "1.7.58", + "version": "1.7.59", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mirotalk", - "version": "1.7.58", + "version": "1.7.59", "license": "AGPL-3.0", "dependencies": { "@mattermost/client": "11.4.0", diff --git a/package.json b/package.json index cbc84e33..5d3ddbef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mirotalk", - "version": "1.7.58", + "version": "1.7.59", "description": "A free WebRTC browser-based video call", "main": "server.js", "scripts": { diff --git a/public/js/brand.js b/public/js/brand.js index 9439dd42..18fa3721 100644 --- a/public/js/brand.js +++ b/public/js/brand.js @@ -107,7 +107,7 @@ let brand = { }, about: { imageUrl: '../images/mirotalk-logo.gif', - title: 'WebRTC P2P v1.7.58', + title: 'WebRTC P2P v1.7.59', html: `