Resolves per-language unlikely thresholds for the audio EOT detector.

Holds three layers and re-materializes the effective map whenever any of them changes:

  • overrides — what the user passed (unlikelyThreshold), normalized.
  • server/shipped defaults — for turn-detector-v1-mini these are the shipped LOCAL_LANGUAGES table; for the cloud turn-detector-v1 they arrive from the gateway via _updateDefaults (the SessionCreated message) and are undefined until then.
  • materializedthresholds (per-language map) + defaultThreshold (catch-all for languages absent from the map).

The detector and its (single) active stream share one instance; the cloud→local fallback mutates it in place via _toLocalFallback.

Constructors

Accessors

Methods

  • Backchannel threshold for a language, or undefined when backchannel is disabled — no server defaults / overrides resolved, or the resolved value is non-positive (an explicit "off"). Backchannel is server-driven and cloud-only.

    Parameters

    Returns undefined | number

  • Clean config snapshot: resolved thresholds and user overrides, without internal server state.

    Returns Record<string, unknown>