public class AudioTemplateInfo extends AbstractModel
header, skipSign
Constructor and Description |
---|
AudioTemplateInfo() |
AudioTemplateInfo(AudioTemplateInfo source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getAudioChannel()
Get Audio channel mode.
|
Long |
getBitrate()
Get The bitrate of the audio stream.
|
String |
getCodec()
Get Specifies the encoding format of the audio stream.
|
Long |
getSampleRate()
Get The sampling rate of the audio stream.
|
AudioTrackChannelInfo |
getTrackChannelInfo()
Get Merge audio track information.
|
void |
setAudioChannel(Long AudioChannel)
Set Audio channel mode.
|
void |
setBitrate(Long Bitrate)
Set The bitrate of the audio stream.
|
void |
setCodec(String Codec)
Set Specifies the encoding format of the audio stream.
|
void |
setSampleRate(Long SampleRate)
Set The sampling rate of the audio stream.
|
void |
setTrackChannelInfo(AudioTrackChannelInfo TrackChannelInfo)
Set Merge audio track information.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public AudioTemplateInfo()
public AudioTemplateInfo(AudioTemplateInfo source)
public String getCodec()
public void setCodec(String Codec)
Codec
- Specifies the encoding format of the audio stream.
When audio transcoding is not needed, the optional values are:.
public Long getBitrate()
public void setBitrate(Long Bitrate)
Bitrate
- The bitrate of the audio stream. value ranges from 0 to 26 and in the range of [26, 256]. measurement unit: kbps.
If the value is 0, the audio bitrate will be the same as that of the original audio.
Specifies that when using the TrackChannelInfo parameter for adaptive transcoding audio track merging, the valid values are:.
Cannot be set to 0.
2). when Codec is aac, valid values: [26, 256].
3). when Codec is ac3, valid values: [26, 640].
4) when Codec is eac3, value range: [26, 6144]. remark: when SampleRate is 44100HZ, maximum value: 5644. when SampleRate is 48000HZ, maximum value: 6144.public Long getSampleRate()
public void setSampleRate(Long SampleRate)
SampleRate
- The sampling rate of the audio stream. the supported sampling rate options vary for different encoding standards. for details, see audio sampling rate support scope document https://intl.cloud.tencent.com/document/product/862/77166?from_cn_redirect=1#f3b039f1-d817-4a96-b4e4-90132d31cd53.
Unit: Hz.
Please ensure that the sampling rate of the source audio stream is within the value range of the above options. otherwise, transcoding failure may occur.public Long getAudioChannel()
public void setAudioChannel(Long AudioChannel)
AudioChannel
- Audio channel mode. Valid values:
public AudioTrackChannelInfo getTrackChannelInfo()
public void setTrackChannelInfo(AudioTrackChannelInfo TrackChannelInfo)
TrackChannelInfo
- Merge audio track information.
This field only takes effect in adaptive bitrate transcoding.
Note: This field may return null, indicating that no valid value can be obtained.Copyright © 2025. All rights reserved.