Class VoicePrintEnrollRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.asr.v20190614.models.VoicePrintEnrollRequest
-
public class VoicePrintEnrollRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description VoicePrintEnrollRequest()VoicePrintEnrollRequest(VoicePrintEnrollRequest 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 StringgetData()Get 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2MLonggetSampleRate()Get 音频采样率,目前支持16000,单位:Hz,必填StringgetSpeakerNick()Get 说话人昵称 不超过32字节LonggetVoiceFormat()Get 音频格式 0: pcm, 1: wavvoidsetData(String Data)Set 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2MvoidsetSampleRate(Long SampleRate)Set 音频采样率,目前支持16000,单位:Hz,必填voidsetSpeakerNick(String SpeakerNick)Set 说话人昵称 不超过32字节voidsetVoiceFormat(Long VoiceFormat)Set 音频格式 0: pcm, 1: wavvoidtoMap(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
-
VoicePrintEnrollRequest
public VoicePrintEnrollRequest()
-
VoicePrintEnrollRequest
public VoicePrintEnrollRequest(VoicePrintEnrollRequest 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
-
getVoiceFormat
public Long getVoiceFormat()
Get 音频格式 0: pcm, 1: wav- Returns:
- VoiceFormat 音频格式 0: pcm, 1: wav
-
setVoiceFormat
public void setVoiceFormat(Long VoiceFormat)
Set 音频格式 0: pcm, 1: wav- Parameters:
VoiceFormat- 音频格式 0: pcm, 1: wav
-
getSampleRate
public Long getSampleRate()
Get 音频采样率,目前支持16000,单位:Hz,必填- Returns:
- SampleRate 音频采样率,目前支持16000,单位:Hz,必填
-
setSampleRate
public void setSampleRate(Long SampleRate)
Set 音频采样率,目前支持16000,单位:Hz,必填- Parameters:
SampleRate- 音频采样率,目前支持16000,单位:Hz,必填
-
getData
public String getData()
Get 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M- Returns:
- Data 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M
-
setData
public void setData(String Data)
Set 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M- Parameters:
Data- 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M
-
getSpeakerNick
public String getSpeakerNick()
Get 说话人昵称 不超过32字节- Returns:
- SpeakerNick 说话人昵称 不超过32字节
-
setSpeakerNick
public void setSpeakerNick(String SpeakerNick)
Set 说话人昵称 不超过32字节- Parameters:
SpeakerNick- 说话人昵称 不超过32字节
-
-