tencentcloud-sdk-trtc 3.0.834 → 3.0.836

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71e5d1e93788154c465f23b6aaf4094a84c350a7
4
- data.tar.gz: 42a01e7fb8a7c9c551ce61af5b596702036cfe0c
3
+ metadata.gz: 5bc91cc540c63d610259f31a97ded8eb57ddd0e6
4
+ data.tar.gz: d9470e2b3824bd4640c1b797bfb50afff89c6231
5
5
  SHA512:
6
- metadata.gz: 6608a32a696e2f1b88406adbecd1fde68157211fbf5efa73ba5bbb00e4538067ab1c080dddbd9dadd48df8dce6a47591d358c7c83a883e89361ffa60159c12da
7
- data.tar.gz: b2890c5aa6953b53600c964f6d91129044db50b6d8746794a8a61b8ee00ba0cb7f0993bdb573707d97872a6ff6cb2acdb6f9d0472e218a178f4edc2dce166f2f
6
+ metadata.gz: 4a91173b290ae54a5d39fc7fd0365dea3a8948577c683d91679932ce049b1c21cc2a32845b94fb3dbe55956d57550cfa63d458842fb50961ccbc0e9155292e92
7
+ data.tar.gz: 4817422643f3f4f6b4ce1c5763346165cb1d35b6b072442b9aad717b6a7d2e63688a2d5bbc521c421f27fc1be0c27daad2ee5f6cb38a0c3f5042f77346c172ee
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.834
1
+ 3.0.836
@@ -136,7 +136,7 @@ module TencentCloud
136
136
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
137
137
  end
138
138
 
139
- # 查询AI转录状态
139
+ # 查询AI转录任务状态。
140
140
 
141
141
  # @param request: Request instance for DescribeAITranscription.
142
142
  # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeAITranscriptionRequest`
@@ -1007,7 +1007,50 @@ module TencentCloud
1007
1007
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1008
1008
  end
1009
1009
 
1010
- # 这个接口调用后,后台会启动机器人,实时进行语音识别并下发字幕和会议记录。
1010
+ # 这个接口调用后,后台会启动转录机器人,实时进行语音识别并下发字幕和转录消息。
1011
+ # 转录机器人支持两种拉流方式,通过TranscriptionMode字段控制:
1012
+ # - 拉取全房间的流。
1013
+ # - 拉取特定用户的流。
1014
+
1015
+ # 服务端实时下发字幕和会议记录有两种方式,通过IMAdminUserId和IMAdminUserSig字段控制:
1016
+ # - 如果填写IMAdminUserId和IMAdminUserSig,服务端会调用IM的[发送群组消息](https://cloud.tencent.com/document/product/269/1629)API来向端上实时下发消息。客户端只需监听群组消息的回调即可,比如[web端回调](https://cloud.tencent.com/document/product/269/75319)。
1017
+ # - 如果不填写IMAdminUserId和IMAdminUserSig,服务端使用TRTC自定义消息通道下发消息,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。
1018
+
1019
+ # 服务端实时下发的消息是JSON字符串,实时字幕具体格式如下:
1020
+ # `{
1021
+ # "type": "subtitle",
1022
+ # "userid": "xxx",
1023
+ # "text": "xxx",
1024
+ # "translation_text": "xxx",
1025
+ # "start_time": "00:00:02",
1026
+ # "end_time": "00:00:05"
1027
+ # }`
1028
+ # 字段作用如下:
1029
+ # - type是subtitle,表示这是实时字幕消息。
1030
+ # - userid表示是哪个用户说的话。
1031
+ # - text是语音识别出的文本。
1032
+ # - translation_text是text翻译后的文本,如果不启用翻译,则是空字符串。
1033
+ # - start_time和end_time表示该字幕消息从任务开启后的开始和结束时间。
1034
+
1035
+ # 转录消息具体格式如下:
1036
+ # `{
1037
+ # "type": "transcription",
1038
+ # "userid": "xxx",
1039
+ # "text": "xxx",
1040
+ # "translation_text": "xx",
1041
+ # "start_time": "00:00:02",
1042
+ # "end_time": "00:00:05"
1043
+ # }`
1044
+ # 字段作用如下:
1045
+ # - type是transcription,表示这是转录消息。
1046
+ # - 其余字段同实时字幕消息。
1047
+
1048
+ # 转录消息和实时字幕消息的区别是,转录消息是完整的一句话,实时字幕消息则是这一句话的中间阶段。
1049
+ # 假如有一句完整的话,“今天天气怎么样?”,那么服务的下发消息的顺序可能是这样:
1050
+ # - 字幕消息,“今天”
1051
+ # - 字幕消息,“今天天气”
1052
+ # - 字幕消息,“今天天气怎么样”
1053
+ # - 转录消息,“今天天气怎么样?”
1011
1054
 
