TranscriptionOptions Class
- java.
lang. Object - com.
azure. communication. callautomation. models. TranscriptionOptions
- com.
public final class TranscriptionOptions
The TranscriptionOptions model.
Constructor Summary
| Constructor | Description |
|---|---|
| TranscriptionOptions(String locale) |
Creates a new instance of Transcription |
| TranscriptionOptions(String locale, StreamingTransport transportType) |
Creates a new instance of Transcription |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getLocale()
Get the locale property: locale for the data e. |
| String |
getSpeechRecognitionModelEndpointId()
Get the speech |
|
Streaming |
getTransportType()
Get the transport |
| String |
getTransportUrl()
Get the transport |
| Boolean |
isIntermediateResultsEnabled()
Get the enable |
| Boolean |
isStartTranscription()
Get the start |
|
Transcription |
setEnableIntermediateResults(Boolean enableIntermediateResults)
Set the enable |
|
Transcription |
setSpeechRecognitionModelEndpointId(String speechRecognitionModelEndpointId)
Set the speech |
|
Transcription |
setStartTranscription(Boolean startTranscription)
Set the start |
|
Transcription |
setTransportUrl(String transportUrl)
Set the transport |
Methods inherited from java.lang.Object
Constructor Details
TranscriptionOptions
public TranscriptionOptions(String locale)
Creates a new instance of TranscriptionOptions with default transportType as WEBSOCKET.
Parameters:
- Locale
TranscriptionOptions
public TranscriptionOptions(String locale, StreamingTransport transportType)
Creates a new instance of TranscriptionOptions
Parameters:
- Locale
- The type of transport to be used for live transcription
Method Details
getLocale
public String getLocale()
Get the locale property: locale for the data e.g en-CA, en-AU.
Returns:
getSpeechRecognitionModelEndpointId
public String getSpeechRecognitionModelEndpointId()
Get the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed.
Returns:
getTransportType
public StreamingTransport getTransportType()
Get the transportType property: The type of transport to be used for live transcription, eg. Websocket.
Returns:
getTransportUrl
public String getTransportUrl()
Get the transportUrl property: Transport URL for live transcription.
Returns:
isIntermediateResultsEnabled
public Boolean isIntermediateResultsEnabled()
Get the enableIntermediateResults property: Enables intermediate results for the transcribed speech.
Returns:
isStartTranscription
public Boolean isStartTranscription()
Get the startTranscription property: Indicates whether the transcription should start immediately after the call is answered.
Returns:
setEnableIntermediateResults
public TranscriptionOptions setEnableIntermediateResults(Boolean enableIntermediateResults)
Set the enableIntermediateResults property: Enables intermediate results for the transcribed speech.
Parameters:
Returns:
setSpeechRecognitionModelEndpointId
public TranscriptionOptions setSpeechRecognitionModelEndpointId(String speechRecognitionModelEndpointId)
Set the speechRecognitionModelEndpointId property: Endpoint where the custom model was deployed.
Parameters:
Returns:
setStartTranscription
public TranscriptionOptions setStartTranscription(Boolean startTranscription)
Set the startTranscription property: Indicates whether the transcription should start immediately after the call is answered.
Parameters:
Returns:
setTransportUrl
public TranscriptionOptions setTransportUrl(String transportUrl)
Set the transportUrl property: Transport URL for live transcription.
Parameters:
Returns: