tencentcloud-sdk-nodejs-trtc 4.1.240 → 4.1.246

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.1.240",
3
+ "version": "4.1.246",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -134,6 +134,19 @@ export interface AgentConfig {
134
134
  */
135
135
  InterruptWordList?: Array<string>;
136
136
  }
137
+ /**
138
+ * 伴生转录术语表项
139
+ */
140
+ export interface TerminologyItem {
141
+ /**
142
+ * <p>翻译目标语言。</p>
143
+ */
144
+ TargetLang: string;
145
+ /**
146
+ * <p>翻译目标语言对应的翻译术语配置。</p>
147
+ */
148
+ Terminology: Array<TermPair>;
149
+ }
137
150
  /**
138
151
  * CreatePicture请求参数结构体
139
152
  */
@@ -534,6 +547,31 @@ export interface STTConfig {
534
547
  */
535
548
  VadLevel?: number;
536
549
  }
550
+ /**
551
+ * TTS的声音参数配置
552
+ */
553
+ export interface Voice {
554
+ /**
555
+ * <p>音色 ID,可从音色列表获取,或使用声音克隆生成的自定义音色 ID</p>
556
+ */
557
+ VoiceId: string;
558
+ /**
559
+ * <p>语速调节,0.5 为半速慢放,2.0 为两倍速快放,1.0 为正常语速,区间:[0.5, 2.0],默认1.0</p>
560
+ */
561
+ Speed?: number;
562
+ /**
563
+ * <p>音量调节,0 为静音,10 为最大音量,建议保持默认值 1.0,区间:[0, 10],默认1.0</p>
564
+ */
565
+ Volume?: number;
566
+ /**
567
+ * <p>音高调节,负值声音更低沉,正值声音更尖锐,0 为原始音高,区间 [-12, 12], 默认0</p>
568
+ */
569
+ Pitch?: number;
570
+ /**
571
+ * <p>情绪控制,目前仅flow_01_ex模型支持</p><p>枚举值:</p><ul><li>happy: 高兴</li><li>sad: 悲伤</li><li>angry: 愤怒</li><li>fearful: 害怕</li><li>disgusted: 厌恶</li><li>surprised: 惊讶</li><li>calm: 中性</li><li>fluent: 生动</li><li>whisper: 低语</li></ul>
572
+ */
573
+ Emotion?: string;
574
+ }
537
575
  /**
538
576
  * DescribeTRTCMarketScaleData请求参数结构体
539
577
  */
