Package version:

The recognize configuration specific to Choices.

interface CallMediaRecognizeChoiceOptions {
    choices: RecognitionChoice[];
    initialSilenceTimeoutInSeconds?: number;
    interruptCallMediaOperation?: boolean;
    interruptPrompt?: boolean;
    kind: "callMediaRecognizeChoiceOptions";
    operationCallbackUrl?: string;
    operationContext?: string;
    playPrompt?: FileSource | TextSource | SsmlSource;
    playPrompts?: (FileSource | TextSource | SsmlSource)[];
    speechLanguage?: string;
    speechRecognitionModelEndpointId?: string;
    stopCurrentOperations?: boolean;
}

Hierarchy (view full)

Properties

The IvR choices for recognize.

initialSilenceTimeoutInSeconds?: number

Time to wait for first input after prompt.

interruptCallMediaOperation?: boolean

If set recognize can barge into other existing queued-up/currently-processing requests.

interruptPrompt?: boolean

Determines if we interrupt the prompt and start recognizing.

kind
operationCallbackUrl?: string

Set a callback URL that overrides the default callback URL set by CreateCall/AnswerCall for this operation. This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used.

operationContext?: string

The value to identify context of the operation.

The source of the audio to be played for recognition.

playPrompts?: (FileSource | TextSource | SsmlSource)[]

The list source of the audio to be played for recognition.

speechLanguage?: string

Speech language to be recognized, If not set default is en-US

speechRecognitionModelEndpointId?: string

Endpoint where the custom model was deployed.

stopCurrentOperations?: boolean

Not in use, instead use interruptCallMediaOperation for similar functionality