Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(call): noise filtering (#2586)

Will Hutchinson16bd82bc915f
diff --git a/js/app/packages/channel/Call/CallContext.tsx b/js/app/packages/channel/Call/CallContext.tsx
index d2e0310021..77e6d028fd 100644
--- a/js/app/packages/channel/Call/CallContext.tsx
+++ b/js/app/packages/channel/Call/CallContext.tsx
@@ -169,8 +169,14 @@ function createCallState() {
const prev = krispFilter();
if (prev) prev.destroy();
- const krisp = KrispNoiseFilter();
+ // `quality: 'high'` tells the Krisp model to filter more aggressively,
+ // which matters for noisy offices (cars, chairs, cans, etc.).
+ const krisp = KrispNoiseFilter({ quality: 'high' });
await (micPub.track as LocalTrack).setProcessor(krisp);
+ // `setProcessor` attaches the processor but does not activate filtering —
+ // per LiveKit's documented usage, `setEnabled(true)` must be called
+ // explicitly after attach for the filter to actually process audio.
+ await krisp.setEnabled(true);
setKrispFilter(krisp);
} catch (e) {
console.error('failed to re-attach Krisp noise filter', e);