public class AudioParameters extends Object implements Serializable
Parameters required for transcoding audio.
| Constructor and Description | 
|---|
| AudioParameters() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| String | getBitRate()The bit rate of the audio stream in the output file, in
 kilobits/second. | 
| String | getChannels()The number of audio channels in the output file. | 
| String | getCodec()The audio codec for the output file. | 
| AudioCodecOptions | getCodecOptions()If you specified  AACforAudio:Codec, this
 is theAACcompression profile to use. | 
| String | getSampleRate()The sample rate of the audio stream in the output file, in Hertz. | 
| int | hashCode() | 
| void | setBitRate(String bitRate)The bit rate of the audio stream in the output file, in
 kilobits/second. | 
| void | setChannels(String channels)The number of audio channels in the output file. | 
| void | setCodec(String codec)The audio codec for the output file. | 
| void | setCodecOptions(AudioCodecOptions codecOptions)If you specified  AACforAudio:Codec, this
 is theAACcompression profile to use. | 
| void | setSampleRate(String sampleRate)The sample rate of the audio stream in the output file, in Hertz. | 
| String | toString()Returns a string representation of this object; useful for testing and
 debugging. | 
| AudioParameters | withBitRate(String bitRate)The bit rate of the audio stream in the output file, in
 kilobits/second. | 
| AudioParameters | withChannels(String channels)The number of audio channels in the output file. | 
| AudioParameters | withCodec(String codec)The audio codec for the output file. | 
| AudioParameters | withCodecOptions(AudioCodecOptions codecOptions)If you specified  AACforAudio:Codec, this
 is theAACcompression profile to use. | 
| AudioParameters | withSampleRate(String sampleRate)The sample rate of the audio stream in the output file, in Hertz. | 
public String getCodec()
aac, mp3, and vorbis.
 
 Constraints:
 Pattern: (^AAC$)|(^vorbis$)|(^mp3$)
aac, mp3, and vorbis.public void setCodec(String codec)
aac, mp3, and vorbis.
 
 Constraints:
 Pattern: (^AAC$)|(^vorbis$)|(^mp3$)
codec - The audio codec for the output file. Valid values include
         aac, mp3, and vorbis.public AudioParameters withCodec(String codec)
aac, mp3, and vorbis.
 Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Pattern: (^AAC$)|(^vorbis$)|(^mp3$)
codec - The audio codec for the output file. Valid values include
         aac, mp3, and vorbis.public String getSampleRate()
auto, 22050,
 32000, 44100, 48000,
 96000 
If you specify auto, Elastic
 Transcoder automatically detects the sample rate.
 
 Constraints:
 Pattern: (^auto$)|(^22050$)|(^32000$)|(^44100$)|(^48000$)|(^96000$)
auto, 22050,
         32000, 44100, 48000,
         96000 
If you specify auto, Elastic
         Transcoder automatically detects the sample rate.
public void setSampleRate(String sampleRate)
auto, 22050,
 32000, 44100, 48000,
 96000 
If you specify auto, Elastic
 Transcoder automatically detects the sample rate.
 
 Constraints:
 Pattern: (^auto$)|(^22050$)|(^32000$)|(^44100$)|(^48000$)|(^96000$)
sampleRate - The sample rate of the audio stream in the output file, in Hertz.
         Valid values include: auto, 22050,
         32000, 44100, 48000,
         96000 
If you specify auto, Elastic
         Transcoder automatically detects the sample rate.
public AudioParameters withSampleRate(String sampleRate)
auto, 22050,
 32000, 44100, 48000,
 96000 
If you specify auto, Elastic
 Transcoder automatically detects the sample rate.
 
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Pattern: (^auto$)|(^22050$)|(^32000$)|(^44100$)|(^48000$)|(^96000$)
sampleRate - The sample rate of the audio stream in the output file, in Hertz.
         Valid values include: auto, 22050,
         32000, 44100, 48000,
         96000 
If you specify auto, Elastic
         Transcoder automatically detects the sample rate.
public String getBitRate()
 Constraints:
 Pattern: ^\d{1,3}$
public void setBitRate(String bitRate)
 Constraints:
 Pattern: ^\d{1,3}$
bitRate - The bit rate of the audio stream in the output file, in
         kilobits/second. Enter an integer between 64 and 320, inclusive.public AudioParameters withBitRate(String bitRate)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Pattern: ^\d{1,3}$
bitRate - The bit rate of the audio stream in the output file, in
         kilobits/second. Enter an integer between 64 and 320, inclusive.public String getChannels()
auto, 0, 1, 2
 
If you specify auto, Elastic Transcoder automatically
 detects the number of channels in the input file.
 
 Constraints:
 Pattern: (^auto$)|(^0$)|(^1$)|(^2$)
auto, 0, 1, 2
         
If you specify auto, Elastic Transcoder automatically
         detects the number of channels in the input file.
public void setChannels(String channels)
auto, 0, 1, 2
 
If you specify auto, Elastic Transcoder automatically
 detects the number of channels in the input file.
 
 Constraints:
 Pattern: (^auto$)|(^0$)|(^1$)|(^2$)
channels - The number of audio channels in the output file. Valid values include:
         auto, 0, 1, 2
         
If you specify auto, Elastic Transcoder automatically
         detects the number of channels in the input file.
public AudioParameters withChannels(String channels)
auto, 0, 1, 2
 
If you specify auto, Elastic Transcoder automatically
 detects the number of channels in the input file.
 
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Pattern: (^auto$)|(^0$)|(^1$)|(^2$)
channels - The number of audio channels in the output file. Valid values include:
         auto, 0, 1, 2
         
If you specify auto, Elastic Transcoder automatically
         detects the number of channels in the input file.
public AudioCodecOptions getCodecOptions()
AAC for Audio:Codec, this
 is the AAC compression profile to use. Valid values
 include: auto, AAC-LC,
 HE-AAC, HE-AACv2 
If you specify
 auto, Elastic Transcoder chooses a profile based on the
 bit rate of the output file.
AAC for Audio:Codec, this
         is the AAC compression profile to use. Valid values
         include: auto, AAC-LC,
         HE-AAC, HE-AACv2 
If you specify
         auto, Elastic Transcoder chooses a profile based on the
         bit rate of the output file.
public void setCodecOptions(AudioCodecOptions codecOptions)
AAC for Audio:Codec, this
 is the AAC compression profile to use. Valid values
 include: auto, AAC-LC,
 HE-AAC, HE-AACv2 
If you specify
 auto, Elastic Transcoder chooses a profile based on the
 bit rate of the output file.
codecOptions - If you specified AAC for Audio:Codec, this
         is the AAC compression profile to use. Valid values
         include: auto, AAC-LC,
         HE-AAC, HE-AACv2 
If you specify
         auto, Elastic Transcoder chooses a profile based on the
         bit rate of the output file.
public AudioParameters withCodecOptions(AudioCodecOptions codecOptions)
AAC for Audio:Codec, this
 is the AAC compression profile to use. Valid values
 include: auto, AAC-LC,
 HE-AAC, HE-AACv2 
If you specify
 auto, Elastic Transcoder chooses a profile based on the
 bit rate of the output file.
 
Returns a reference to this object so that method calls can be chained together.
codecOptions - If you specified AAC for Audio:Codec, this
         is the AAC compression profile to use. Valid values
         include: auto, AAC-LC,
         HE-AAC, HE-AACv2 
If you specify
         auto, Elastic Transcoder chooses a profile based on the
         bit rate of the output file.
public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.