CallMediaRecognizeOptions Class
- java.
lang. Object - com.
azure. communication. callautomation. models. CallMediaRecognizeOptions
- com.
Implements
public abstract class CallMediaRecognizeOptions
implements JsonSerializable<CallMediaRecognizeOptions>
Options to configure the Recognize operation
Constructor Summary
| Constructor | Description |
|---|---|
| CallMediaRecognizeOptions(RecognizeInputType recognizeInputType, CommunicationIdentifier targetParticipant) |
Initializes a Call |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Call |
fromJson(JsonReader jsonReader)
Reads an instance of Call |
| Duration |
getInitialSilenceTimeout()
Get the initial |
| String |
getOperationCallbackUrl()
Get the overridden call back URL override for operation. |
| String |
getOperationContext()
Get the operation |
|
Play |
getPlayPrompt()
Deprecated
Use the getPlayPrompts() method.
Get the play |
|
List<Play |
getPlayPrompts()
Get the play |
|
Recognize |
getRecognizeInputType()
Get the recognize |
|
Communication |
getTargetParticipant()
Get the target |
| Boolean |
isInterruptCallMediaOperation()
Get the interrupt |
| Boolean |
isInterruptPrompt()
Get the interrupt |
| Boolean |
isStopCurrentOperations()
Get the stop |
|
Call |
setInitialSilenceTimeout(Duration initialSilenceTimeout)
Set the initial |
|
Call |
setInterruptCallMediaOperation(Boolean interruptCallMediaOperation)
Set the interrupt |
|
Call |
setInterruptPrompt(Boolean interruptPrompt)
Set the interrupt |
|
Call |
setOperationCallbackUrl(String operationCallbackUrl)
Set a callback URI that overrides the default callback URI set by Create |
|
Call |
setOperationContext(String operationContext)
Set the operation |
|
Call |
setPlayPrompt(PlaySource playPrompt)
Deprecated
Use the setPlayPrompts(List<PlaySource> playPrompts) or #setPlayPrompts(PlaySource...) method.
Set the play |
|
Call |
setPlayPrompts(List<PlaySource> playPrompts)
Set the play |
|
Call |
setPlayPrompts(PlaySource[] playPrompts)
Set the play |
|
Call |
setRecognizeInputType(RecognizeInputType recognizeInputType)
Set the recognize |
|
Call |
setStopCurrentOperations(Boolean stopCurrentOperations)
Set the stop |
Methods inherited from java.lang.Object
Constructor Details
CallMediaRecognizeOptions
public CallMediaRecognizeOptions(RecognizeInputType recognizeInputType, CommunicationIdentifier targetParticipant)
Initializes a CallMediaRecognizeOptions object.
Parameters:
Method Details
fromJson
public static CallMediaRecognizeOptions fromJson(JsonReader jsonReader)
Reads an instance of CallMediaRecognizeOptions from the JsonReader.
Parameters:
Returns:
Throws:
getInitialSilenceTimeout
public Duration getInitialSilenceTimeout()
Get the initialSilenceTimeout property: Time to wait for first input after prompt (if any).
Returns:
getOperationCallbackUrl
public String getOperationCallbackUrl()
Get the overridden call back URL override for operation.
Returns:
getOperationContext
public String getOperationContext()
Get the operationContext property: The value to identify context of the operation.
Returns:
getPlayPrompt
@Deprecated
public PlaySource getPlayPrompt()
Deprecated
Get the playPrompt property: The source of the audio to be played for recognition.
Returns:
getPlayPrompts
public List<PlaySource> getPlayPrompts()
Get the playPrompts property: The list source of the audio to be played for recognition.
Returns:
getRecognizeInputType
public RecognizeInputType getRecognizeInputType()
Get the recognizeInputType property: Determines the type of the recognition.
Returns:
getTargetParticipant
public CommunicationIdentifier getTargetParticipant()
Get the targetParticipant property: Target participant of DTFM tone recognition.
Returns:
isInterruptCallMediaOperation
public Boolean isInterruptCallMediaOperation()
Get the interruptCallMediaOperation property: If set recognize can barge into other existing queued-up/currently-processing requests.
Returns:
isInterruptPrompt
public Boolean isInterruptPrompt()
Get the interruptPrompt property: Determines if we interrupt the prompt and start recognizing.
Returns:
isStopCurrentOperations
public Boolean isStopCurrentOperations()
Get the stopCurrentOperations property: If set recognize can barge into other existing queued-up/currently-processing requests.
Returns:
setInitialSilenceTimeout
public CallMediaRecognizeOptions setInitialSilenceTimeout(Duration initialSilenceTimeout)
Set the initialSilenceTimeout property: Time to wait for first input after prompt (if any).
Parameters:
Returns:
setInterruptCallMediaOperation
public CallMediaRecognizeOptions setInterruptCallMediaOperation(Boolean interruptCallMediaOperation)
Set the interruptCallMediaOperation property: If set recognize can barge into other existing queued-up/currently-processing requests.
Parameters:
Returns:
setInterruptPrompt
public CallMediaRecognizeOptions setInterruptPrompt(Boolean interruptPrompt)
Set the interruptPrompt property: Determines if we interrupt the prompt and start recognizing.
Parameters:
Returns:
setOperationCallbackUrl
public CallMediaRecognizeOptions setOperationCallbackUrl(String operationCallbackUrl)
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:
Returns:
setOperationContext
public CallMediaRecognizeOptions setOperationContext(String operationContext)
Set the operationContext property: The value to identify context of the operation.
Parameters:
Returns:
setPlayPrompt
@Deprecated
public CallMediaRecognizeOptions setPlayPrompt(PlaySource playPrompt)
Deprecated
Set the playPrompt property: The source of the audio to be played for recognition.
Parameters:
Returns:
setPlayPrompts
public CallMediaRecognizeOptions setPlayPrompts(List<PlaySource> playPrompts)
Set the playPrompts property: The list source of the audio to be played for recognition.
Parameters:
Returns:
setPlayPrompts
public CallMediaRecognizeOptions setPlayPrompts(PlaySource[] playPrompts)
Set the playPrompts property: The list source of the audio to be played for recognition.
Parameters:
Returns:
setRecognizeInputType
public CallMediaRecognizeOptions setRecognizeInputType(RecognizeInputType recognizeInputType)
Set the recognizeInputType property: Determines the type of the recognition.
Parameters:
Returns:
setStopCurrentOperations
public CallMediaRecognizeOptions setStopCurrentOperations(Boolean stopCurrentOperations)
Set the stopCurrentOperations property: If set recognize can barge into other existing queued-up/currently-processing requests.
Parameters:
Returns: