bodhi-realtime-agent / EchoGuardConfig
Interface: EchoGuardConfig
Defined in: src/transport/echo-guard.ts:83
Properties
corrThreshold?
optionalcorrThreshold?:number
Defined in: src/transport/echo-guard.ts:87
Correlation at/above which a window counts as echo. Default 0.75.
enabled?
optionalenabled?: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?
optionallagToleranceMs?: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?
optionallog?: (msg) =>void
Defined in: src/transport/echo-guard.ts:102
Log callback for suppression events.
Parameters
msg
string
Returns
void
maxLagMs?
optionalmaxLagMs?:number
Defined in: src/transport/echo-guard.ts:94
Max playback→mic lag searched, ms. Default 1500.
refFreshMs?
optionalrefFreshMs?:number
Defined in: src/transport/echo-guard.ts:100
How long the reference stays fresh after playback stops, ms. Default 2000.
stepMs?
optionalstepMs?:number
Defined in: src/transport/echo-guard.ts:96
Lag search step, ms. Default 20 (one envelope frame).
streakToSuppress?
optionalstreakToSuppress?:number
Defined in: src/transport/echo-guard.ts:89
Consecutive echo windows required before suppression starts. Default 2.
winPts?
optionalwinPts?:number
Defined in: src/transport/echo-guard.ts:98
Correlation window length in 20ms points. Default 12 (240ms).