Interface FallbackAdapterOptions

Options for creating a FallbackAdapter.

interface FallbackAdapterOptions {
    attemptTimeoutMs?: number;
    maxRetryPerSTT?: number;
    retryIntervalMs?: number;
    sttInstances: stt.STT[];
    vad?: VAD;
}

Properties

attemptTimeoutMs?: number

Per-attempt timeout in milliseconds. Defaults to 10000.

maxRetryPerSTT?: number

Number of internal retries per STT instance before moving to the next one. Defaults to 1.

retryIntervalMs?: number

Delay in milliseconds between internal retries. Defaults to 5000.

sttInstances: stt.STT[]

List of STT instances to use for fallback (in priority order). At least one is required.

vad?: VAD

VAD used to auto-wrap non-streaming STTs with StreamAdapter. Required when any of the supplied STT instances does not support streaming.