tencentcloud-sdk-nodejs-trtc 4.0.1043 → 4.0.1051

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-trtc",
3
- "version": "4.0.1043",
3
+ "version": "4.0.1051",
4
4
  "description": "Tencent Cloud API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
@@ -75,6 +75,16 @@ export interface AgentConfig {
75
75
  * 欢迎消息优先级,0默认,1高优,高优不能被打断。
76
76
  */
77
77
  WelcomeMessagePriority?: number
78
+ /**
79
+ * 用于过滤LLM返回内容,不播放括号中的内容。
80
+ 1:中文括号()
81
+ 2:英文括号()
82
+ 3:中文方括号【】
83
+ 4:英文方括号[]
84
+ 5:英文花括号{}
85
+ 默认值为空,表示不进行过滤。
86
+ */
87
+ FilterBracketsContent?: number
78
88
  }
79
89
 
80
90
  /**
@@ -313,8 +323,8 @@ export interface STTConfig {
313
323
  语音转文本不同套餐版本支持的语言如下:
314
324
 
315
325
  **基础版**:
316
- - "zh": 中文
317
- - "zh-TW": 中国台湾
326
+ - "zh": 中文(简体)
327
+ - "zh-TW": 中文(繁体)
318
328
  - "en": 英语
319
329
 
320
330
  **标准版:**
@@ -676,7 +686,7 @@ export interface VideoEncode {
676
686
  */
677
687
  Width: number
678
688
  /**
679
- * 输出流高,音视频输出时必填。取值范围[0,1080],单位为像素值。
689
+ * 输出流高,音视频输出时必填。取值范围[0,1920],单位为像素值。
680
690
  */
681
691
  Height: number
682
692
  /**
@@ -3135,7 +3145,7 @@ export interface StartAIConversationRequest {
3135
3145
  LLMConfig?: string
3136
3146
  /**
3137
3147
  * TTS配置,为JSON字符串,腾讯云TTS示例如下:
3138
- <pre>{ <br> &emsp; "AppId": 您的应用ID, // Integer 必填<br> &emsp; "TTSType": "TTS类型", // String TTS类型, 固定为"tencent"<br> &emsp; "SecretId": "您的密钥ID", // String 必填<br> &emsp; "SecretKey": "您的密钥Key", // String 必填<br> &emsp; "VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<br> &emsp; "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等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br> &emsp; "Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br> &emsp; "PrimaryLanguage": "zh-CN" // String 非必填,主要语言<br> &emsp;}</pre>
3148
+ <pre>{ <br> &emsp; "AppId": 您的应用ID, // Integer 必填<br> &emsp; "TTSType": "TTS类型", // String TTS类型, 固定为"tencent"<br> &emsp; "SecretId": "您的密钥ID", // String 必填<br> &emsp; "SecretKey": "您的密钥Key", // String 必填<br> &emsp; "VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<br> &emsp; "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等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br> &emsp; "Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br> &emsp;}</pre>
3139
3149
  */
3140
3150
  TTSConfig?: string
3141
3151
  /**
@@ -3208,6 +3218,7 @@ export interface StartPublishCdnStreamRequest {
3208
3218
  AgentParams: AgentParams
3209
3219
  /**
3210
3220
  * 是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转码费用。
3221
+ 注:混流是必须转码,这个参数需设置为1。
3211
3222
  */
3212
3223
  WithTranscoding: number
3213
3224
  /**
@@ -3793,6 +3804,7 @@ export interface UpdatePublishCdnStreamRequest {
3793
3804
  SequenceNumber: number
3794
3805
  /**
3795
3806
  * 是否转码,0表示无需转码,1表示需要转码。
3807
+ 注:混流是必须转码,这个参数需设置为1。
3796
3808
  */
3797
3809
  WithTranscoding: number
3798
3810
  /**
@@ -57,6 +57,16 @@ export interface AgentConfig {
57
57
  * 欢迎消息优先级,0默认,1高优,高优不能被打断。
58
58
  */
59
59
  WelcomeMessagePriority?: number;
60
+ /**
61
+ * 用于过滤LLM返回内容,不播放括号中的内容。
62
+ 1:中文括号()
63
+ 2:英文括号()
64
+ 3:中文方括号【】
65
+ 4:英文方括号[]
66
+ 5:英文花括号{}
67
+ 默认值为空,表示不进行过滤。
68
+ */
69
+ FilterBracketsContent?: number;
60
70
  }
61
71
  /**
62
72
  * CreatePicture请求参数结构体
@@ -286,8 +296,8 @@ export interface STTConfig {
286
296
  语音转文本不同套餐版本支持的语言如下:
287
297
 
288
298
  **基础版**:
289
- - "zh": 中文
290
- - "zh-TW": 中国台湾
299
+ - "zh": 中文(简体)
300
+ - "zh-TW": 中文(繁体)
291
301
  - "en": 英语
292
302
 
293
303
  **标准版:**
@@ -633,7 +643,7 @@ export interface VideoEncode {
633
643
  */
634
644
  Width: number;
635
645
  /**
636
- * 输出流高,音视频输出时必填。取值范围[0,1080],单位为像素值。
646
+ * 输出流高,音视频输出时必填。取值范围[0,1920],单位为像素值。
637
647
  */
638
648
  Height: number;
639
649
  /**
@@ -2995,7 +3005,7 @@ export interface StartAIConversationRequest {
2995
3005
  LLMConfig?: string;
2996
3006
  /**
2997
3007
  * TTS配置,为JSON字符串,腾讯云TTS示例如下:
2998
- <pre>{ <br> &emsp; "AppId": 您的应用ID, // Integer 必填<br> &emsp; "TTSType": "TTS类型", // String TTS类型, 固定为"tencent"<br> &emsp; "SecretId": "您的密钥ID", // String 必填<br> &emsp; "SecretKey": "您的密钥Key", // String 必填<br> &emsp; "VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<br> &emsp; "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等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br> &emsp; "Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br> &emsp; "PrimaryLanguage": "zh-CN" // String 非必填,主要语言<br> &emsp;}</pre>
3008
+ <pre>{ <br> &emsp; "AppId": 您的应用ID, // Integer 必填<br> &emsp; "TTSType": "TTS类型", // String TTS类型, 固定为"tencent"<br> &emsp; "SecretId": "您的密钥ID", // String 必填<br> &emsp; "SecretKey": "您的密钥Key", // String 必填<br> &emsp; "VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<br> &emsp; "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等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br> &emsp; "Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br> &emsp;}</pre>
2999
3009
  */
3000
3010
  TTSConfig?: string;
3001
3011
  /**
@@ -3064,6 +3074,7 @@ export interface StartPublishCdnStreamRequest {
3064
3074
  AgentParams: AgentParams;
3065
3075
  /**
3066
3076
  * 是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转码费用。
3077
+ 注:混流是必须转码,这个参数需设置为1。
3067
3078
  */
3068
3079
  WithTranscoding: number;
3069
3080
  /**
@@ -3621,6 +3632,7 @@ export interface UpdatePublishCdnStreamRequest {
3621
3632
  SequenceNumber: number;
3622
3633
  /**
3623
3634
  * 是否转码,0表示无需转码,1表示需要转码。
3635
+ 注:混流是必须转码,这个参数需设置为1。
3624
3636
  */
3625
3637
  WithTranscoding: number;
3626
3638
  /**