yes
All checks were successful
/ upload (release) Successful in 3m13s

This commit is contained in:
pavel 2026-02-26 00:20:51 +01:00
commit ac0570b82c
7 changed files with 21 additions and 1 deletions

View file

@ -752,6 +752,9 @@ async function buildAudioPipeline(rawStream) {
const processor = new deepFilter.DeepFilterNet3Core({
sampleRate: 48000,
noiseReductionLevel: 70,
assetConfig: {
cdnUrl: resolveDeepFilterAssetsBaseUrl(),
},
});
await processor.initialize();
const workletNode = await processor.createAudioWorkletNode(ctx);
@ -851,6 +854,13 @@ function resolveDeepFilterModuleUrl() {
return '/static/vendor/deepfilternet3-noise-filter.esm.js';
}
function resolveDeepFilterAssetsBaseUrl() {
if (location.protocol === 'file:') {
return new URL('./vendor/deepfilternet3', location.href).toString();
}
return '/static/vendor/deepfilternet3';
}
async function getDeepFilterModule() {
if (state.voice.deepFilterModule) return state.voice.deepFilterModule;
const moduleUrl = resolveDeepFilterModuleUrl();

View file

@ -265,7 +265,7 @@
</div>
</div>
<script src="/static/app.js?v=20260225-voice-dfn-1" defer></script>
<script src="/static/app.js?v=20260225-voice-dfn-localassets-1" defer></script>
</body>
</html>

Binary file not shown.

Binary file not shown.