1012
1055
  # @param request: Request instance for StartAITranscription.
1013
1056
  # @type request: :class:`Tencentcloud::trtc::V20190722::StartAITranscriptionRequest`
@@ -1289,7 +1332,7 @@ module TencentCloud
1289
1332
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1290
1333
  end
1291
1334
 
1292
- # 停止AI转录
1335
+ # 停止AI转录任务。
1293
1336
 
1294
1337
  # @param request: Request instance for StopAITranscription.
1295
1338
  # @type request: :class:`Tencentcloud::trtc::V20190722::StopAITranscriptionRequest`
@@ -1433,7 +1476,7 @@ module TencentCloud
1433
1476
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1434
1477
  end
1435
1478
 
1436
- # 对转录的文本进行总结
1479
+ # 对转录的文本进行总结。
1437
1480
 
1438
1481
  # @param request: Request instance for SummarizeTranscription.
1439
1482
  # @type request: :class:`Tencentcloud::trtc::V20190722::SummarizeTranscriptionRequest`
@@ -484,40 +484,64 @@ module TencentCloud
484
484
 
485
485
  # DescribeAITranscription请求参数结构体
486
486
  class DescribeAITranscriptionRequest < TencentCloud::Common::AbstractModel
487
- # @param TaskId: 唯一标识AI转录任务。
487
+ # @param TaskId: 查询任务状态,不使用时传入空字符串。
488
+ # 有两种查询方式:
489
+ # 1、只填写TaskId,这种方式使用TaskId来查询任务
490
+ # 2、TaskId为空字符串,填写SdkAppId和SessionId,这种方式不需要使用TaskId查询任务
488
491
  # @type TaskId: String
492
+ # @param SdkAppId: TRTC的SdkAppId,和SessionId配合使用。
493
+ # @type SdkAppId: Integer
494
+ # @param SessionId: 开启转录任务时传入的SessionId,和SdkAppId配合使用。
495
+ # @type SessionId: String
489
496
 
490
- attr_accessor :TaskId
497
+ attr_accessor :TaskId, :SdkAppId, :SessionId
491
498
 
492
- def initialize(taskid=nil)
499
+ def initialize(taskid=nil, sdkappid=nil, sessionid=nil)
493
500
  @TaskId = taskid
501
+ @SdkAppId = sdkappid
502
+ @SessionId = sessionid
494
503
  end
495
504
 
496
505
  def deserialize(params)
497
506
  @TaskId = params['TaskId']
507
+ @SdkAppId = params['SdkAppId']
508
+ @SessionId = params['SessionId']
498
509
  end
499
510
  end
500
511
 
501
512
  # DescribeAITranscription返回参数结构体
502
513
  class DescribeAITranscriptionResponse < TencentCloud::Common::AbstractModel
503
- # @param StartTime: 起始时间。
514
+ # @param StartTime: 任务开始时间。
504
515
  # @type StartTime: String
505
516
  # @param Status: 转录任务状态。
517
+ # 有4个值:
518
+ # 1、Idle表示任务未开始
519
+ # 2、Preparing表示任务准备中
520
+ # 3、InProgress表示任务正在运行
521
+ # 4、Stopped表示任务已停止,正在清理资源中
506
522
  # @type Status: String
523
+ # @param TaskId: 唯一标识一次任务。
524
+ # @type TaskId: String
525
+ # @param SessionId: 开启转录任务时填写的SessionId,如果没写则不返回。
526
+ # @type SessionId: String
507
527
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
508
528
  # @type RequestId: String
509
529
 
510
- attr_accessor :StartTime, :Status, :RequestId
530
+ attr_accessor :StartTime, :Status, :TaskId, :SessionId, :RequestId
511
531
 
512
- def initialize(starttime=nil, status=nil, requestid=nil)
532
+ def initialize(starttime=nil, status=nil, taskid=nil, sessionid=nil, requestid=nil)
513
533
  @StartTime = starttime
514
534
  @Status = status
535
+ @TaskId = taskid
536
+ @SessionId = sessionid
515
537
  @RequestId = requestid
516
538
  end
517
539
 
518
540
  def deserialize(params)
519
541
  @StartTime = params['StartTime']
520
542
  @Status = params['Status']
543
+ @TaskId = params['TaskId']
544
+ @SessionId = params['SessionId']
521
545
  @RequestId = params['RequestId']
522
546
  end
523
547
  end
@@ -3337,34 +3361,91 @@ module TencentCloud
3337
3361
 
3338
3362
  # 语音识别使用的配置
3339
3363
  class RecognizeConfig < TencentCloud::Common::AbstractModel
