Skip to content

bodhi-realtime-agent / EchoGuardConfig

Interface: EchoGuardConfig ​

Defined in: src/transport/echo-guard.ts:83

Properties ​

corrThreshold? ​

optional corrThreshold?: number

Defined in: src/transport/echo-guard.ts:87

Correlation at/above which a window counts as echo. Default 0.75.


enabled? ​

optional enabled?: boolean

Defined in: src/transport/echo-guard.ts:85

Master switch. OPT-IN: default false — set true to activate; env BODHI_ECHO_GUARD=0 hard-disables even then.


lagToleranceMs? ​

optional lagToleranceMs?: number

Defined in: src/transport/echo-guard.ts:92

Max lag drift (ms) between consecutive windows for the streak to continue. Real echo sits at a stable lag; spurious correlation peaks wander. Default 60.


log? ​

optional log?: (msg) => void

Defined in: src/transport/echo-guard.ts:102

Log callback for suppression events.

Parameters ​

msg ​

string

Returns ​

void


maxLagMs? ​

optional maxLagMs?: number

Defined in: src/transport/echo-guard.ts:94

Max playback→mic lag searched, ms. Default 1500.


refFreshMs? ​

optional refFreshMs?: number

Defined in: src/transport/echo-guard.ts:100

How long the reference stays fresh after playback stops, ms. Default 2000.


stepMs? ​

optional stepMs?: number

Defined in: src/transport/echo-guard.ts:96

Lag search step, ms. Default 20 (one envelope frame).


streakToSuppress? ​

optional streakToSuppress?: number

Defined in: src/transport/echo-guard.ts:89

Consecutive echo windows required before suppression starts. Default 2.


winPts? ​

optional winPts?: number

Defined in: src/transport/echo-guard.ts:98

Correlation window length in 20ms points. Default 12 (240ms).

Built with VitePress