public class PostTextRequest extends AbstractModel
Constructor and Description |
---|
PostTextRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getBotEnv()
获取机器人环境{dev:测试;release:线上}。BotVersion/BotEnv二选一:二者均填,仅BotVersion有效;二者均不填,默认BotEnv=dev
|
String |
getBotId()
获取机器人标识
|
String |
getBotVersion()
获取机器人版本号。BotVersion/BotEnv二选一:二者均填,仅BotVersion有效;二者均不填,默认BotEnv=dev
|
String |
getInputText()
获取请求的文本
|
Boolean |
getNeedTts()
获取是否将机器人回答合成音频并返回url
|
String |
getSampleRate()
获取返回音频的采样率{8k,16k}。默认16k
|
String |
getSessionAttributes()
获取透传字段,传递给后台
|
Long |
getSpeed()
获取语速,范围:[-2,2]。0代表1.0倍
|
Long |
getTtsVoiceFormat()
获取TTS合成音频格式,{0:wav}。该字段在当前版本仅支持取值为0。
|
String |
getUserId()
获取子账户id,每个终端对应一个
|
Long |
getVoiceType()
获取音色,{0:女声,1:男声}
|
Long |
getVolume()
获取音量大小,范围:[0,10]。默认值为0,代表正常音量
|
void |
setBotEnv(String BotEnv)
设置机器人环境{dev:测试;release:线上}。BotVersion/BotEnv二选一:二者均填,仅BotVersion有效;二者均不填,默认BotEnv=dev
|
void |
setBotId(String BotId)
设置机器人标识
|
void |
setBotVersion(String BotVersion)
设置机器人版本号。BotVersion/BotEnv二选一:二者均填,仅BotVersion有效;二者均不填,默认BotEnv=dev
|
void |
setInputText(String InputText)
设置请求的文本
|
void |
setNeedTts(Boolean NeedTts)
设置是否将机器人回答合成音频并返回url
|
void |
setSampleRate(String SampleRate)
设置返回音频的采样率{8k,16k}。默认16k
|
void |
setSessionAttributes(String SessionAttributes)
设置透传字段,传递给后台
|
void |
setSpeed(Long Speed)
设置语速,范围:[-2,2]。0代表1.0倍
|
void |
setTtsVoiceFormat(Long TtsVoiceFormat)
设置TTS合成音频格式,{0:wav}。该字段在当前版本仅支持取值为0。
|
void |
setUserId(String UserId)
设置子账户id,每个终端对应一个
|
void |
setVoiceType(Long VoiceType)
设置音色,{0:女声,1:男声}
|
void |
setVolume(Long Volume)
设置音量大小,范围:[0,10]。默认值为0,代表正常音量
|
void |
toMap(HashMap<String,String> map,
String prefix)
内部实现,用户禁止调用
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getBotId()
public void setBotId(String BotId)
BotId
- 机器人标识public String getInputText()
public void setInputText(String InputText)
InputText
- 请求的文本public String getUserId()
public void setUserId(String UserId)
UserId
- 子账户id,每个终端对应一个public String getBotVersion()
public void setBotVersion(String BotVersion)
BotVersion
- 机器人版本号。BotVersion/BotEnv二选一:二者均填,仅BotVersion有效;二者均不填,默认BotEnv=devpublic String getSessionAttributes()
public void setSessionAttributes(String SessionAttributes)
SessionAttributes
- 透传字段,传递给后台public Boolean getNeedTts()
public void setNeedTts(Boolean NeedTts)
NeedTts
- 是否将机器人回答合成音频并返回urlpublic Long getVolume()
public void setVolume(Long Volume)
Volume
- 音量大小,范围:[0,10]。默认值为0,代表正常音量public Long getSpeed()
public void setSpeed(Long Speed)
Speed
- 语速,范围:[-2,2]。0代表1.0倍public Long getVoiceType()
public void setVoiceType(Long VoiceType)
VoiceType
- 音色,{0:女声,1:男声}public String getSampleRate()
public void setSampleRate(String SampleRate)
SampleRate
- 返回音频的采样率{8k,16k}。默认16kpublic String getBotEnv()
public void setBotEnv(String BotEnv)
BotEnv
- 机器人环境{dev:测试;release:线上}。BotVersion/BotEnv二选一:二者均填,仅BotVersion有效;二者均不填,默认BotEnv=devpublic Long getTtsVoiceFormat()
public void setTtsVoiceFormat(Long TtsVoiceFormat)
TtsVoiceFormat
- TTS合成音频格式,{0:wav}。该字段在当前版本仅支持取值为0。Copyright © 2019. All rights reserved.