Class AudioParams
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.trtc.v20190722.models.AudioParams
-
public class AudioParams extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description AudioParams()AudioParams(AudioParams 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetBitRate()Get 音频码率: 取值范围[32000, 128000] ,单位bps,默认64000bps。LonggetChannel()Get 声道数枚举值: 1:单声道; 2:双声道(默认)。LonggetSampleRate()Get 音频采样率枚举值:(注意1 代表48000HZ, 2 代表44100HZ, 3 代表16000HZ) 1:48000Hz(默认); 2:44100Hz 3:16000Hz。voidsetBitRate(Long BitRate)Set 音频码率: 取值范围[32000, 128000] ,单位bps,默认64000bps。voidsetChannel(Long Channel)Set 声道数枚举值: 1:单声道; 2:双声道(默认)。voidsetSampleRate(Long SampleRate)Set 音频采样率枚举值:(注意1 代表48000HZ, 2 代表44100HZ, 3 代表16000HZ) 1:48000Hz(默认); 2:44100Hz 3:16000Hz。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
AudioParams
public AudioParams()
-
AudioParams
public AudioParams(AudioParams 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.
-
-
Method Detail
-
getSampleRate
public Long getSampleRate()
Get 音频采样率枚举值:(注意1 代表48000HZ, 2 代表44100HZ, 3 代表16000HZ) 1:48000Hz(默认); 2:44100Hz 3:16000Hz。- Returns:
- SampleRate 音频采样率枚举值:(注意1 代表48000HZ, 2 代表44100HZ, 3 代表16000HZ) 1:48000Hz(默认); 2:44100Hz 3:16000Hz。
-
setSampleRate
public void setSampleRate(Long SampleRate)
Set 音频采样率枚举值:(注意1 代表48000HZ, 2 代表44100HZ, 3 代表16000HZ) 1:48000Hz(默认); 2:44100Hz 3:16000Hz。- Parameters:
SampleRate- 音频采样率枚举值:(注意1 代表48000HZ, 2 代表44100HZ, 3 代表16000HZ) 1:48000Hz(默认); 2:44100Hz 3:16000Hz。
-
getChannel
public Long getChannel()
Get 声道数枚举值: 1:单声道; 2:双声道(默认)。- Returns:
- Channel 声道数枚举值: 1:单声道; 2:双声道(默认)。
-
setChannel
public void setChannel(Long Channel)
Set 声道数枚举值: 1:单声道; 2:双声道(默认)。- Parameters:
Channel- 声道数枚举值: 1:单声道; 2:双声道(默认)。
-
getBitRate
public Long getBitRate()
Get 音频码率: 取值范围[32000, 128000] ,单位bps,默认64000bps。- Returns:
- BitRate 音频码率: 取值范围[32000, 128000] ,单位bps,默认64000bps。
-
setBitRate
public void setBitRate(Long BitRate)
Set 音频码率: 取值范围[32000, 128000] ,单位bps,默认64000bps。- Parameters:
BitRate- 音频码率: 取值范围[32000, 128000] ,单位bps,默认64000bps。
-
-