public class ComposeAudioStream extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| ComposeAudioStream() | 
| ComposeAudioStream(ComposeAudioStream 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:双声道(默认)。 | 
| Long | getBitrate()Get 参考码率,单位 kbps,范围:26~10000。
如果设置,编码时会尽量按该码率进行编码。
如果不设置,服务将根据音频参数自动采用合适的码率。 | 
| String | getCodec()Get 音频流的编码方式,可选值:
AAC:AAC 编码(默认),用于容器为 mp4。
MP3:mp3 编码,用于容器为 mp3。 | 
| Long | getSampleRate()Get 音频流的采样率,单位:Hz,可选值:
16000(默认)
32000
44100
48000 | 
| void | setAudioChannel(Long AudioChannel)Set 声道数,可选值:
1:单声道 。
2:双声道(默认)。 | 
| void | setBitrate(Long Bitrate)Set 参考码率,单位 kbps,范围:26~10000。
如果设置,编码时会尽量按该码率进行编码。
如果不设置,服务将根据音频参数自动采用合适的码率。 | 
| void | setCodec(String Codec)Set 音频流的编码方式,可选值:
AAC:AAC 编码(默认),用于容器为 mp4。
MP3:mp3 编码,用于容器为 mp3。 | 
| void | setSampleRate(Long SampleRate)Set 音频流的采样率,单位:Hz,可选值:
16000(默认)
32000
44100
48000 | 
| 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 ComposeAudioStream()
public ComposeAudioStream(ComposeAudioStream source)
public String getCodec()
public void setCodec(String Codec)
Codec - 音频流的编码方式,可选值:
public Long getSampleRate()
public void setSampleRate(Long SampleRate)
SampleRate - 音频流的采样率,单位:Hz,可选值:
public Long getAudioChannel()
public void setAudioChannel(Long AudioChannel)
AudioChannel - 声道数,可选值:
public Long getBitrate()
public void setBitrate(Long Bitrate)
Bitrate - 参考码率,单位 kbps,范围:26~10000。
如果设置,编码时会尽量按该码率进行编码。
如果不设置,服务将根据音频参数自动采用合适的码率。Copyright © 2025. All rights reserved.