fix(calls): revert broken ML dependencies and stabilize noise suppression build
- Revert to verified @workadventure/noise-suppression@0.0.4 and remove unimplemented DFN3 facade. - Fix package-lock.json to resolve build failures. - Remove DTLN/DFN3 options from Settings UI to ensure stability. - Consolidate imports and fix import duplication in General.tsx causing build errors.
This commit is contained in:
+5
-25
@@ -54,10 +54,6 @@
|
||||
script: 'speexWorklet.js',
|
||||
wasm: 'speex.wasm',
|
||||
},
|
||||
dtln: {
|
||||
name: '@workadventure/noise-suppression/processor',
|
||||
script: 'dtlnWorklet.js',
|
||||
},
|
||||
gate: {
|
||||
name: '@sapphi-red/web-noise-suppressor/noise-gate',
|
||||
script: 'noiseGateWorklet.js',
|
||||
@@ -152,30 +148,14 @@
|
||||
}
|
||||
|
||||
// 2. ML Processor
|
||||
var mlOptions = {
|
||||
var mlNode = new AudioWorkletNode(ctx, PROCESSORS[MODEL].name, {
|
||||
channelCount: 1,
|
||||
channelCountMode: 'explicit',
|
||||
numberOfInputs: 1,
|
||||
numberOfOutputs: 1,
|
||||
processorOptions: { maxChannels: 1 }
|
||||
};
|
||||
|
||||
if (MODEL === 'rnnoise' || MODEL === 'speex') {
|
||||
mlOptions.processorOptions.wasmBinary = wasmBinary;
|
||||
} else if (MODEL === 'dtln') {
|
||||
mlOptions.processorOptions = {
|
||||
wasmUrl: ASSET_BASE + 'litert_wasm_internal.wasm',
|
||||
model1Url: ASSET_BASE + 'model_1.tflite',
|
||||
model2Url: ASSET_BASE + 'model_2.tflite',
|
||||
};
|
||||
} else if (MODEL === 'deepfilternet') {
|
||||
mlOptions.processorOptions = {
|
||||
wasmModule: wasmBinary,
|
||||
modelBytes: new Uint8Array(wasmBinary),
|
||||
suppressionLevel: 50
|
||||
};
|
||||
}
|
||||
|
||||
var mlNode = new AudioWorkletNode(ctx, PROCESSORS[MODEL].name, mlOptions);
|
||||
outputChannelCount: [1],
|
||||
processorOptions: { maxChannels: 1, wasmBinary: wasmBinary },
|
||||
});
|
||||
head.connect(mlNode);
|
||||
mlNode.connect(dest);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user