From 539e2a4ab8d07d06e48152403d1b38b6d0c6becd Mon Sep 17 00:00:00 2001 From: pavel Date: Wed, 25 Feb 2026 19:50:05 +0100 Subject: [PATCH] fix --- desktop/app.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/desktop/app.js b/desktop/app.js index 9f38df5..530bc53 100644 --- a/desktop/app.js +++ b/desktop/app.js @@ -23,7 +23,7 @@ const state = { muted: false, sharingVideo: false, sharingScreen: false, - noiseFilterMode: 'deepfilter', + noiseFilterMode: 'off', activeNoiseFilter: 'off', deepFilterProcessor: null, deepFilterModule: null, @@ -805,8 +805,15 @@ async function buildAudioPipeline(rawStream) { sampleRate: 48000, noiseReductionLevel: 70, }); - await processor.initialize(); - const workletNode = await processor.createAudioWorkletNode(ctx); + const timeoutMs = 2500; + const withTimeout = (promise, label) => + Promise.race([ + promise, + new Promise((_, reject) => setTimeout(() => reject(new Error(`${label} timed out`)), timeoutMs)), + ]); + + await withTimeout(processor.initialize(), "DeepFilter initialize"); + const workletNode = await withTimeout(processor.createAudioWorkletNode(ctx), "DeepFilter worklet"); processor.setNoiseSuppressionEnabled(true); state.voice.deepFilterProcessor = processor; source.connect(workletNode);