Class Audio
java.lang.Object
com.azure.resourcemanager.mediaservices.models.Codec
com.azure.resourcemanager.mediaservices.models.Audio
Defines the common properties for all audio codecs.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbitrate()
Get the bitrate property: The bitrate, in bits per second, of the output encoded audio.channels()
Get the channels property: The number of channels in the audio.Get the samplingRate property: The sampling rate to use for encoding in hertz.void
validate()
Validates the instance.withBitrate
(Integer bitrate) Set the bitrate property: The bitrate, in bits per second, of the output encoded audio.withChannels
(Integer channels) Set the channels property: The number of channels in the audio.Set the label property: An optional label for the codec.withSamplingRate
(Integer samplingRate) Set the samplingRate property: The sampling rate to use for encoding in hertz.
-
Constructor Details
-
Audio
public Audio()Creates an instance of Audio class.
-
-
Method Details
-
channels
Get the channels property: The number of channels in the audio.- Returns:
- the channels value.
-
withChannels
Set the channels property: The number of channels in the audio.- Parameters:
channels
- the channels value to set.- Returns:
- the Audio object itself.
-
samplingRate
Get the samplingRate property: The sampling rate to use for encoding in hertz.- Returns:
- the samplingRate value.
-
withSamplingRate
Set the samplingRate property: The sampling rate to use for encoding in hertz.- Parameters:
samplingRate
- the samplingRate value to set.- Returns:
- the Audio object itself.
-
bitrate
Get the bitrate property: The bitrate, in bits per second, of the output encoded audio.- Returns:
- the bitrate value.
-
withBitrate
Set the bitrate property: The bitrate, in bits per second, of the output encoded audio.- Parameters:
bitrate
- the bitrate value to set.- Returns:
- the Audio object itself.
-
withLabel
Set the label property: An optional label for the codec. The label can be used to control muxing behavior. -
validate
public void validate()Validates the instance.- Overrides:
validate
in classCodec
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-