MediaStreamingOptions Class
- java.
lang. Object - com.
azure. communication. callautomation. models. MediaStreamingOptions
- com.
public final class MediaStreamingOptions
The MediaStreamingOptions model.
Constructor Summary
| Constructor | Description |
|---|---|
| MediaStreamingOptions(MediaStreamingAudioChannel audioChannelType) |
Creates a new instance of Transcription |
| MediaStreamingOptions(MediaStreamingAudioChannel audioChannelType, StreamingTransport transportType) |
Creates a new instance of Media |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Media |
getAudioChannelType()
Get the audio |
|
Audio |
getAudioFormat()
Get the audio |
|
Media |
getContentType()
Get the content |
|
Streaming |
getTransportType()
Get the transport |
| String |
getTransportUrl()
Get the transport |
| Boolean |
isEnableBidirectional()
Get the enable |
| Boolean |
isEnableDtmfTones()
Get the enable |
| Boolean |
isStartMediaStreaming()
Get the start |
| Boolean |
isStartMediaStreamingEnabled()
Get the start |
|
Media |
setAudioFormat(AudioFormat audioFormat)
Set the audio |
|
Media |
setContentType(MediaStreamingContentType contentType)
Set the content |
|
Media |
setEnableBidirectional(Boolean enableBidirectional)
Set the enable |
|
Media |
setEnableDtmfTones(Boolean enableDtmfTones)
Set the enable |
|
Media |
setStartMediaStreaming(Boolean startMediaStreaming)
Set the start |
|
Media |
setTransportUrl(String transportUrl)
Set the transport |
Methods inherited from java.lang.Object
Constructor Details
MediaStreamingOptions
public MediaStreamingOptions(MediaStreamingAudioChannel audioChannelType)
Creates a new instance of TranscriptionOptions with default transportType as WEBSOCKET.
Parameters:
- Audio Channel Type
MediaStreamingOptions
public MediaStreamingOptions(MediaStreamingAudioChannel audioChannelType, StreamingTransport transportType)
Creates a new instance of MediaStreamingOptions
Parameters:
- Audio Channel Type
- The type of transport to be used for media streaming, eg. Websocket
Method Details
getAudioChannelType
public MediaStreamingAudioChannel getAudioChannelType()
Get the audioChannelType property: Audio channel type to stream, eg. unmixed audio, mixed audio.
Returns:
getAudioFormat
public AudioFormat getAudioFormat()
Get the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel type.
Returns:
getContentType
public MediaStreamingContentType getContentType()
Get the contentType property: Content type to stream, eg. audio, audio/video.
Returns:
getTransportType
public StreamingTransport getTransportType()
Get the transportType property: The type of tranport to be used for media streaming, eg. Websocket.
Returns:
getTransportUrl
public String getTransportUrl()
Get the transportUrl property: Transport URL for media streaming.
Returns:
isEnableBidirectional
public Boolean isEnableBidirectional()
Get the enableBidirectional property: A value indicating whether bidirectional streaming is enabled.
Returns:
isEnableDtmfTones
public Boolean isEnableDtmfTones()
Get the enableDtmfTones property: A value that indicates whether to stream the DTMF tones.
Returns:
isStartMediaStreaming
public Boolean isStartMediaStreaming()
Get the startMediaStreaming property: A value indicating whether the media streaming should start immediately after the call is answered.
Returns:
isStartMediaStreamingEnabled
public Boolean isStartMediaStreamingEnabled()
Get the startMediaStreaming property: Enables intermediate results for the transcribed speech.
Returns:
setAudioFormat
public MediaStreamingOptions setAudioFormat(AudioFormat audioFormat)
Set the audioFormat property: Specifies the audio format used for encoding, including sample rate and channel type.
Parameters:
Returns:
setContentType
public MediaStreamingOptions setContentType(MediaStreamingContentType contentType)
Set the contentType property: The contentType property.
Parameters:
Returns:
setEnableBidirectional
public MediaStreamingOptions setEnableBidirectional(Boolean enableBidirectional)
Set the enableBidirectional property: A value indicating whether bidirectional streaming is enabled.
Parameters:
Returns:
setEnableDtmfTones
public MediaStreamingOptions setEnableDtmfTones(Boolean enableDtmfTones)
Set the enableDtmfTones property: A value that indicates whether to stream the DTMF tones.
Parameters:
Returns:
setStartMediaStreaming
public MediaStreamingOptions setStartMediaStreaming(Boolean startMediaStreaming)
Set the startMediaStreaming property: A value indicating whether the media streaming should start immediately after the call is answered.
Parameters:
Returns:
setTransportUrl
public MediaStreamingOptions setTransportUrl(String transportUrl)
Set the transportUrl property: Transport URL for media streaming.
Parameters:
Returns: