CallMediaRecognizeSpeechOrDtmfOptions Class
- java.
lang. Object - com.
azure. communication. callautomation. models. CallMediaRecognizeOptions - com.
azure. communication. callautomation. models. CallMediaRecognizeSpeechOrDtmfOptions
- com.
- com.
public class CallMediaRecognizeSpeechOrDtmfOptions
extends CallMediaRecognizeOptions
The Recognize configurations specific for Continuous Speech or DTMF Recognition.
Constructor Summary
| Constructor | Description |
|---|---|
| CallMediaRecognizeSpeechOrDtmfOptions(CommunicationIdentifier targetParticipant, int maxTonesToCollect, Duration endSilenceTimeout) |
Initializes a Call |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Call |
fromJson(JsonReader jsonReader)
Reads an instance of Call |
| Duration |
getEndSilenceTimeout()
Get the end |
| Duration |
getInterToneTimeout()
Get the inter |
| int |
getMaxTonesToCollect()
Get the max |
| String |
getSpeechLanguage()
Get the speech language property. |
| String |
getSpeechRecognitionModelEndpointId()
Get the speech |
|
List<Dtmf |
getStopTones()
Get the stop |
|
Call |
setInterToneTimeout(Duration interToneTimeout)
Set the inter |
|
Call |
setSpeechLanguage(String speechLanguage)
Set the speech language property. |
|
Call |
setSpeechRecognitionModelEndpointId(String speechRecognitionModelEndpointId)
Set the speech |
|
Call |
setStopTones(List<DtmfTone> stopDtmfTones)
Set the stop |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from CallMediaRecognizeOptions
Methods inherited from java.lang.Object
Constructor Details
CallMediaRecognizeSpeechOrDtmfOptions
public CallMediaRecognizeSpeechOrDtmfOptions(CommunicationIdentifier targetParticipant, int maxTonesToCollect, Duration endSilenceTimeout)
Initializes a CallMediaRecognizeSpeechOrDtmfOptions object.
Parameters:
Method Details
fromJson
public static CallMediaRecognizeSpeechOrDtmfOptions fromJson(JsonReader jsonReader)
Reads an instance of CallMediaRecognizeSpeechOrDtmfOptions from the JsonReader.
Parameters:
Returns:
Throws:
getEndSilenceTimeout
public Duration getEndSilenceTimeout()
Get the endSilenceTimeout property: The length of end silence when user stops speaking and cogservice send response.
Returns:
getInterToneTimeout
public Duration 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:
getMaxTonesToCollect
public int getMaxTonesToCollect()
Get the maxTonesToCollect property: Maximum number of DTMFs to be collected.
Returns:
getSpeechLanguage
public String getSpeechLanguage()
Get the speech language property.
Returns:
getSpeechRecognitionModelEndpointId
public String getSpeechRecognitionModelEndpointId()
Get the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed.
Returns:
getStopTones
public List<DtmfTone> getStopTones()
Get the stopTones property: List of tones that will stop recognizing.
Returns:
setInterToneTimeout
public CallMediaRecognizeSpeechOrDtmfOptions setInterToneTimeout(Duration interToneTimeout)
Set the interToneTimeout property: Time to wait between DTMF inputs to stop recognizing.
Parameters:
Returns:
setSpeechLanguage
public CallMediaRecognizeSpeechOrDtmfOptions setSpeechLanguage(String speechLanguage)
Set the speech language property.
Parameters:
Returns:
setSpeechRecognitionModelEndpointId
public CallMediaRecognizeSpeechOrDtmfOptions setSpeechRecognitionModelEndpointId(String speechRecognitionModelEndpointId)
Set the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed.
Parameters:
Returns:
setStopTones
public CallMediaRecognizeSpeechOrDtmfOptions setStopTones(List<DtmfTone> stopDtmfTones)
Set the stopTones property: List of tones that will stop recognizing.
Parameters:
Returns: