Class CallMediaRecognizeOptions
java.lang.Object
com.azure.communication.callautomation.models.CallMediaRecognizeOptions
- Direct Known Subclasses:
CallMediaRecognizeDtmfOptions
Options to configure the Recognize operation
-
Constructor Summary
ConstructorDescriptionCallMediaRecognizeOptions
(RecognizeInputType recognizeInputType, com.azure.communication.common.CommunicationIdentifier targetParticipant) Initializes a CallMediaRecognizeOptions object. -
Method Summary
Modifier and TypeMethodDescriptionGet the initialSilenceTimeout property: Time to wait for first input after prompt (if any).Get the operationContext property: The value to identify context of the operation.Get the playPrompt property: The source of the audio to be played for recognition.Get the recognizeInputType property: Determines the type of the recognition.com.azure.communication.common.CommunicationIdentifier
Get the targetParticipant property: Target participant of DTFM tone recognition.Get the interruptCallMediaOperation property: If set recognize can barge into other existing queued-up/currently-processing requests.Get the interruptPrompt property: Determines if we interrupt the prompt and start recognizing.Get the stopCurrentOperations property: If set recognize can barge into other existing queued-up/currently-processing requests.setInitialSilenceTimeout
(Duration initialSilenceTimeout) Set the initialSilenceTimeout property: Time to wait for first input after prompt (if any).setInterruptCallMediaOperation
(Boolean interruptCallMediaOperation) Set the interruptCallMediaOperation property: If set recognize can barge into other existing queued-up/currently-processing requests.setInterruptPrompt
(Boolean interruptPrompt) Set the interruptPrompt property: Determines if we interrupt the prompt and start recognizing.setOperationContext
(String operationContext) Set the operationContext property: The value to identify context of the operation.setPlayPrompt
(PlaySource playPrompt) Set the playPrompt property: The source of the audio to be played for recognition.setRecognizeInputType
(RecognizeInputType recognizeInputType) Set the recognizeInputType property: Determines the type of the recognition.setStopCurrentOperations
(Boolean stopCurrentOperations) Set the stopCurrentOperations property: If set recognize can barge into other existing queued-up/currently-processing requests.
-
Constructor Details
-
CallMediaRecognizeOptions
public CallMediaRecognizeOptions(RecognizeInputType recognizeInputType, com.azure.communication.common.CommunicationIdentifier targetParticipant) Initializes a CallMediaRecognizeOptions object.- Parameters:
recognizeInputType
- What input the operation should recognize.targetParticipant
- Target participant of DTFM tone recognition.
-
-
Method Details
-
getRecognizeInputType
Get the recognizeInputType property: Determines the type of the recognition.- Returns:
- the recognizeInputType value.
-
setRecognizeInputType
Set the recognizeInputType property: Determines the type of the recognition.- Parameters:
recognizeInputType
- the recognizeInputType value to set.- Returns:
- the RecognizeRequest object itself.
-
getPlayPrompt
Get the playPrompt property: The source of the audio to be played for recognition.- Returns:
- the playPrompt value.
-
setPlayPrompt
Set the playPrompt property: The source of the audio to be played for recognition.- Parameters:
playPrompt
- the playPrompt value to set.- Returns:
- the RecognizeRequest object itself.
-
isInterruptCallMediaOperation
Get the interruptCallMediaOperation property: If set recognize can barge into other existing queued-up/currently-processing requests.- Returns:
- the interruptCallMediaOperation value.
-
setInterruptCallMediaOperation
public CallMediaRecognizeOptions setInterruptCallMediaOperation(Boolean interruptCallMediaOperation) Set the interruptCallMediaOperation property: If set recognize can barge into other existing queued-up/currently-processing requests.- Parameters:
interruptCallMediaOperation
- the interruptCallMediaOperation value to set.- Returns:
- the RecognizeRequest object itself.
-
isStopCurrentOperations
Get the stopCurrentOperations property: If set recognize can barge into other existing queued-up/currently-processing requests.- Returns:
- the stopCurrentOperations value.
-
setStopCurrentOperations
Set the stopCurrentOperations property: If set recognize can barge into other existing queued-up/currently-processing requests.- Parameters:
stopCurrentOperations
- the stopCurrentOperations value to set.- Returns:
- the RecognizeRequest object itself.
-
getOperationContext
Get the operationContext property: The value to identify context of the operation.- Returns:
- the operationContext value.
-
setOperationContext
Set the operationContext property: The value to identify context of the operation.- Parameters:
operationContext
- the operationContext value to set.- Returns:
- the RecognizeRequest object itself.
-
isInterruptPrompt
Get the interruptPrompt property: Determines if we interrupt the prompt and start recognizing.- Returns:
- the interruptPrompt value.
-
setInterruptPrompt
Set the interruptPrompt property: Determines if we interrupt the prompt and start recognizing.- Parameters:
interruptPrompt
- the interruptPrompt value to set.- Returns:
- the RecognizeConfigurations object itself.
-
getInitialSilenceTimeout
Get the initialSilenceTimeout property: Time to wait for first input after prompt (if any).- Returns:
- the initialSilenceTimeout value.
-
setInitialSilenceTimeout
Set the initialSilenceTimeout property: Time to wait for first input after prompt (if any).- Parameters:
initialSilenceTimeout
- the initialSilenceTimeout value to set.- Returns:
- the RecognizeConfigurations object itself.
-
getTargetParticipant
public com.azure.communication.common.CommunicationIdentifier getTargetParticipant()Get the targetParticipant property: Target participant of DTFM tone recognition.- Returns:
- the targetParticipant value.
-