[mirotalk] - fix noise suppression init

This commit is contained in:
Miroslav Pejic
2026-02-19 01:21:29 +01:00
parent 4ebd9d6bcd
commit 2c72987133
7 changed files with 16 additions and 11 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# ====================================================
# MiroTalk P2P v.1.7.34 - Environment Configuration
# MiroTalk P2P v.1.7.35 - Environment Configuration
# ====================================================
# App environment
+1 -1
View File
@@ -2,7 +2,7 @@
/**
* ==============================================
* MiroTalk P2P v.1.7.34 - Configuration File
* MiroTalk P2P v.1.7.35 - Configuration File
* ==============================================
*
* Branding and customizations require a license:
+1 -1
View File
@@ -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.34
* @version 1.7.35
*
*/
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "mirotalk",
"version": "1.7.34",
"version": "1.7.35",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mirotalk",
"version": "1.7.34",
"version": "1.7.35",
"license": "AGPL-3.0",
"dependencies": {
"@mattermost/client": "11.3.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.7.34",
"version": "1.7.35",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
+1 -1
View File
@@ -79,7 +79,7 @@ let brand = {
},
about: {
imageUrl: '../images/mirotalk-logo.gif',
title: 'WebRTC P2P v1.7.34',
title: 'WebRTC P2P v1.7.35',
html: `
<button
id="support-button"
+9 -4
View File
@@ -15,7 +15,7 @@
* @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.34
* @version 1.7.35
*
*/
@@ -1976,9 +1976,14 @@ async function loadLocalStorage() {
await changeInitCamera(initVideoSelect.value);
await handleLocalCameraMirror();
}
// Refresh audio
// Refresh audio — skip if the current mic already matches the stored device
// to avoid tearing down and rebuilding the noise-suppression pipeline unnecessarily.
if (useAudio && audioInputSelect.value) {
await changeLocalMicrophone(audioInputSelect.value);
const currentMicStream = noiseProcessor?.originalStream || localAudioMediaStream;
const currentMicDeviceId = getAudioTrack(currentMicStream)?.getSettings?.()?.deviceId;
if (currentMicDeviceId !== audioInputSelect.value) {
await changeLocalMicrophone(audioInputSelect.value);
}
}
// Refresh speaker
if (audioOutputSelect.value) await changeAudioDestination();
@@ -13733,7 +13738,7 @@ function showAbout() {
Swal.fire({
background: swBg,
position: 'center',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.7.34',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.7.35',
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
customClass: { image: 'img-about' },
html: `