Class CallMediaRecognizeOptions
java.lang.Object
com.azure.communication.callautomation.models.CallMediaRecognizeOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CallMediaRecognizeOptions>
- Direct Known Subclasses:
CallMediaRecognizeChoiceOptions,CallMediaRecognizeDtmfOptions,CallMediaRecognizeSpeechOptions,CallMediaRecognizeSpeechOrDtmfOptions
public abstract class CallMediaRecognizeOptions
extends Object
implements com.azure.json.JsonSerializable<CallMediaRecognizeOptions>
Options to configure the Recognize operation
-
Constructor Summary
ConstructorsConstructorDescriptionCallMediaRecognizeOptions(RecognizeInputType recognizeInputType, CommunicationIdentifier targetParticipant) Initializes a CallMediaRecognizeOptions object. -
Method Summary
Modifier and TypeMethodDescriptionstatic CallMediaRecognizeOptionsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CallMediaRecognizeOptions from the JsonReader.Get the initialSilenceTimeout property: Time to wait for first input after prompt (if any).Get the overridden call back URL override for operation.Get the operationContext property: The value to identify context of the operation.Deprecated.Get the playPrompts property: The list source of the audio to be played for recognition.Get the recognizeInputType property: Determines the type of the recognition.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.setOperationCallbackUrl(String operationCallbackUrl) Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation.setOperationContext(String operationContext) Set the operationContext property: The value to identify context of the operation.setPlayPrompt(PlaySource playPrompt) Deprecated.Use thesetPlayPrompts(List)orsetPlayPrompts(PlaySource...)method.setPlayPrompts(PlaySource... playPrompts) Set the playPrompts property: The list source of the audio to be played for recognition.setPlayPrompts(List<PlaySource> playPrompts) Set the playPrompts property: The list 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CallMediaRecognizeOptions
public CallMediaRecognizeOptions(RecognizeInputType recognizeInputType, 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
Deprecated.Use thegetPlayPrompts()method.Get the playPrompt property: The source of the audio to be played for recognition.- Returns:
- the playPrompt value.
-
setPlayPrompt
Deprecated.Use thesetPlayPrompts(List)orsetPlayPrompts(PlaySource...)method.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.
-
getPlayPrompts
Get the playPrompts property: The list source of the audio to be played for recognition.- Returns:
- the playPrompts value.
-
setPlayPrompts
Set the playPrompts property: The list source of the audio to be played for recognition.- Parameters:
playPrompts- the playPrompts value to set.- Returns:
- the RecognizeRequest object itself.
-
setPlayPrompts
Set the playPrompts property: The list source of the audio to be played for recognition.- Parameters:
playPrompts- the playPrompts 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
Get the targetParticipant property: Target participant of DTFM tone recognition.- Returns:
- the targetParticipant value.
-
getOperationCallbackUrl
Get the overridden call back URL override for operation.- Returns:
- the operationCallbackUrl
-
setOperationCallbackUrl
Set a callback URI that overrides the default callback URI 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.- Parameters:
operationCallbackUrl- the operationCallbackUrl to set- Returns:
- the CallMediaRecognizeOptions object itself.
-
fromJson
public static CallMediaRecognizeOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CallMediaRecognizeOptions from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CallMediaRecognizeOptions if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ExternalStorage.
-
getPlayPrompts()method.