Skip to content

Interface: FirstReplyGuard

Defined in: packages/aiui-oracle/src/types.ts:402

Timings for OracleConfig.firstReplyGuard.

Properties

maxMs?

optional maxMs?: number

Defined in: packages/aiui-oracle/src/types.ts:423

Hard cap from the first response's creation, ms. Default DEFAULT_FIRST_REPLY_MAX_MS.

The end-of-audio event is undocumented (community-verified only) and has been reported to arrive late, so it never gets to be the ONLY way out of the window — a reply that produces no audio at all, or an event that simply never comes, must not leave barge-in disabled for the session. Arming late is harmless: echo cancellation converges within a second or two of far-end audio, so by the cap the hazard is long past.


padMs?

optional padMs?: number

Defined in: packages/aiui-oracle/src/types.ts:411

Grace after the reply's audio stops before interrupts are armed, ms. Default DEFAULT_FIRST_REPLY_PAD_MS.

output_audio_buffer.stopped means the SERVER finished sending; the client's jitter buffer may still have a few hundred milliseconds to play, and that tail is echo like any other.