@@ -584,32 +622,32 @@ export interface McuLayoutVolume {
584
622
  */
585
623
  export interface VoiceCloneRequest {
586
624
  /**
587
- * TRTC的SdkAppId
625
+ * <p>TRTC的SdkAppId</p>
588
626
  */
589
627
  SdkAppId: number;
590
628
  /**
591
- * 声音克隆的名称, 只允许使用数字、字母、下划线,不能超过36
629
+ * <p>声音克隆的名称, 只允许使用数字、字母、下划线,不能超过36位</p>
592
630
  */
593
631
  VoiceName: string;
594
632
  /**
595
- * 声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在6秒~180秒之间
633
+ * <p>声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在6秒~180秒之间</p>
596
634
  */
597
635
  PromptAudio: string;
598
636
  /**
599
- * TTS的API密钥
637
+ * <p>TTS的API密钥</p>
600
638
  * @deprecated
601
639
  */
602
640
  APIKey?: string;
603
641
  /**
604
- * 声音克隆的参考文本,为参考音频对应的文字。
642
+ * <p>声音克隆的参考文本,为参考音频对应的文字。</p>
605
643
  */
606
644
  PromptText?: string;
607
645
  /**
608
- * TTS的模型:flow_01_turbo,flow_01_ex
646
+ * <p>TTS的模型:flow_02_turbo,flow_01_ex</p><p>枚举值:</p><ul><li>flow_02_turbo: flow_02_turbo</li><li>flow_01_ex: flow_01_ex</li></ul>
609
647
  */
610
648
  Model?: string;
611
649
  /**
612
- * 语言参数,默认为空, 参考: (ISO 639-1)
650
+ * <p>语言参数,默认为空, 参考: (ISO 639-1)</p>
613
651
  */
614
652
  Language?: string;
615
653
  }
@@ -760,35 +798,35 @@ export interface McuBackgroundCustomRender {
760
798
  */
761
799
  export interface AsyncTextToSpeechRequest {
762
800
  /**
763
- * 需要转语音的文字内容,最大允许50000字符,注意 1汉字=2字符
801
+ * <p>需要转语音的文字内容,最大允许50000字符,注意 1汉字=2字符</p>
764
802
  */
765
803
  Text: string;
766
804
  /**
767
- * 文本转语音的声音配置
805
+ * <p>文本转语音的声音配置</p>
768
806
  */
769
807
  Voice: Voice;
770
808
  /**
771
- * TRTC的SdkAppId
809
+ * <p>TRTC的SdkAppId</p>
772
810
  */
773
811
  SdkAppId: number;
774
812
  /**
775
- * 文本转语音的输出音频的格式
813
+ * <p>文本转语音的输出音频的格式</p>
776
814
  */
777
815
  AudioFormat?: AudioFormat;
778
816
  /**
779
- * TTS的模型,当前固定为:flow_01_turbo
817
+ * <p>TTS的模型,当前固定为:flow_02_turbo</p><p>枚举值:</p><ul><li>flow_02_turbo: flow_02_turbo</li></ul>
780
818
  */
781
819
  Model?: string;
782
820
  /**
783
- * 多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。
821
+ * <p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
784
822
  */
785
823
  PronunciationDict?: Array<PronunciationDict>;
786
824
  /**
787
- * 默认为0,0表示不生成字幕,1表示生成字幕
825
+ * <p>默认为0,0表示不生成字幕,1表示生成字幕</p>
788
826
  */
789
827
  AlignmentMode?: number;
790
828
  /**
791
- * 需要合成的语言(ISO 639-1),默认自动识别,支持的语言如下: zh(中文) en(英文) yue(粤语) ja(日语) ko(韩语) ar(阿拉伯语) id(印尼语) th(泰语)
829
+ * <p>需要合成的语言(ISO 639-1),默认自动识别,支持的语言如下: zh(中文) en(英文) yue(粤语) ja(日语) ko(韩语) ar(阿拉伯语) id(印尼语) th(泰语)</p>
792
830
  */
793
831
  LanguageCode?: string;
794
832
  }
@@ -1519,9 +1557,13 @@ export interface DescribeAsyncTextToSpeechResponse {
1519
1557
  */
1520
1558
  export interface TranslationParam {
1521
1559
  /**
1522
- * 翻译的目标语言,示例值["en", "ja"]。目标语种列表[中文 "zh",英语 "en",越南语 "vi",日语 "ja",韩语 "ko",印度尼西亚语 "id",泰语 "th",葡萄牙语 "pt",阿拉伯语 "ar",西班牙语 "es",法语 "fr",马来语 "ms",德语 "de",意大利语 "it",俄语 "ru"]
1560
+ * <p>翻译的目标语言,示例值[&quot;en&quot;, &quot;ja&quot;]。目标语种列表[中文 &quot;zh&quot;,英语 &quot;en&quot;,越南语 &quot;vi&quot;,日语 &quot;ja&quot;,韩语 &quot;ko&quot;,印度尼西亚语 &quot;id&quot;,泰语 &quot;th&quot;,葡萄牙语 &quot;pt&quot;,阿拉伯语 &quot;ar&quot;,西班牙语 &quot;es&quot;,法语 &quot;fr&quot;,马来语 &quot;ms&quot;,德语 &quot;de&quot;,意大利语 &quot;it&quot;,俄语 &quot;ru&quot;]。</p>
1523
1561
  */
1524
1562
  TargetLang?: Array<string>;
1563
+ /**
1564
+ * <p>翻译术语表配置。</p>
1565
+ */
1566
+ Terminologies?: Array<TerminologyItem>;
1525
1567
  }
1526
1568
  /**
1527
1569
  * 腾讯云对象存储COS以及第三方云存储的账号信息
@@ -1999,7 +2041,7 @@ export interface MixTranscodeParams {
1999
2041
  */
2000
2042
  export interface CreateCloudTranscriptionResponse {
2001
2043
  /**
2002
- * 用于唯一标识转录任务,由腾讯云服务端生成,后续查询和停止请求都需要携带TaskID参数。
2044
+ * <p>用于唯一标识转录任务,由腾讯云服务端生成,后续查询和停止请求都需要携带TaskID参数。</p>
2003
2045
  */
2004
2046
  TaskId?: string;
2005
2047
  /**
@@ -3366,6 +3408,27 @@ export interface RemoveUserRequest {
3366
3408
  */
3367
3409
  UserIds: Array<string>;
3368
3410
  }
3411
+ /**
3412
+ * 伴生转录TTS的语音参数配置
3413
+ */
3414
+ export interface TTSVoice {
3415
+ /**
3416
+ * <p>音色 ID。</p>
3417
+ */
3418
+ VoiceId: string;
3419
+ /**
3420
+ * <p>语速调节,0.5 为半速慢放,2.0 为两倍速快放,1.0 为正常语速,区间:[0.5, 2.0],默认1.0。</p>
3421
+ */
3422
+ Speed?: number;
3423
+ /**
3424
+ * <p>音量调节,0 为静音,10 为最大音量,建议保持默认值 1.0,区间:[0, 10],默认1.0。</p>
3425
+ */
3426
+ Volume?: number;
3427
+ /**
3428
+ * <p>音高调节,负值声音更低沉,正值声音更尖锐,0 为原始音高,区间 [-12, 12],默认0。</p>
3429
+ */
3430
+ Pitch?: number;
3431
+ }
3369
3432
  /**
3370
3433
  * DismissRoom请求参数结构体
3371
3434
  */
@@ -4318,25 +4381,29 @@ export interface DescribePictureRequest {
4318
4381
  PageNo?: number;
4319
4382
  }
4320
4383
  /**
4321
- * TTS的声音参数配置
4384
+ * 伴生转录TTS参数
4322
4385
  */
4323
- export interface Voice {
4386
+ export interface TTSParam {
4324
4387
  /**
4325
- * 音色 ID,可从音色列表获取,或使用声音克隆生成的自定义音色 ID
4388
+ * <p>tts模型</p>
4326
4389
  */
4327
- VoiceId: string;
4390
+ Model: string;
4328
4391
  /**
4329
- * 语速调节,0.5 为半速慢放,2.0 为两倍速快放,1.0 为正常语速,区间:[0.5, 2.0],默认1.0
4392
+ * <p>tts语言,必须在TranslationParam 的TargetLang列表中。</p>
4330
4393
  */
4331
- Speed?: number;
4394
+ Language: string;
4332
4395
  /**
4333
- * 音量调节,0 为静音,10 为最大音量,建议保持默认值 1.0,区间:[0, 10],默认1.0
4396
+ * <p>需要TTS播报的主播用户,该主播用户必须在订阅白名单里并且不在订阅黑名单里。</p>
4334
4397
  */
4335
- Volume?: number;
4398
+ TargetUser: TranscriptionUserInfoParams;
4336
4399
  /**
4337
- * 音高调节,负值声音更低沉,正值声音更尖锐,0 为原始音高,区间 [-12, 12], 默认0
4400
+ * <p>TTS 音频回推到房间的机器人用户。</p>
4338
4401
  */
4339
- Pitch?: number;
4402
+ TTSRobotUser: TranscriptionUserInfoParams;
4403
+ /**
4404
+ * <p>TTS的声音配置参数。</p>
4405
+ */
4406
+ Voice: TTSVoice;
4340
4407
  }
4341
4408
  /**
4342
4409
  * ModifyCloudModeration返回参数结构体
@@ -4469,15 +4536,15 @@ export interface DescribeTrtcRoomUsageRequest {
4469
4536
  */
4470
4537
  export interface TextToSpeechResponse {
4471
4538
  /**
4472
- * Base64编码的音频数据
4539
+ * <p>Base64编码的音频数据</p>
4473
4540
  */
4474
4541
  Audio?: string;
4475
4542
  /**
4476
- * 字幕对齐数据
4543
+ * <p>字幕对齐数据</p>
4477
4544
  */
4478
4545
  Alignments?: Array<AlignmentItem>;
4479
4546
  /**
4480
- * 音频时长
4547
+ * <p>音频时长</p>
4481
4548
  */
4482
4549
  TotalDurationMs?: number;
4483
4550
  /**
@@ -4706,36 +4773,40 @@ export interface SingleSubscribeParams {
4706
4773
  */
4707
4774
  export interface CreateCloudTranscriptionRequest {
4708
4775
  /**
4709
- * TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和转录的房间所对应的SdkAppId相同。
4776
+ * <p>TRTC的<a href="https://cloud.tencent.com/document/product/647/46351#sdkappid">SdkAppId</a>,和转录的房间所对应的SdkAppId相同。</p>
4710
4777
  */
4711
4778
  SdkAppId: number;
4712
4779
  /**
4713
- * TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),转录的TRTC房间所对应的RoomId。注:房间号类型默认为整型,若房间号类型为字符串,请通过RoomIdType指定。
4780
+ * <p>TRTC的<a href="https://cloud.tencent.com/document/product/647/46351#roomid">RoomId</a>,转录的TRTC房间所对应的RoomId。注:房间号类型默认为整型,若房间号类型为字符串,请通过RoomIdType指定。</p>
4714
4781
  */
4715
4782
  RoomId: string;
4716
4783
  /**
4717
- * 房间信息RoomType,必须和转录的房间所对应的RoomId类型相同,0为整型房间号,1为字符串房间号。
4784
+ * <p>房间信息RoomType,必须和转录的房间所对应的RoomId类型相同,0为整型房间号,1为字符串房间号。</p>
4718
4785
  */
4719
4786
  RoomIdType: number;
4720
4787
  /**
4721
- * 转录服务加入TRTC房间的参数。
4788
+ * <p>转录服务加入TRTC房间的参数。</p>
4722
4789
  */
4723
4790
  TranscriptionParam: TranscriptionParam;
4724
4791
  /**
4725
- * 转录服务ASR使用的参数。
4792
+ * <p>转录服务ASR使用的参数。</p>
4726
4793
  */
4727
4794
  AsrParam: AsrParam;
4728
4795
  /**
4729
- * 转录服务翻译使用的参数。
4796
+ * <p>转录服务翻译使用的参数。</p>
4730
4797
  */
4731
4798
  TranslationParam?: TranslationParam;
4799
+ /**
4800
+ * <p>转录服务TTS使用的参数。</p>
4801
+ */
4802
+ TTSParam?: Array<TTSParam>;
4732
4803
  }
4733
4804
  /**
4734
4805
  * AsyncTextToSpeech返回参数结构体
4735
4806
  */
4736
4807
  export interface AsyncTextToSpeechResponse {
4737
4808
  /**
4738
- * 任务ID
4809
+ * <p>任务ID</p>
4739
4810
  */
4740
4811
  TaskId?: string;
4741
4812
  /**
@@ -4994,7 +5065,7 @@ export interface AuditStorageParams {
4994
5065
  */
4995
5066
  export interface VoiceCloneResponse {
4996
5067
  /**
4997
- * 克隆出的音色ID,可以用此id进行语音合成
5068
+ * <p>克隆出的音色ID,可以用此id进行语音合成</p>
4998
5069
  */
4999
5070
  VoiceId?: string;
5000
5071
  /**
@@ -5066,51 +5137,46 @@ export interface UpdateStreamIngestRequest {
5066
5137
  */
5067
5138
  export interface TextToSpeechSSERequest {
5068
5139
  /**
5069
- * 需要转语音的文字内容,长度范围:[1, 255]
5140
+ * <p>需要转语音的文字内容,长度范围:[1, 255]</p>
5070
5141
  */
5071
5142
  Text: string;
5072
5143
  /**
5073
- * 文本转语音的声音配置
5144
+ * <p>文本转语音的声音配置</p>
5074
5145
  */
5075
5146
  Voice: Voice;
5076
5147
  /**
5077
- * TRTC的SdkAppId
5148
+ * <p>TRTC的SdkAppId</p>
5078
5149
  */
5079
5150
  SdkAppId: number;
5080
5151
  /**
5081
- * 文本转语音的输出音频的格式
5152
+ * <p>文本转语音的输出音频的格式</p>
5082
5153
  */
5083
5154
  AudioFormat?: AudioFormat;
5084
5155
  /**
5085
- * TTS的API密钥
5156
+ * <p>TTS的API密钥</p>
5086
5157
  * @deprecated
5087
5158
  */
5088
5159
  APIKey?: string;
5089
5160
  /**
5090
- * TTS的模型,当前固定为:flow_01_turbo
5161
+ * <p>TTS的模型,当前固定为:flow_02_turbo</p><p>枚举值:</p><ul><li>flow_02_turbo: flow_02_turbo</li></ul>
5091
5162
  */
5092
5163
  Model?: string;
5093
5164
  /**
5094
- * 需要合成的语言(ISO 639-1),默认自动识别,支持如下语言:
5095
- - zh(中文)
5096
- - en(英文)
5097
- - yue(粤语)
5098
- - ja(日语)
5099
- - ko(韩语)
5100
- - ar(阿拉伯语)
5101
- - id(印尼语)
5102
- - th(泰语)
5103
-
5165
+ * <p>需要合成的语言(ISO 639-1),默认自动识别,支持如下语言:</p><ul><li>zh(中文)</li><li>en(英文)</li><li>yue(粤语)</li><li>ja(日语)</li><li>ko(韩语)</li><li>ar(阿拉伯语)</li><li>id(印尼语)</li><li>th(泰语)</li></ul>
5104
5166
  */
5105
5167
  Language?: string;
5106
5168
  /**
5107
- * 多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。
5169
+ * <p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
5108
5170
  */
5109
5171
  PronunciationDict?: Array<PronunciationDict>;
5110
5172
  /**
5111
- * 默认为0,0表示不生成字幕,1表示生成字幕
5173
+ * <p>默认为0,0表示不生成字幕,1表示生成字幕</p>
5112
5174
  */
5113
5175
  AlignmentMode?: number;
5176
+ /**
5177
+ * <p>json字符串,用于拓展用法</p>
5178
+ */
5179
+ ExtraParams?: string;
5114
5180
  }
5115
5181
  /**
5116
5182
  * StopWebRecord返回参数结构体
@@ -5121,6 +5187,19 @@ export interface StopWebRecordResponse {
5121
5187
  */
5122
5188
  RequestId?: string;
5123
5189
  }
5190
+ /**
5191
+ * 伴生转录术语表词组对
5192
+ */
5193
+ export interface TermPair {
5194
+ /**
5195
+ * <p>源术语。</p>
5196
+ */
5197
+ Source: string;
5198
+ /**
5199
+ * <p>目标术语翻译结果。</p>
5200
+ */
5201
+ Target: string;
5202
+ }
5124
5203
  /**
5125
5204
  * DeletePicture请求参数结构体
5126
5205
  */
@@ -5409,50 +5488,46 @@ export interface DeleteBasicModerationResponse {
5409
5488
  */
5410
5489
  export interface TextToSpeechRequest {
5411
5490
  /**
5412
- * 需要转语音的文字内容,长度范围:[1, 255]
5491
+ * <p>需要转语音的文字内容,长度范围:[1, 255]</p>
5413
5492
  */
5414
5493
  Text: string;
5415
5494
  /**
5416
- * 文本转语音的声音配置
5495
+ * <p>文本转语音的声音配置</p>
5417
5496
  */
5418
5497
  Voice: Voice;
5419
5498
  /**
5420
- * TRTC的SdkAppId
5499
+ * <p>TRTC的SdkAppId</p>
5421
5500
  */
5422
5501
  SdkAppId: number;
5423
5502
  /**
5424
- * 文本转语音的输出音频的格式
5503
+ * <p>文本转语音的输出音频的格式</p>
5425
5504
  */
5426
5505
  AudioFormat?: AudioFormat;
5427
5506
  /**
5428
- * TTS的API密钥
5507
+ * <p>TTS的API密钥</p>
5429
5508
  * @deprecated
5430
5509
  */
5431
5510
  APIKey?: string;
5432
5511
  /**
5433
- * TTS的模型,当前固定为:flow_01_turbo
5512
+ * <p>TTS的模型,当前固定为:flow_02_turbo</p><p>枚举值:</p><ul><li>flow_02_turbo: flow_02_turbo</li></ul>
5434
5513
  */
5435
5514
  Model?: string;
5436
5515
  /**
5437
- * 需要合成的语言(ISO 639-1),默认自动识别,支持的语言如下:
5438
- - zh(中文)
5439
- - en(英文)
5440
- - yue(粤语)
5441
- - ja(日语)
5442
- - ko(韩语)
5443
- - ar(阿拉伯语)
5444
- - id(印尼语)
5445
- - th(泰语)
5516
+ * <p>需要合成的语言(ISO 639-1),默认自动识别,支持的语言如下:</p><ul><li>zh(中文)</li><li>en(英文)</li><li>yue(粤语)</li><li>ja(日语)</li><li>ko(韩语)</li><li>ar(阿拉伯语)</li><li>id(印尼语)</li><li>th(泰语)</li></ul>
5446
5517
  */
5447
5518
  Language?: string;
5448
5519
  /**
5449
- * 多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。
5520
+ * <p>多音字/生僻字发音纠正词典条目。指定特定词语在本次请求中使用的发音。</p>
5450
5521
  */
5451
5522
  PronunciationDict?: Array<PronunciationDict>;
5452
5523
  /**
5453
- * 默认为0,0表示不生成字幕,1表示生成字幕
5524
+ * <p>默认为0,0表示不生成字幕,1表示生成字幕</p>
5454
5525
  */
5455
5526
  AlignmentMode?: number;
5527
+ /**
5528
+ * <p>json字符串,用于拓展用法</p>
5529
+ */
5530
+ ExtraParams?: string;
5456
5531
  }
5457
5532
  /**
5458
5533
  * DescribeStreamIngest请求参数结构体