public class AudioEncodeParams extends AbstractModel
header, skipSign
Constructor and Description |
---|
AudioEncodeParams() |
AudioEncodeParams(AudioEncodeParams 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 |
getBitRate()
Get 音频码率,取值范围[8,500],单位为kbps。
|
Long |
getChannel()
Get 音频声道数,取值范围[1,2],1表示音频为单声道,2表示音频为双声道。
|
Long |
getSampleRate()
Get 音频采样率,取值为[48000, 44100],单位是Hz。
|
Long |
getVolume()
Get 音量,取值范围[0,300]。默认100,表示原始音量;0表示静音。
|
void |
setBitRate(Long BitRate)
Set 音频码率,取值范围[8,500],单位为kbps。
|
void |
setChannel(Long Channel)
Set 音频声道数,取值范围[1,2],1表示音频为单声道,2表示音频为双声道。
|
void |
setSampleRate(Long SampleRate)
Set 音频采样率,取值为[48000, 44100],单位是Hz。
|
void |
setVolume(Long Volume)
Set 音量,取值范围[0,300]。默认100,表示原始音量;0表示静音。
|
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, toJsonString
public AudioEncodeParams()
public AudioEncodeParams(AudioEncodeParams source)
public Long getSampleRate()
public void setSampleRate(Long SampleRate)
SampleRate
- 音频采样率,取值为[48000, 44100],单位是Hz。public Long getChannel()
public void setChannel(Long Channel)
Channel
- 音频声道数,取值范围[1,2],1表示音频为单声道,2表示音频为双声道。public Long getBitRate()
public void setBitRate(Long BitRate)
BitRate
- 音频码率,取值范围[8,500],单位为kbps。public Long getVolume()
public void setVolume(Long Volume)
Volume
- 音量,取值范围[0,300]。默认100,表示原始音量;0表示静音。Copyright © 2024. All rights reserved.