3340
- # @param Language: 支持的语言,目前支持语言如下:
3341
- # Chinese = "zh"
3342
- # Chinese_TW = "zh-TW"
3343
- # English = "en"
3344
- # Vietnamese = "vi"
3345
- # Japanese = "ja"
3346
- # Korean = "ko"
3347
- # Indonesia = "id"
3348
- # Thai = "th"
3349
- # Portuguese = "pt"
3350
- # Turkish = "tr"
3351
- # Arabic = "ar"
3352
- # Spanish = "es"
3353
- # Hindi = "hi"
3354
- # French = "fr"
3364
+ # @param Language: 语音识别支持的语言,默认是"zh"。目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):
3365
+ # Chinese = "zh"
3366
+ # Chinese_TW = "zh-TW"
3367
+ # English = "en"
3368
+ # Vietnamese = "vi"
3369
+ # Japanese = "ja"
3370
+ # Korean = "ko"
3371
+ # Indonesia = "id"
3372
+ # Thai = "th"
3373
+ # Portuguese = "pt"
3374
+ # Turkish = "tr"
3375
+ # Arabic = "ar"
3376
+ # Spanish = "es"
3377
+ # Hindi = "hi"
3378
+ # French = "fr"
3379
+ # Malay = "ms"
3380
+ # Filipino = "fil"
3381
+ # German = "de"
3382
+ # Italian = "it"
3383
+ # Russian = "ru"
3384
+
3385
+ # 注意:
3386
+ # 如果缺少满足您需求的语言,请联系我们技术人员。
3387
+ # tencent asr不支持"it"和"ru",google asr全都支持。
3355
3388
  # @type Language: String
3356
- # @param TranslationLanguage: 选填,如果填写,则会启用翻译,不填则忽略。支持语言同Language字段。
3389
+ # @param Model: 使用的模型,目前支持tencent和google,默认是tencent。
3390
+ # @type Model: String
3391
+ # @param TranslationLanguage: 翻译功能支持的语言,如果填写,则会启用翻译,不填则只会使用语音识别。
3392
+ # 目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):
3393
+ # Chinese = "zh"
3394
+ # Chinese_TW = "zh-TW"
3395
+ # English = "en"
3396
+ # Vietnamese = "vi"
3397
+ # Japanese = "ja"
3398
+ # Korean = "ko"
3399
+ # Indonesia = "id"
3400
+ # Thai = "th"
3401
+ # Portuguese = "pt"
3402
+ # Turkish = "tr"
3403
+ # Arabic = "ar"
3404
+ # Spanish = "es"
3405
+ # Hindi = "hi"
3406
+ # French = "fr"
3407
+ # Malay = "ms"
3408
+ # Filipino = "fil"
3409
+ # German = "de"
3410
+ # Italian = "it"
3411
+ # Russian = "ru"
3412
+
3413
+ # 注意:
3414
+ # 如果缺少满足您需求的语言,请联系我们技术人员。
3415
+ # google支持上述语言两两之间翻译,tencent只支持部分语言之间翻译。
3416
+
3417
+ # tencnet目标语言,各源语言的目标语言支持列表如下,冒号左侧是目标语言,右侧是源语言:
3418
+ # - zh(简体中文):zh-TW(繁体中文)、en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)
3419
+ # - zh-TW(繁体中文):zh(简体中文)、en(英语)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)
3420
+ # - en(英语):zh(中文)、zh-TW(繁体中文)、ja(日语)、ko(韩语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)、vi(越南语)、id(印尼语)、th(泰语)、ms(马来语)、ar(阿拉伯语)、hi(印地语)
3421
+ # - ja(日语):zh(中文)、zh-TW(繁体中文)、en(英语)、ko(韩语)
3422
+ # - ko(韩语):zh(中文)、zh-TW(繁体中文)、en(英语)、ja(日语)
3423
+ # - fr(法语):zh(中文)、zh-TW(繁体中文)、en(英语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)
3424
+ # - es(西班牙语):zh(中文)、zh-TW(繁体中文)、en(英语)、fr(法语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)
3425
+ # - it(意大利语):zh(中文)、zh-TW(繁体中文)、en(英语)、fr(法语)、es(西班牙语)、de(德语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)
3426
+ # - de(德语):zh(中文)、zh-TW(繁体中文)、en(英语)、fr(法语)、es(西班牙语)、it(意大利语)、tr(土耳其语)、ru(俄语)、pt(葡萄牙语)
3427
+ # - tr(土耳其语):zh(中文)、zh-TW(繁体中文)、en(英语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、ru(俄语)、pt(葡萄牙语)
3428
+ # - ru(俄语):zh(中文)、zh-TW(繁体中文)、en(英语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、pt(葡萄牙语)
3429
+ # - pt(葡萄牙语):zh(中文)、zh-TW(繁体中文)、en(英语)、fr(法语)、es(西班牙语)、it(意大利语)、de(德语)、tr(土耳其语)、ru(俄语)
3430
+ # - vi(越南语):zh(中文)、zh-TW(繁体中文)、en(英语)
3431
+ # - id(印尼语):zh(中文)、zh-TW(繁体中文)、en(英语)
3432
+ # - th(泰语):zh(中文)、zh-TW(繁体中文)、en(英语)
3433
+ # - ms(马来语):zh(中文)、zh-TW(繁体中文)、en(英语)
3434
+ # - ar(阿拉伯语):en(英语)
3435
+ # - hi(印地语):en(英语)
3357
3436
  # @type TranslationLanguage: String
