public class CreateAICallRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateAICallRequest() |
CreateAICallRequest(CreateAICallRequest 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 |
getAPIKey()
Get API密钥
|
String |
getAPIUrl()
Get API URL,仅支持兼容openai协议的模型,填写url时后缀不要带/chat/completions
|
String |
getCallee()
Get 被叫
|
String[] |
getCallers()
Get 主叫号码列表
|
String |
getEndFunctionDesc()
Get EndFunctionEnable为true时生效;call_end function calling的desc,默认为 "End the call when user has to leave (like says bye) or you are instructed to do so."
|
Boolean |
getEndFunctionEnable()
Get 模型是否支持(或者开启)call_end function calling
|
Long |
getInterruptMode()
Get 打断AI说话模式,默认为0,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
|
Long |
getInterruptSpeechDuration()
Get InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断。
|
String[] |
getLanguages()
Get 语音识别支持的语言, 默认是"zh" 中文,
填写数组,最长4个语言,第一个语言为主要识别语言,后面为可选语言,
注意:主要语言为中国方言时,可选语言无效
目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循ISO639:
1.
|
String |
getLLMType()
Get LLM类型
|
Long |
getMaxDuration()
Get 最大等待时长(毫秒),默认60秒,超过这个时间用户没说话,自动挂断
|
String |
getModel()
Get 模型(当前仅支持openai协议的模型)
|
Long |
getSdkAppId()
Get 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
String |
getSystemPrompt()
Get 用于设定AI座席人设、说话规则、任务等的全局提示词。
|
String |
getVoiceType()
Get 音色,目前仅支持以下音色:
汉语:
ZhiMei:智美,客服女声
ZhiXi: 智希 通用女声
ZhiQi:智琪 客服女声
ZhiTian:智甜 女童声
AiXiaoJing:爱小静 对话女声
英语:
WeRose:英文女声
Monika:英文女声
日语:
Nanami
韩语:
SunHi
印度尼西亚语(印度尼西亚):
Gadis
马来语(马来西亚):
Yasmin
泰米尔语(马来西亚):
Kani
泰语(泰国):
Achara
越南语(越南):
HoaiMy
|
String |
getWelcomeMessage()
Get 用于设定AI座席欢迎语。
|
Long |
getWelcomeType()
Get 0:使用welcomeMessage(为空时,被叫先说话;不为空时,机器人先说话)
1: 使用ai根据prompt自动生成welcomeMessage并先说话
|
void |
setAPIKey(String APIKey)
Set API密钥
|
void |
setAPIUrl(String APIUrl)
Set API URL,仅支持兼容openai协议的模型,填写url时后缀不要带/chat/completions
|
void |
setCallee(String Callee)
Set 被叫
|
void |
setCallers(String[] Callers)
Set 主叫号码列表
|
void |
setEndFunctionDesc(String EndFunctionDesc)
Set EndFunctionEnable为true时生效;call_end function calling的desc,默认为 "End the call when user has to leave (like says bye) or you are instructed to do so."
|
void |
setEndFunctionEnable(Boolean EndFunctionEnable)
Set 模型是否支持(或者开启)call_end function calling
|
void |
setInterruptMode(Long InterruptMode)
Set 打断AI说话模式,默认为0,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断
|
void |
setInterruptSpeechDuration(Long InterruptSpeechDuration)
Set InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断。
|
void |
setLanguages(String[] Languages)
Set 语音识别支持的语言, 默认是"zh" 中文,
填写数组,最长4个语言,第一个语言为主要识别语言,后面为可选语言,
注意:主要语言为中国方言时,可选语言无效
目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循ISO639:
1.
|
void |
setLLMType(String LLMType)
Set LLM类型
|
void |
setMaxDuration(Long MaxDuration)
Set 最大等待时长(毫秒),默认60秒,超过这个时间用户没说话,自动挂断
|
void |
setModel(String Model)
Set 模型(当前仅支持openai协议的模型)
|
void |
setSdkAppId(Long SdkAppId)
Set 应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc
|
void |
setSystemPrompt(String SystemPrompt)
Set 用于设定AI座席人设、说话规则、任务等的全局提示词。
|
void |
setVoiceType(String VoiceType)
Set 音色,目前仅支持以下音色:
汉语:
ZhiMei:智美,客服女声
ZhiXi: 智希 通用女声
ZhiQi:智琪 客服女声
ZhiTian:智甜 女童声
AiXiaoJing:爱小静 对话女声
英语:
WeRose:英文女声
Monika:英文女声
日语:
Nanami
韩语:
SunHi
印度尼西亚语(印度尼西亚):
Gadis
马来语(马来西亚):
Yasmin
泰米尔语(马来西亚):
Kani
泰语(泰国):
Achara
越南语(越南):
HoaiMy
|
void |
setWelcomeMessage(String WelcomeMessage)
Set 用于设定AI座席欢迎语。
|
void |
setWelcomeType(Long WelcomeType)
Set 0:使用welcomeMessage(为空时,被叫先说话;不为空时,机器人先说话)
1: 使用ai根据prompt自动生成welcomeMessage并先说话
|
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, toJsonString
public CreateAICallRequest()
public CreateAICallRequest(CreateAICallRequest source)
public Long getSdkAppId()
public void setSdkAppId(Long SdkAppId)
SdkAppId
- 应用 ID(必填),可以查看 https://console.cloud.tencent.com/cccpublic String getCallee()
public void setCallee(String Callee)
Callee
- 被叫public String getSystemPrompt()
public void setSystemPrompt(String SystemPrompt)
SystemPrompt
- 用于设定AI座席人设、说话规则、任务等的全局提示词。public String getLLMType()
public void setLLMType(String LLMType)
LLMType
- LLM类型public String getModel()
public void setModel(String Model)
Model
- 模型(当前仅支持openai协议的模型)public String getAPIKey()
public void setAPIKey(String APIKey)
APIKey
- API密钥public String getAPIUrl()
public void setAPIUrl(String APIUrl)
APIUrl
- API URL,仅支持兼容openai协议的模型,填写url时后缀不要带/chat/completionspublic String getVoiceType()
public void setVoiceType(String VoiceType)
VoiceType
- 音色,目前仅支持以下音色:
汉语:
ZhiMei:智美,客服女声
ZhiXi: 智希 通用女声
ZhiQi:智琪 客服女声
ZhiTian:智甜 女童声
AiXiaoJing:爱小静 对话女声
英语:
WeRose:英文女声
Monika:英文女声
日语:
Nanami
韩语:
SunHi
印度尼西亚语(印度尼西亚):
Gadis
马来语(马来西亚):
Yasmin
泰米尔语(马来西亚):
Kani
泰语(泰国):
Achara
越南语(越南):
HoaiMypublic String[] getCallers()
public void setCallers(String[] Callers)
Callers
- 主叫号码列表public String getWelcomeMessage()
public void setWelcomeMessage(String WelcomeMessage)
WelcomeMessage
- 用于设定AI座席欢迎语。public Long getWelcomeType()
public void setWelcomeType(Long WelcomeType)
WelcomeType
- 0:使用welcomeMessage(为空时,被叫先说话;不为空时,机器人先说话)
1: 使用ai根据prompt自动生成welcomeMessage并先说话public Long getMaxDuration()
public void setMaxDuration(Long MaxDuration)
MaxDuration
- 最大等待时长(毫秒),默认60秒,超过这个时间用户没说话,自动挂断public String[] getLanguages()
public void setLanguages(String[] Languages)
Languages
- 语音识别支持的语言, 默认是"zh" 中文,
填写数组,最长4个语言,第一个语言为主要识别语言,后面为可选语言,
注意:主要语言为中国方言时,可选语言无效
目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循ISO639:
1. Chinese = "zh" # 中文
2. Chinese_TW = "zh-TW" # 中国台湾
3. Chinese_DIALECT = "zh-dialect" # 中国方言
4. English = "en" # 英语
5. Vietnamese = "vi" # 越南语
6. Japanese = "ja" # 日语
7. Korean = "ko" # 汉语
8. Indonesia = "id" # 印度尼西亚语
9. Thai = "th" # 泰语
10. Portuguese = "pt" # 葡萄牙语
11. Turkish = "tr" # 土耳其语
12. Arabic = "ar" # 阿拉伯语
13. Spanish = "es" # 西班牙语
14. Hindi = "hi" # 印地语
15. French = "fr" # 法语
16. Malay = "ms" # 马来语
17. Filipino = "fil" # 菲律宾语
18. German = "de" # 德语
19. Italian = "it" # 意大利语
20. Russian = "ru" # 俄语public Long getInterruptMode()
public void setInterruptMode(Long InterruptMode)
InterruptMode
- 打断AI说话模式,默认为0,0表示服务端自动打断,1表示服务端不打断,由端上发送打断信令进行打断public Long getInterruptSpeechDuration()
public void setInterruptSpeechDuration(Long InterruptSpeechDuration)
InterruptSpeechDuration
- InterruptMode为0时使用,单位为毫秒,默认为500ms。表示服务端检测到持续InterruptSpeechDuration毫秒的人声则进行打断。public Boolean getEndFunctionEnable()
public void setEndFunctionEnable(Boolean EndFunctionEnable)
EndFunctionEnable
- 模型是否支持(或者开启)call_end function callingpublic String getEndFunctionDesc()
public void setEndFunctionDesc(String EndFunctionDesc)
EndFunctionDesc
- EndFunctionEnable为true时生效;call_end function calling的desc,默认为 "End the call when user has to leave (like says bye) or you are instructed to do so."Copyright © 2024. All rights reserved.