java.lang.Object
com.azure.resourcemanager.mediaservices.models.Codec
com.azure.resourcemanager.mediaservices.models.Audio
Direct Known Subclasses:
AacAudio, DDAudio

public class Audio extends Codec
Defines the common properties for all audio codecs.
  • Constructor Details

    • Audio

      public Audio()
      Creates an instance of Audio class.
  • Method Details

    • channels

      public Integer channels()
      Get the channels property: The number of channels in the audio.
      Returns:
      the channels value.
    • withChannels

      public Audio withChannels(Integer channels)
      Set the channels property: The number of channels in the audio.
      Parameters:
      channels - the channels value to set.
      Returns:
      the Audio object itself.
    • samplingRate

      public Integer samplingRate()
      Get the samplingRate property: The sampling rate to use for encoding in hertz.
      Returns:
      the samplingRate value.
    • withSamplingRate

      public Audio withSamplingRate(Integer samplingRate)
      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

      public Integer bitrate()
      Get the bitrate property: The bitrate, in bits per second, of the output encoded audio.
      Returns:
      the bitrate value.
    • withBitrate

      public Audio withBitrate(Integer bitrate)
      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

      public Audio withLabel(String label)
      Set the label property: An optional label for the codec. The label can be used to control muxing behavior.
      Overrides:
      withLabel in class Codec
      Parameters:
      label - the label value to set.
      Returns:
      the Codec object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class Codec
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.