interface VPAOptions {
    allowInterruptions: boolean;
    beforeLLMCallback: BeforeLLMCallback;
    beforeTTSCallback: BeforeTTSCallback;
    chatCtx?: ChatContext;
    fncCtx?: FunctionContext;
    interruptMinWords: number;
    interruptSpeechDuration: number;
    maxRecursiveFncCalls: number;
    minEndpointingDelay: number;
    preemptiveSynthesis: boolean;
    transcription: AgentTranscriptionOptions;
}

Properties

allowInterruptions: boolean

Whether to allow the user to interrupt the assistant.

beforeLLMCallback: BeforeLLMCallback
beforeTTSCallback: BeforeTTSCallback
chatCtx?: ChatContext

Chat context for the assistant.

Function context for the assistant.

interruptMinWords: number

Minimum number of words to consider for interuption. This may increase latency.

interruptSpeechDuration: number

Minimum duration of speech to consider for interruption.

maxRecursiveFncCalls: number
minEndpointingDelay: number

Delay to wait before considering the user speech done.

preemptiveSynthesis: boolean

Options for assistant transcription.