public class StartAIConversationRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
StartAIConversationRequest() |
StartAIConversationRequest(StartAIConversationRequest 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 |
---|---|
AgentConfig |
getAgentConfig()
Get 机器人参数
|
String |
getLLMConfig()
Get LLM配置。需符合openai规范,为JSON字符串,示例如下:
|
String |
getRoomId()
Get TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),表示开启对话任务的房间号。
|
Long |
getRoomIdType()
Get TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。
|
Long |
getSdkAppId()
Get TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和开启转录任务的房间使用的SdkAppId相同。
|
String |
getSessionId()
Get 调用方传入的唯一Id,可用于客户侧防止重复发起任务以及可以通过该字段查询任务状态。
|
STTConfig |
getSTTConfig()
Get 语音识别配置。
|
String |
getTTSConfig()
Get TTS配置,为JSON字符串,腾讯云TTS示例如下:
|
void |
setAgentConfig(AgentConfig AgentConfig)
Set 机器人参数
|
void |
setLLMConfig(String LLMConfig)
Set LLM配置。需符合openai规范,为JSON字符串,示例如下:
|
void |
setRoomId(String RoomId)
Set TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),表示开启对话任务的房间号。
|
void |
setRoomIdType(Long RoomIdType)
Set TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。
|
void |
setSdkAppId(Long SdkAppId)
Set TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和开启转录任务的房间使用的SdkAppId相同。
|
void |
setSessionId(String SessionId)
Set 调用方传入的唯一Id,可用于客户侧防止重复发起任务以及可以通过该字段查询任务状态。
|
void |
setSTTConfig(STTConfig STTConfig)
Set 语音识别配置。
|
void |
setTTSConfig(String TTSConfig)
Set TTS配置,为JSON字符串,腾讯云TTS示例如下:
|
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 StartAIConversationRequest()
public StartAIConversationRequest(StartAIConversationRequest source)
public Long getSdkAppId()
public void setSdkAppId(Long SdkAppId)
SdkAppId
- TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和开启转录任务的房间使用的SdkAppId相同。public String getRoomId()
public void setRoomId(String RoomId)
RoomId
- TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),表示开启对话任务的房间号。public AgentConfig getAgentConfig()
public void setAgentConfig(AgentConfig AgentConfig)
AgentConfig
- 机器人参数public String getSessionId()
public void setSessionId(String SessionId)
SessionId
- 调用方传入的唯一Id,可用于客户侧防止重复发起任务以及可以通过该字段查询任务状态。public Long getRoomIdType()
public void setRoomIdType(Long RoomIdType)
RoomIdType
- TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。public STTConfig getSTTConfig()
public void setSTTConfig(STTConfig STTConfig)
STTConfig
- 语音识别配置。public String getLLMConfig()
{
"LLMType": “大模型类型", // String 必填,如:"openai"
"Model": "您的模型名称", // String 必填,指定使用的模型
"APIKey": "您的LLM API密钥", // String 必填
"APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL
"Streaming": true // Boolean 非必填,指定是否使用流式传输
}
{
"LLMType": “大模型类型", // String 必填,如:"openai"
"Model": "您的模型名称", // String 必填,指定使用的模型
"APIKey": "您的LLM API密钥", // String 必填
"APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL
"Streaming": true // Boolean 非必填,指定是否使用流式传输
}
public void setLLMConfig(String LLMConfig)
{
"LLMType": “大模型类型", // String 必填,如:"openai"
"Model": "您的模型名称", // String 必填,指定使用的模型
"APIKey": "您的LLM API密钥", // String 必填
"APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL
"Streaming": true // Boolean 非必填,指定是否使用流式传输
}
LLMConfig
- LLM配置。需符合openai规范,为JSON字符串,示例如下:
{
"LLMType": “大模型类型", // String 必填,如:"openai"
"Model": "您的模型名称", // String 必填,指定使用的模型
"APIKey": "您的LLM API密钥", // String 必填
"APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL
"Streaming": true // Boolean 非必填,指定是否使用流式传输
}
public String getTTSConfig()
{
"AppId": 您的应用ID, // Integer 必填
"TTSType": "TTS类型", // String TTS类型, 固定为"tencent"
"SecretId": "您的密钥ID", // String 必填
"SecretKey": "您的密钥Key", // String 必填
"VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见语音合成计费概述。完整的音色 ID 列表请参见语音合成音色列表。
"Speed": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 语速转换
"Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。
"PrimaryLanguage": "zh-CN" // String 非必填,主要语言
}
{
"AppId": 您的应用ID, // Integer 必填
"TTSType": "TTS类型", // String TTS类型, 固定为"tencent"
"SecretId": "您的密钥ID", // String 必填
"SecretKey": "您的密钥Key", // String 必填
"VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见语音合成计费概述。完整的音色 ID 列表请参见语音合成音色列表。
"Speed": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 语速转换
"Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。
"PrimaryLanguage": "zh-CN" // String 非必填,主要语言
}
public void setTTSConfig(String TTSConfig)
{
"AppId": 您的应用ID, // Integer 必填
"TTSType": "TTS类型", // String TTS类型, 固定为"tencent"
"SecretId": "您的密钥ID", // String 必填
"SecretKey": "您的密钥Key", // String 必填
"VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见语音合成计费概述。完整的音色 ID 列表请参见语音合成音色列表。
"Speed": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 语速转换
"Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。
"PrimaryLanguage": "zh-CN" // String 非必填,主要语言
}
TTSConfig
- TTS配置,为JSON字符串,腾讯云TTS示例如下:
{
"AppId": 您的应用ID, // Integer 必填
"TTSType": "TTS类型", // String TTS类型, 固定为"tencent"
"SecretId": "您的密钥ID", // String 必填
"SecretKey": "您的密钥Key", // String 必填
"VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见语音合成计费概述。完整的音色 ID 列表请参见语音合成音色列表。
"Speed": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 语速转换
"Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。
"PrimaryLanguage": "zh-CN" // String 非必填,主要语言
}
Copyright © 2024. All rights reserved.