implement noise reduction based on DeepFilterNet3

This commit is contained in:
fkwp
2026-03-26 14:25:07 +01:00
parent c703adb14d
commit b6cc810db2
7 changed files with 367 additions and 1 deletions

View File

@@ -101,6 +101,15 @@ export default ({
key: fs.readFileSync("./backend/dev_tls_m.localhost.key"),
cert: fs.readFileSync("./backend/dev_tls_m.localhost.crt"),
},
proxy: {
// Proxy for DeepFilterNet3 assets to avoid CORS issues during development
"/assets/deepfilternet3": {
target: "https://cdn.mezon.ai/AI/models/datas/noise_suppression/deepfilternet3",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/assets\/deepfilternet3/, ""),
secure: false, // Allow self-signed certs in development
},
},
},
worker: {
format: "es",