public class VoicePrintEnrollRequest extends AbstractModel
header, skipSign| Constructor and 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getData()Get 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M | 
| String | getGroupId()Get 分组id, 仅支持大小写字母和下划线的组合,不超过128个字符 | 
| Long | getSampleRate()Get 音频采样率,目前支持16000,单位:Hz,必填 | 
| String | getSpeakerNick()Get 说话人昵称  不超过32字节 | 
| Long | getVoiceFormat()Get 音频格式 0: pcm, 1: wav | 
| void | setData(String Data)Set 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2M | 
| void | setGroupId(String GroupId)Set 分组id, 仅支持大小写字母和下划线的组合,不超过128个字符 | 
| void | setSampleRate(Long SampleRate)Set 音频采样率,目前支持16000,单位:Hz,必填 | 
| void | setSpeakerNick(String SpeakerNick)Set 说话人昵称  不超过32字节 | 
| void | setVoiceFormat(Long VoiceFormat)Set 音频格式 0: pcm, 1: wav | 
| 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 VoicePrintEnrollRequest()
public VoicePrintEnrollRequest(VoicePrintEnrollRequest source)
public Long getVoiceFormat()
public void setVoiceFormat(Long VoiceFormat)
VoiceFormat - 音频格式 0: pcm, 1: wavpublic Long getSampleRate()
public void setSampleRate(Long SampleRate)
SampleRate - 音频采样率,目前支持16000,单位:Hz,必填public String getData()
public void setData(String Data)
Data - 音频数据, base64 编码, 音频时长不能超过30s,数据大小不超过2Mpublic String getSpeakerNick()
public void setSpeakerNick(String SpeakerNick)
SpeakerNick - 说话人昵称  不超过32字节public String getGroupId()
public void setGroupId(String GroupId)
GroupId - 分组id, 仅支持大小写字母和下划线的组合,不超过128个字符Copyright © 2025. All rights reserved.