Class CreateVRSTaskRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.vrs.v20200824.models.CreateVRSTaskRequest
-
public class CreateVRSTaskRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description CreateVRSTaskRequest()CreateVRSTaskRequest(CreateVRSTaskRequest 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 String[]getAudioIdList()Get 音频ID集合StringgetCallbackUrl()Get 回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。 回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{"TaskId":"xxxxxxxxxxxxxx","Status":2,"StatusStr":"success","VoiceType":xxxxx,"ErrorMsg":""}StringgetCodec()Get 音频格式,音频类型(wav,mp3,aac,m4a)LonggetModelType()Get 任务类型 1:在线 2:离线 默认为1LonggetSampleRate()Get 音频采样率: 16000:16kStringgetSessionId()Get 唯一请求 IDLonggetVoiceGender()Get 音色性别: 1-male 2-femaleLonggetVoiceLanguage()Get 语言类型: 1-中文StringgetVoiceName()Get 音色名称voidsetAudioIdList(String[] AudioIdList)Set 音频ID集合voidsetCallbackUrl(String CallbackUrl)Set 回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。 回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{"TaskId":"xxxxxxxxxxxxxx","Status":2,"StatusStr":"success","VoiceType":xxxxx,"ErrorMsg":""}voidsetCodec(String Codec)Set 音频格式,音频类型(wav,mp3,aac,m4a)voidsetModelType(Long ModelType)Set 任务类型 1:在线 2:离线 默认为1voidsetSampleRate(Long SampleRate)Set 音频采样率: 16000:16kvoidsetSessionId(String SessionId)Set 唯一请求 IDvoidsetVoiceGender(Long VoiceGender)Set 音色性别: 1-male 2-femalevoidsetVoiceLanguage(Long VoiceLanguage)Set 语言类型: 1-中文voidsetVoiceName(String VoiceName)Set 音色名称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
-
CreateVRSTaskRequest
public CreateVRSTaskRequest()
-
CreateVRSTaskRequest
public CreateVRSTaskRequest(CreateVRSTaskRequest 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
-
getSessionId
public String getSessionId()
Get 唯一请求 ID- Returns:
- SessionId 唯一请求 ID
-
setSessionId
public void setSessionId(String SessionId)
Set 唯一请求 ID- Parameters:
SessionId- 唯一请求 ID
-
getVoiceName
public String getVoiceName()
Get 音色名称- Returns:
- VoiceName 音色名称
-
setVoiceName
public void setVoiceName(String VoiceName)
Set 音色名称- Parameters:
VoiceName- 音色名称
-
getSampleRate
public Long getSampleRate()
Get 音频采样率: 16000:16k- Returns:
- SampleRate 音频采样率: 16000:16k
-
setSampleRate
public void setSampleRate(Long SampleRate)
Set 音频采样率: 16000:16k- Parameters:
SampleRate- 音频采样率: 16000:16k
-
getVoiceGender
public Long getVoiceGender()
Get 音色性别: 1-male 2-female- Returns:
- VoiceGender 音色性别: 1-male 2-female
-
setVoiceGender
public void setVoiceGender(Long VoiceGender)
Set 音色性别: 1-male 2-female- Parameters:
VoiceGender- 音色性别: 1-male 2-female
-
getVoiceLanguage
public Long getVoiceLanguage()
Get 语言类型: 1-中文- Returns:
- VoiceLanguage 语言类型: 1-中文
-
setVoiceLanguage
public void setVoiceLanguage(Long VoiceLanguage)
Set 语言类型: 1-中文- Parameters:
VoiceLanguage- 语言类型: 1-中文
-
getCodec
public String getCodec()
Get 音频格式,音频类型(wav,mp3,aac,m4a)- Returns:
- Codec 音频格式,音频类型(wav,mp3,aac,m4a)
-
setCodec
public void setCodec(String Codec)
Set 音频格式,音频类型(wav,mp3,aac,m4a)- Parameters:
Codec- 音频格式,音频类型(wav,mp3,aac,m4a)
-
getAudioIdList
public String[] getAudioIdList()
Get 音频ID集合- Returns:
- AudioIdList 音频ID集合
-
setAudioIdList
public void setAudioIdList(String[] AudioIdList)
Set 音频ID集合- Parameters:
AudioIdList- 音频ID集合
-
getCallbackUrl
public String getCallbackUrl()
Get 回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。 回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{"TaskId":"xxxxxxxxxxxxxx","Status":2,"StatusStr":"success","VoiceType":xxxxx,"ErrorMsg":""}- Returns:
- CallbackUrl 回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。 回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{"TaskId":"xxxxxxxxxxxxxx","Status":2,"StatusStr":"success","VoiceType":xxxxx,"ErrorMsg":""}
-
setCallbackUrl
public void setCallbackUrl(String CallbackUrl)
Set 回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。 回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{"TaskId":"xxxxxxxxxxxxxx","Status":2,"StatusStr":"success","VoiceType":xxxxx,"ErrorMsg":""}- Parameters:
CallbackUrl- 回调 URL,用户自行搭建的用于接收结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。 回调采用POST请求方式,Content-Type为application/json,回调数据格式如下:{"TaskId":"xxxxxxxxxxxxxx","Status":2,"StatusStr":"success","VoiceType":xxxxx,"ErrorMsg":""}
-
getModelType
public Long getModelType()
Get 任务类型 1:在线 2:离线 默认为1- Returns:
- ModelType 任务类型 1:在线 2:离线 默认为1
-
setModelType
public void setModelType(Long ModelType)
Set 任务类型 1:在线 2:离线 默认为1- Parameters:
ModelType- 任务类型 1:在线 2:离线 默认为1
-
-