Class AacAudio
java.lang.Object
com.azure.resourcemanager.mediaservices.models.Codec
com.azure.resourcemanager.mediaservices.models.Audio
com.azure.resourcemanager.mediaservices.models.AacAudio
Describes Advanced Audio Codec (AAC) audio encoding settings.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprofile()
Get the profile property: The encoding profile to be used when encoding audio with AAC.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.withProfile
(AacAudioProfile profile) Set the profile property: The encoding profile to be used when encoding audio with AAC.withSamplingRate
(Integer samplingRate) Set the samplingRate property: The sampling rate to use for encoding in hertz.Methods inherited from class com.azure.resourcemanager.mediaservices.models.Audio
bitrate, channels, samplingRate
-
Constructor Details
-
AacAudio
public AacAudio()Creates an instance of AacAudio class.
-
-
Method Details
-
profile
Get the profile property: The encoding profile to be used when encoding audio with AAC.- Returns:
- the profile value.
-
withProfile
Set the profile property: The encoding profile to be used when encoding audio with AAC.- Parameters:
profile
- the profile value to set.- Returns:
- the AacAudio object itself.
-
withChannels
Set the channels property: The number of channels in the audio.- Overrides:
withChannels
in classAudio
- Parameters:
channels
- the channels value to set.- Returns:
- the Audio object itself.
-
withSamplingRate
Set the samplingRate property: The sampling rate to use for encoding in hertz.- Overrides:
withSamplingRate
in classAudio
- Parameters:
samplingRate
- the samplingRate value to set.- Returns:
- the Audio object itself.
-
withBitrate
Set the bitrate property: The bitrate, in bits per second, of the output encoded audio.- Overrides:
withBitrate
in classAudio
- 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 classAudio
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-