public class AudioTemplateInfoForUpdate extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| AudioTemplateInfoForUpdate() | 
| AudioTemplateInfoForUpdate(AudioTemplateInfoForUpdate 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 音频通道方式,可选值:
1:单通道
2:双通道
6:5.1声道
当媒体的封装格式是音频格式时(flac,ogg,mp3,m4a)时,声道数不允许设为5.1声道。
注意:此字段可能返回 null,表示取不到有效值。 | 
| Long | getBitrate()Get 音频流的码率,取值范围:0 和 [26, 256],单位:kbps。 当取值为 0,表示音频码率和原始音频保持一致。
注意:此字段可能返回 null,表示取不到有效值。 | 
| String | getCodec()Get 音频流的编码格式。
当不需要对音频进行转码时,可选值为:
copy。
当外层参数 Container 为 mp3 时,可选值为:
mp3。
当外层参数 Container 为 ogg 或 flac 时,可选值为:
flac。
当外层参数 Container 为 m4a 时,可选值为:
aac;
ac3。
当外层参数 Container 为 mp4 或 flv 时,可选值为:
aac:更适合 mp4;
mp3:更适合 flv;
mp2。
当外层参数 Container 为 hls 时,可选值为:
aac;
mp3。
注意:此字段可能返回 null,表示取不到有效值。 | 
| Long | getSampleRate()Get 音频流的采样率,不同编码标准支持的采样率选项不同。填0代表使用源音频的采样率数值。
详细参考[音频采样率支持范围文档](https://cloud.tencent.com/document/product/862/77166#f3b039f1-d817-4a96-b4e4-90132d31cd53)
单位:Hz
注意:请确保源音频流的采样率在上述选项范围内,否则可能导致转码失败!
注意:此字段可能返回 null,表示取不到有效值。 | 
| Long[] | getStreamSelects()Get 指定输出要保留的音频轨道。默认是全部保留源的。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setAudioChannel(Long AudioChannel)Set 音频通道方式,可选值:
1:单通道
2:双通道
6:5.1声道
当媒体的封装格式是音频格式时(flac,ogg,mp3,m4a)时,声道数不允许设为5.1声道。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setBitrate(Long Bitrate)Set 音频流的码率,取值范围:0 和 [26, 256],单位:kbps。 当取值为 0,表示音频码率和原始音频保持一致。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setCodec(String Codec)Set 音频流的编码格式。
当不需要对音频进行转码时,可选值为:
copy。
当外层参数 Container 为 mp3 时,可选值为:
mp3。
当外层参数 Container 为 ogg 或 flac 时,可选值为:
flac。
当外层参数 Container 为 m4a 时,可选值为:
aac;
ac3。
当外层参数 Container 为 mp4 或 flv 时,可选值为:
aac:更适合 mp4;
mp3:更适合 flv;
mp2。
当外层参数 Container 为 hls 时,可选值为:
aac;
mp3。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setSampleRate(Long SampleRate)Set 音频流的采样率,不同编码标准支持的采样率选项不同。填0代表使用源音频的采样率数值。
详细参考[音频采样率支持范围文档](https://cloud.tencent.com/document/product/862/77166#f3b039f1-d817-4a96-b4e4-90132d31cd53)
单位:Hz
注意:请确保源音频流的采样率在上述选项范围内,否则可能导致转码失败!
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | setStreamSelects(Long[] StreamSelects)Set 指定输出要保留的音频轨道。默认是全部保留源的。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic AudioTemplateInfoForUpdate()
public AudioTemplateInfoForUpdate(AudioTemplateInfoForUpdate source)
public String getCodec()
public void setCodec(String Codec)
Codec - 音频流的编码格式。
当不需要对音频进行转码时,可选值为:
public Long getBitrate()
public void setBitrate(Long Bitrate)
Bitrate - 音频流的码率,取值范围:0 和 [26, 256],单位:kbps。 当取值为 0,表示音频码率和原始音频保持一致。
注意:此字段可能返回 null,表示取不到有效值。public Long getSampleRate()
public void setSampleRate(Long SampleRate)
SampleRate - 音频流的采样率,不同编码标准支持的采样率选项不同。填0代表使用源音频的采样率数值。
详细参考[音频采样率支持范围文档](https://cloud.tencent.com/document/product/862/77166#f3b039f1-d817-4a96-b4e4-90132d31cd53)
单位:Hz
注意:请确保源音频流的采样率在上述选项范围内,否则可能导致转码失败!
注意:此字段可能返回 null,表示取不到有效值。public Long getAudioChannel()
public void setAudioChannel(Long AudioChannel)
AudioChannel - 音频通道方式,可选值:
public Long[] getStreamSelects()
public void setStreamSelects(Long[] StreamSelects)
StreamSelects - 指定输出要保留的音频轨道。默认是全部保留源的。
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2025. All rights reserved.