tencentcloud-sdk-nodejs-trtc 4.1.159 → 4.1.164
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2251,6 +2251,10 @@ export interface AudioFormat {
|
|
|
2251
2251
|
- 24000
|
|
2252
2252
|
*/
|
|
2253
2253
|
SampleRate?: number;
|
|
2254
|
+
/**
|
|
2255
|
+
* MP3 比特率 (kbps),仅对 MP3 格式生效, 可以选: `64`, `128`, `192`, `256` , 默认: `128`
|
|
2256
|
+
*/
|
|
2257
|
+
Bitrate?: number;
|
|
2254
2258
|
}
|
|
2255
2259
|
/**
|
|
2256
2260
|
* 混流布局参数。
|
|
@@ -3621,13 +3625,11 @@ export interface StartAIConversationRequest {
|
|
|
3621
3625
|
*/
|
|
3622
3626
|
STTConfig?: STTConfig;
|
|
3623
3627
|
/**
|
|
3624
|
-
* LLM配置。需符合openai规范,为JSON
|
|
3625
|
-
<pre> { <br>   "LLMType": "大模型类型", // String 必填,如:"openai" <br>   "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br>   "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br>   "History": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br>   "HistoryMode": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br>   "Streaming": true // Boolean 非必填,指定是否使用流式传输<br>  } </pre>
|
|
3626
|
-
|
|
3628
|
+
* 必填参数,LLM配置。需符合openai规范,为JSON字符串,示例如下:<pre> { <br>   "LLMType": "大模型类型", // String 必填,如:"openai" <br>   "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br>   "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br>   "History": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br>   "HistoryMode": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br>   "Streaming": true // Boolean 非必填,指定是否使用流式传输<br>  } </pre>
|
|
3627
3629
|
*/
|
|
3628
3630
|
LLMConfig?: string;
|
|
3629
3631
|
/**
|
|
3630
|
-
* TTS
|
|
3632
|
+
* 必填参数,TTS配置,详见 [TTS配置说明](https://cloud.tencent.com/document/product/647/115414 ), 为JSON字符串: TRTC TTS的配置如下:```{ "TTSType": "flow", // 【必填】固定为此值 "VoiceId": "v-female-R2s4N9qJ", // 【必填】精品音色 ID /克隆音色 ID, 可选择不同音色, ID 库参考下方音色列表 "Model": "flow_01_turbo", // 【必填】当前默认的 TTS 模型版本(对应 Flash 版本) "Speed": 1.0, //【可选】调节语速 范围 [0.5-2.0],默认 1.0; 取值越大,语速越快 "Volume": 1.0, // 【可选】调节音量 [0, 10] 默认值 1.0; 取值越大,音量越高 "Pitch": 0, // 【可选】调节语调 [-12,12],默认值为 0,其中 0 为原音色输出。 "Language": "zh" //【可选】建议填写,目前支持填写中文:zh 英文:en 粤语方言:yue; 参数参考:(ISO 639-1) }```
|
|
3631
3633
|
*/
|
|
3632
3634
|
TTSConfig?: string;
|
|
3633
3635
|
/**
|