3358
3437
 
3359
- attr_accessor :Language, :TranslationLanguage
3438
+ attr_accessor :Language, :Model, :TranslationLanguage
3360
3439
 
3361
- def initialize(language=nil, translationlanguage=nil)
3440
+ def initialize(language=nil, model=nil, translationlanguage=nil)
3362
3441
  @Language = language
3442
+ @Model = model
3363
3443
  @TranslationLanguage = translationlanguage
3364
3444
  end
3365
3445
 
3366
3446
  def deserialize(params)
3367
3447
  @Language = params['Language']
3448
+ @Model = params['Model']
3368
3449
  @TranslationLanguage = params['TranslationLanguage']
3369
3450
  end
3370
3451
  end
@@ -3796,23 +3877,31 @@ module TencentCloud
3796
3877
 
3797
3878
  # StartAITranscription请求参数结构体
3798
3879
  class StartAITranscriptionRequest < TencentCloud::Common::AbstractModel
3799
- # @param SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),使用该sdkappid开启任务。
3880
+ # @param SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和开启转录任务的房间使用的SdkAppId相同。
3800
3881
  # @type SdkAppId: Integer
3801
- # @param RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),使用该roomid开启任务。
3882
+ # @param RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),表示开启转录任务的房间号。
3802
3883
  # @type RoomId: String
3803
- # @param TranscriptionParams: 启动转录机器人和鉴权的参数。
3884
+ # @param TranscriptionParams: 转录机器人的参数。
3804
3885
  # @type TranscriptionParams: :class:`Tencentcloud::Trtc.v20190722.models.TranscriptionParams`
3886
+ # @param SessionId: 调用方传入的唯一Id,服务端用来去重。
3887
+ # 注意:
3888
+ # 如果传入该参数,服务端优先使用该参数来去重。
3889
+ # 如果不传该参数,服务端的去重策略如下:
3890
+ # - 如果TranscriptionMode字段是0,则一个房间只能开启一个任务
3891
+ # - 如果TranscriptionMode字段是1,则一个TargetUserId只能开启一个任务
3892
+ # @type SessionId: String
3805
3893
  # @param RoomIdType: TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。
3806
3894
  # @type RoomIdType: Integer
3807
- # @param RecognizeConfig: 语音识别配置
3895
+ # @param RecognizeConfig: 语音识别配置。
3808
3896
  # @type RecognizeConfig: :class:`Tencentcloud::Trtc.v20190722.models.RecognizeConfig`
3809
3897
 
3810
- attr_accessor :SdkAppId, :RoomId, :TranscriptionParams, :RoomIdType, :RecognizeConfig
3898
+ attr_accessor :SdkAppId, :RoomId, :TranscriptionParams, :SessionId, :RoomIdType, :RecognizeConfig
3811
3899
 
3812
- def initialize(sdkappid=nil, roomid=nil, transcriptionparams=nil, roomidtype=nil, recognizeconfig=nil)
3900
+ def initialize(sdkappid=nil, roomid=nil, transcriptionparams=nil, sessionid=nil, roomidtype=nil, recognizeconfig=nil)
3813
3901
  @SdkAppId = sdkappid
3814
3902
  @RoomId = roomid
3815
3903
  @TranscriptionParams = transcriptionparams
3904
+ @SessionId = sessionid
3816
3905
  @RoomIdType = roomidtype
3817
3906
  @RecognizeConfig = recognizeconfig
3818
3907
  end
@@ -3824,6 +3913,7 @@ module TencentCloud
3824
3913
  @TranscriptionParams = TranscriptionParams.new
3825
3914
  @TranscriptionParams.deserialize(params['TranscriptionParams'])
3826
3915
  end
3916
+ @SessionId = params['SessionId']
3827
3917
  @RoomIdType = params['RoomIdType']
3828
3918
  unless params['RecognizeConfig'].nil?
3829
3919
  @RecognizeConfig = RecognizeConfig.new
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-trtc
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.834
4
+ version: 3.0.836
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-30 00:00:00.000000000 Z
11
+ date: 2024-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common