Class CallMediaRecognizeDtmfOptions
java.lang.Object
com.azure.communication.callautomation.models.CallMediaRecognizeOptions
com.azure.communication.callautomation.models.CallMediaRecognizeDtmfOptions
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CallMediaRecognizeOptions>
The Recognize configurations specific for Dtmf.
-
Constructor Summary
ConstructorsConstructorDescriptionCallMediaRecognizeDtmfOptions(CommunicationIdentifier targetParticipant, int maxTonesToCollect) Initializes a CallMediaRecognizeDtmfOptions object. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CallMediaRecognizeDtmfOptions from the JsonReader.Get the interToneTimeout property: Time to wait between DTMF inputs to stop recognizing.Get the maxTonesToCollect property: Maximum number of DTMFs to be collected.Get the stopTones property: List of tones that will stop recognizing.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.setInterToneTimeout(Duration interToneTimeout) Set the interToneTimeout property: Time to wait between DTMF inputs to stop 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.setStopTones(List<DtmfTone> stopDtmfTones) Set the stopTones property: List of tones that will stop recognizing.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.communication.callautomation.models.CallMediaRecognizeOptions
getInitialSilenceTimeout, getOperationCallbackUrl, getOperationContext, getPlayPrompt, getPlayPrompts, getRecognizeInputType, getTargetParticipant, isInterruptCallMediaOperation, isInterruptPrompt, isStopCurrentOperations, setOperationCallbackUrl, setPlayPrompts, setPlayPromptsMethods 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, toJsonBytes, toJsonString
-
Constructor Details
-
CallMediaRecognizeDtmfOptions
public CallMediaRecognizeDtmfOptions(CommunicationIdentifier targetParticipant, int maxTonesToCollect) Initializes a CallMediaRecognizeDtmfOptions object.- Parameters:
targetParticipant- Target participant of DTFM tone recognition.maxTonesToCollect- Maximum number of DTMF tones to be collected.
-
-
Method Details
-
getInterToneTimeout
Get the interToneTimeout property: Time to wait between DTMF inputs to stop recognizing. If left unspecified, the default value is set to 2 seconds.- Returns:
- the interToneTimeout value.
-
setInterToneTimeout
Set the interToneTimeout property: Time to wait between DTMF inputs to stop recognizing.- Parameters:
interToneTimeout- the interToneTimeout value to set.- Returns:
- the DtmfConfigurationsInternal object itself.
-
getMaxTonesToCollect
Get the maxTonesToCollect property: Maximum number of DTMFs to be collected.- Returns:
- the maxTonesToCollect value.
-
getStopTones
Get the stopTones property: List of tones that will stop recognizing.- Returns:
- the stopTones value.
-
setStopTones
Set the stopTones property: List of tones that will stop recognizing.- Parameters:
stopDtmfTones- the stopTones value to set.- Returns:
- the CallMediaRecognizeDtmfOptions object itself.
-
setRecognizeInputType
Set the recognizeInputType property: Determines the type of the recognition.- Overrides:
setRecognizeInputTypein classCallMediaRecognizeOptions- Parameters:
recognizeInputType- the recognizeInputType value to set.- Returns:
- the CallMediaRecognizeDtmfOptions object itself.
-
setPlayPrompt
Set the playPrompt property: The source of the audio to be played for recognition.- Overrides:
setPlayPromptin classCallMediaRecognizeOptions- Parameters:
playPrompt- the playPrompt value to set.- Returns:
- the CallMediaRecognizeDtmfOptions object itself.
-
setInterruptCallMediaOperation
public CallMediaRecognizeDtmfOptions setInterruptCallMediaOperation(Boolean interruptCallMediaOperation) Set the interruptCallMediaOperation property: If set recognize can barge into other existing queued-up/currently-processing requests.- Overrides:
setInterruptCallMediaOperationin classCallMediaRecognizeOptions- Parameters:
interruptCallMediaOperation- the interruptCallMediaOperation value to set.- Returns:
- the CallMediaRecognizeDtmfOptions object itself.
-
setStopCurrentOperations
Set the stopCurrentOperations property: If set recognize can barge into other existing queued-up/currently-processing requests.- Overrides:
setStopCurrentOperationsin classCallMediaRecognizeOptions- Parameters:
stopCurrentOperations- the stopCurrentOperations value to set.- Returns:
- the CallMediaRecognizeDtmfOptions object itself.
-
setOperationContext
Set the operationContext property: The value to identify context of the operation.- Overrides:
setOperationContextin classCallMediaRecognizeOptions- Parameters:
operationContext- the operationContext value to set.- Returns:
- the CallMediaRecognizeDtmfOptions object itself.
-
setInterruptPrompt
Set the interruptPrompt property: Determines if we interrupt the prompt and start recognizing.- Overrides:
setInterruptPromptin classCallMediaRecognizeOptions- Parameters:
interruptPrompt- the interruptPrompt value to set.- Returns:
- the CallMediaRecognizeDtmfOptions object itself.
-
setInitialSilenceTimeout
Set the initialSilenceTimeout property: Time to wait for first input after prompt (if any).- Overrides:
setInitialSilenceTimeoutin classCallMediaRecognizeOptions- Parameters:
initialSilenceTimeout- the initialSilenceTimeout value to set.- Returns:
- the CallMediaRecognizeDtmfOptions object itself.
-
toJson
- Throws:
IOException
-
fromJson
public static CallMediaRecognizeDtmfOptions fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CallMediaRecognizeDtmfOptions from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CallMediaRecognizeDtmfOptions 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 CallMediaRecognizeDtmfOptions.
-