Recognize Class

Definition

This is the action which customers can specify to indicate that the server call agent should perform speech or dtmf recognition.

public class Recognize : Microsoft.Bot.Builder.Calling.ObjectModel.Contracts.ActionBase
type Recognize = class
    inherit ActionBase
Public Class Recognize
Inherits ActionBase
Inheritance
Recognize

Constructors

Recognize()

Properties

Action

The type of action. Various concrete action classes specify their name. This is used to deserialize a list of actions from JSON to their respective concrete classes.

(Inherited from ActionBase)
BargeInAllowed

Are customers allowed to enter choice before prompt finishes. Default : true.

Choices

List of choices to recognize against. Choices can be speech or dtmf based.

CollectDigits

There is no choice based recognition. Rather collect all digits entered by user.

Either CollectDigits or Choices must be specified. Both can not be specified.

Culture

Culture of Speech Recognizer to use. Default : en-US.

InitialSilenceTimeoutInSeconds

Maximum initial silence allowed from the time we start the recognition operation before we timeout and fail the operation.

if we are playing a prompt, then this timer starts after prompt finishes.

Default : 5 secs

InterdigitTimeoutInSeconds

Mamimum allowed time between digits if we are doing dtmf based choice recognition or CollectDigits recognition

Default : 1 sec

IsStandaloneAction

Flag to indicate whether this action must not be specified along with any other actions.

(Inherited from ActionBase)
OperationId

An operation Id needs to be specified by customer so that they can correlate outcome to the action. This becomes necessary when multiple actions are specified in one response body

Note: this is the first serialized field since it has the lowest order. By default Json.net starts ordering from -1.

(Inherited from ActionBase)
PlayPrompt

Promt to played out (if any) before recognition starts. Customers can choose to specify "playPrompt" action separately or specify as part of "recognize" - mostly all recognitions are preceeded by a prompt

Methods

Validate()

Applies to