tencentcloud-sdk-trtc 3.0.825 → 3.0.827

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: 4283bceff8a6246ab6b0bcf1cbee8cf61da7312e
4
- data.tar.gz: 30410f552fd5bf091532946d5af9f1aec5f9e078
3
+ metadata.gz: 70fd68622125897d7440b5401b5df2c68cdb3bcc
4
+ data.tar.gz: 8b92f0ae523f73e9e4c2c01f6944fbe7ce952a8a
5
5
  SHA512:
6
- metadata.gz: a8259038787ca6a79904222e4d772ab1e346fcd8dfab13b6e8e49f68d6c481a4ad40fc3a1bce3d7f098a5b407de4a9508a746677833c2beca16b112b253f0d8c
7
- data.tar.gz: 06a169c1b77d2ec9a4d4416c76c50accd749c8d4436df307f5c93e51e037d34e18a6897ec8ace39129e47a610ebc53a1c87751a2df06d6134012b414839f04ab
6
+ metadata.gz: 5aafbe3d9522d3282200da240279541b851607edd8cab4edd1ee3b018bdb9c3ad5399e629b7b880373e8ddc264da5b1476b2abf8c9af3eea126919860b696455
7
+ data.tar.gz: ceadf1a87efdcb8c74571baf449dfab65f8338692f52b54abfe3202557eb35f58f4a52592576e51c6425763e3500eacbc0479ff8a11b74d8a2824bf99e24154d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.825
1
+ 3.0.827
@@ -136,6 +136,30 @@ module TencentCloud
136
136
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
137
137
  end
138
138
 
139
+ # 查询AI转录状态
140
+
141
+ # @param request: Request instance for DescribeAITranscription.
142
+ # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeAITranscriptionRequest`
143
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeAITranscriptionResponse`
144
+ def DescribeAITranscription(request)
145
+ body = send_request('DescribeAITranscription', request.serialize)
146
+ response = JSON.parse(body)
147
+ if response['Response'].key?('Error') == false
148
+ model = DescribeAITranscriptionResponse.new
149
+ model.deserialize(response['Response'])
150
+ model
151
+ else
152
+ code = response['Response']['Error']['Code']
153
+ message = response['Response']['Error']['Message']
154
+ reqid = response['Response']['RequestId']
155
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
156
+ end
157
+ rescue TencentCloud::Common::TencentCloudSDKException => e
158
+ raise e
159
+ rescue StandardError => e
160
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
161
+ end
162
+
139
163
  # 查询指定时间内的用户列表及用户通话质量数据,最大可查询14天内数据。DataType 不为null,查询起止时间不超过1个小时,查询用户不超过6个,支持跨天查询。DataType为null时,查询起止时间不超过4个小时, 默认查询6个用户,同时支持每页查询100以内用户个数(PageSize不超过100)。接口用于查询质量问题,不推荐作为计费使用。(同老接口DescribeCallDetail)
140
164
  # **注意**:
141
165
  # 1.该接口只用于历史数据统计或核对数据使用,实时类关键业务逻辑不能使用。
@@ -983,6 +1007,30 @@ module TencentCloud
983
1007
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
984
1008
  end
985
1009
 
1010
+ # 这个接口调用后,后台会启动机器人,实时进行语音识别并下发字幕和会议记录。
1011
+
1012
+ # @param request: Request instance for StartAITranscription.
1013
+ # @type request: :class:`Tencentcloud::trtc::V20190722::StartAITranscriptionRequest`
1014
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::StartAITranscriptionResponse`
1015
+ def StartAITranscription(request)
1016
+ body = send_request('StartAITranscription', request.serialize)
1017
+ response = JSON.parse(body)
1018
+ if response['Response'].key?('Error') == false
1019
+ model = StartAITranscriptionResponse.new
1020
+ model.deserialize(response['Response'])
1021
+ model
1022
+ else
1023
+ code = response['Response']['Error']['Code']
1024
+ message = response['Response']['Error']['Message']
1025
+ reqid = response['Response']['RequestId']
1026
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1027
+ end
1028
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1029
+ raise e
1030
+ rescue StandardError => e
1031
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1032
+ end
1033
+
986
1034
  # 接口说明:启动云端混流,并指定混流画面中各路画面的布局位置。
987
1035
 
988
1036
  # TRTC 的一个房间中可能会同时存在多路音视频流,您可以通过此 API 接口,通知腾讯云服务端将多路视频画面合成一路,并指定每一路画面的位置,同时将多路声音进行混音,最终形成一路音视频流,以便用于录制和直播观看。房间销毁后混流自动结束。
@@ -1241,6 +1289,30 @@ module TencentCloud
1241
1289
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1242
1290
  end
1243
1291
 
1292
+ # 停止AI转录
1293
+
1294
+ # @param request: Request instance for StopAITranscription.
1295
+ # @type request: :class:`Tencentcloud::trtc::V20190722::StopAITranscriptionRequest`
1296
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::StopAITranscriptionResponse`
1297
+ def StopAITranscription(request)
1298
+ body = send_request('StopAITranscription', request.serialize)
1299
+ response = JSON.parse(body)
1300
+ if response['Response'].key?('Error') == false
1301
+ model = StopAITranscriptionResponse.new
1302
+ model.deserialize(response['Response'])
1303
+ model
1304
+ else
1305
+ code = response['Response']['Error']['Code']
1306
+ message = response['Response']['Error']['Message']
1307
+ reqid = response['Response']['RequestId']
1308
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1309
+ end
1310
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1311
+ raise e
1312
+ rescue StandardError => e
1313
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1314
+ end
1315
+
1244
1316
  # 接口说明:结束云端混流
1245
1317
 
1246
1318
  # @param request: Request instance for StopMCUMixTranscode.
@@ -1361,6 +1433,30 @@ module TencentCloud
1361
1433
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1362
1434
  end
1363
1435
 
1436
+ # 对转录的文本进行总结
1437
+
1438
+ # @param request: Request instance for SummarizeTranscription.
1439
+ # @type request: :class:`Tencentcloud::trtc::V20190722::SummarizeTranscriptionRequest`
1440
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::SummarizeTranscriptionResponse`
1441
+ def SummarizeTranscription(request)
1442
+ body = send_request('SummarizeTranscription', request.serialize)
1443
+ response = JSON.parse(body)
1444
+ if response['Response'].key?('Error') == false
1445
+ model = SummarizeTranscriptionResponse.new
1446
+ model.deserialize(response['Response'])
1447
+ model
1448
+ else
1449
+ code = response['Response']['Error']['Code']
1450
+ message = response['Response']['Error']['Message']
1451
+ reqid = response['Response']['RequestId']
1452
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1453
+ end
1454
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1455
+ raise e
1456
+ rescue StandardError => e
1457
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1458
+ end
1459
+
1364
1460
  # 更新转推任务。
1365
1461
  # 注:请参见启动转推任务的接口说明和使用说明。
1366
1462
 
@@ -482,6 +482,46 @@ module TencentCloud
482
482
  end
483
483
  end
484
484
 
485
+ # DescribeAITranscription请求参数结构体
486
+ class DescribeAITranscriptionRequest < TencentCloud::Common::AbstractModel
487
+ # @param TaskId: 唯一标识AI转录任务。
488
+ # @type TaskId: String
489
+
490
+ attr_accessor :TaskId
491
+
492
+ def initialize(taskid=nil)
493
+ @TaskId = taskid
494
+ end
495
+
496
+ def deserialize(params)
497
+ @TaskId = params['TaskId']
498
+ end
499
+ end
500
+
501
+ # DescribeAITranscription返回参数结构体
502
+ class DescribeAITranscriptionResponse < TencentCloud::Common::AbstractModel
503
+ # @param StartTime: 起始时间。
504
+ # @type StartTime: String
505
+ # @param Status: 转录任务状态。
506
+ # @type Status: String
507
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
508
+ # @type RequestId: String
509
+
510
+ attr_accessor :StartTime, :Status, :RequestId
511
+
512
+ def initialize(starttime=nil, status=nil, requestid=nil)
513
+ @StartTime = starttime
514
+ @Status = status
515
+ @RequestId = requestid
516
+ end
517
+
518
+ def deserialize(params)
519
+ @StartTime = params['StartTime']
520
+ @Status = params['Status']
521
+ @RequestId = params['RequestId']
522
+ end
523
+ end
524
+
485
525
  # DescribeCallDetailInfo请求参数结构体
486
526
  class DescribeCallDetailInfoRequest < TencentCloud::Common::AbstractModel
487
527
  # @param CommId: 通话 ID(唯一标识一次通话): SdkAppId_RoomId(房间号)_ CreateTime(房间创建时间,unix时间戳,单位为s)例:1400xxxxxx_218695_1590065777。通过 DescribeRoomInfo(查询历史房间列表)接口获取([查询历史房间列表](https://cloud.tencent.com/document/product/647/44050))。
@@ -3295,6 +3335,40 @@ module TencentCloud
3295
3335
  end
3296
3336
  end
3297
3337
 
3338
+ # 语音识别使用的配置
3339
+ 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"
3355
+ # @type Language: String
3356
+ # @param TranslationLanguage: 选填,如果填写,则会启用翻译,不填则忽略。支持语言同Language字段。
3357
+ # @type TranslationLanguage: String
3358
+
3359
+ attr_accessor :Language, :TranslationLanguage
3360
+
3361
+ def initialize(language=nil, translationlanguage=nil)
3362
+ @Language = language
3363
+ @TranslationLanguage = translationlanguage
3364
+ end
3365
+
3366
+ def deserialize(params)
3367
+ @Language = params['Language']
3368
+ @TranslationLanguage = params['TranslationLanguage']
3369
+ end
3370
+ end
3371
+
3298
3372
  # 云端录制控制参数。
3299
3373
  class RecordParams < TencentCloud::Common::AbstractModel
3300
3374
  # @param RecordMode: 录制模式:
@@ -3720,6 +3794,64 @@ module TencentCloud
3720
3794
  end
3721
3795
  end
3722
3796
 
3797
+ # StartAITranscription请求参数结构体
3798
+ class StartAITranscriptionRequest < TencentCloud::Common::AbstractModel
3799
+ # @param SdkAppId: TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),使用该sdkappid开启任务。
3800
+ # @type SdkAppId: Integer
3801
+ # @param RoomId: TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),使用该roomid开启任务。
3802
+ # @type RoomId: String
3803
+ # @param TranscriptionParams: 启动转录机器人和鉴权的参数。
3804
+ # @type TranscriptionParams: :class:`Tencentcloud::Trtc.v20190722.models.TranscriptionParams`
3805
+ # @param RoomIdType: TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。
3806
+ # @type RoomIdType: Integer
3807
+ # @param RecognizeConfig: 语音识别配置
3808
+ # @type RecognizeConfig: :class:`Tencentcloud::Trtc.v20190722.models.RecognizeConfig`
3809
+
3810
+ attr_accessor :SdkAppId, :RoomId, :TranscriptionParams, :RoomIdType, :RecognizeConfig
3811
+
3812
+ def initialize(sdkappid=nil, roomid=nil, transcriptionparams=nil, roomidtype=nil, recognizeconfig=nil)
3813
+ @SdkAppId = sdkappid
3814
+ @RoomId = roomid
3815
+ @TranscriptionParams = transcriptionparams
3816
+ @RoomIdType = roomidtype
3817
+ @RecognizeConfig = recognizeconfig
3818
+ end
3819
+
3820
+ def deserialize(params)
3821
+ @SdkAppId = params['SdkAppId']
3822
+ @RoomId = params['RoomId']
3823
+ unless params['TranscriptionParams'].nil?
3824
+ @TranscriptionParams = TranscriptionParams.new
3825
+ @TranscriptionParams.deserialize(params['TranscriptionParams'])
3826
+ end
3827
+ @RoomIdType = params['RoomIdType']
3828
+ unless params['RecognizeConfig'].nil?
3829
+ @RecognizeConfig = RecognizeConfig.new
3830
+ @RecognizeConfig.deserialize(params['RecognizeConfig'])
3831
+ end
3832
+ end
3833
+ end
3834
+
3835
+ # StartAITranscription返回参数结构体
3836
+ class StartAITranscriptionResponse < TencentCloud::Common::AbstractModel
3837
+ # @param TaskId: 用于唯一标识转录任务。
3838
+ # @type TaskId: String
3839
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3840
+ # @type RequestId: String
3841
+
3842
+ attr_accessor :TaskId, :RequestId
3843
+
3844
+ def initialize(taskid=nil, requestid=nil)
3845
+ @TaskId = taskid
3846
+ @RequestId = requestid
3847
+ end
3848
+
3849
+ def deserialize(params)
3850
+ @TaskId = params['TaskId']
3851
+ @RequestId = params['RequestId']
3852
+ end
3853
+ end
3854
+
3723
3855
  # StartMCUMixTranscodeByStrRoomId请求参数结构体
3724
3856
  class StartMCUMixTranscodeByStrRoomIdRequest < TencentCloud::Common::AbstractModel
3725
3857
  # @param SdkAppId: TRTC的SDKAppId。
@@ -4112,6 +4244,38 @@ module TencentCloud
4112
4244
  end
4113
4245
  end
4114
4246
 
4247
+ # StopAITranscription请求参数结构体
4248
+ class StopAITranscriptionRequest < TencentCloud::Common::AbstractModel
4249
+ # @param TaskId: 唯一标识转录任务。
4250
+ # @type TaskId: String
4251
+
4252
+ attr_accessor :TaskId
4253
+
4254
+ def initialize(taskid=nil)
4255
+ @TaskId = taskid
4256
+ end
4257
+
4258
+ def deserialize(params)
4259
+ @TaskId = params['TaskId']
4260
+ end
4261
+ end
4262
+
4263
+ # StopAITranscription返回参数结构体
4264
+ class StopAITranscriptionResponse < TencentCloud::Common::AbstractModel
4265
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4266
+ # @type RequestId: String
4267
+
4268
+ attr_accessor :RequestId
4269
+
4270
+ def initialize(requestid=nil)
4271
+ @RequestId = requestid
4272
+ end
4273
+
4274
+ def deserialize(params)
4275
+ @RequestId = params['RequestId']
4276
+ end
4277
+ end
4278
+
4115
4279
  # StopMCUMixTranscodeByStrRoomId请求参数结构体
4116
4280
  class StopMCUMixTranscodeByStrRoomIdRequest < TencentCloud::Common::AbstractModel
4117
4281
  # @param SdkAppId: TRTC的SDKAppId。
@@ -4379,6 +4543,33 @@ module TencentCloud
4379
4543
  end
4380
4544
  end
4381
4545
 
4546
+ # SummarizeTranscription请求参数结构体
4547
+ class SummarizeTranscriptionRequest < TencentCloud::Common::AbstractModel
4548
+
4549
+
4550
+ def initialize()
4551
+ end
4552
+
4553
+ def deserialize(params)
4554
+ end
4555
+ end
4556
+
4557
+ # SummarizeTranscription返回参数结构体
4558
+ class SummarizeTranscriptionResponse < TencentCloud::Common::AbstractModel
4559
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4560
+ # @type RequestId: String
4561
+
4562
+ attr_accessor :RequestId
4563
+
4564
+ def initialize(requestid=nil)
4565
+ @RequestId = requestid
4566
+ end
4567
+
4568
+ def deserialize(params)
4569
+ @RequestId = params['RequestId']
4570
+ end
4571
+ end
4572
+
4382
4573
  # TRTC数据大盘/实时监控 API接口数据出参
4383
4574
  class TRTCDataResp < TencentCloud::Common::AbstractModel
4384
4575
  # @param StatementID: StatementID值,监控仪表盘下固定为0。
@@ -4517,6 +4708,47 @@ module TencentCloud
4517
4708
  end
4518
4709
  end
4519
4710
 
4711
+ # AI转录参数
4712
+ class TranscriptionParams < TencentCloud::Common::AbstractModel
4713
+ # @param UserId: 转录机器人的UserId,用于进房发起转录任务。【注意】这个UserId不能与当前房间内的主播观众[UserId](https://cloud.tencent.com/document/product/647/46351#userid)重复。如果一个房间发起多个转录任务时,机器人的userid也不能相互重复,否则会中断前一个任务。需要保证转录机器人UserId在房间内唯一。
4714
+ # @type UserId: String
4715
+ # @param UserSig: 转录机器人UserId对应的校验签名,即UserId和UserSig相当于转录机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。
4716
+ # @type UserSig: String
4717
+ # @param IMAdminUserId: IM[管理员账户](
4718
+ # https://cloud.tencent.com/document/product/269/31999#app-.E7.AE.A1.E7.90.86.E5.91.98),如果填写,后台下发消息会使用IM通道,而不是TRTC自定义消息。
4719
+ # @type IMAdminUserId: String
4720
+ # @param IMAdminUserSig: IM管理员账户生成的签名,用于向特定群组发送消息。如果填写,后台下发消息会使用IM通道,而不是TRTC自定义消息。必须和IM管理员的UserId一起填写。
4721
+ # @type IMAdminUserSig: String
4722
+ # @param MaxIdleTime: 房间内推流用户全部退出后超过MaxIdleTime秒,后台自动关闭转录任务,默认值是60s。
4723
+ # @type MaxIdleTime: Integer
4724
+ # @param TranscriptionMode: 1表示机器人只订阅单个人的流,0表示机器人订阅整个房间的流,如果不填默认订阅整个房间的流。
4725
+ # @type TranscriptionMode: Integer
4726
+ # @param TargetUserId: TranscriptionMode为1时必填,机器人只会拉该userid的流,忽略房间里其他用户。
4727
+ # @type TargetUserId: String
4728
+
4729
+ attr_accessor :UserId, :UserSig, :IMAdminUserId, :IMAdminUserSig, :MaxIdleTime, :TranscriptionMode, :TargetUserId
4730
+
4731
+ def initialize(userid=nil, usersig=nil, imadminuserid=nil, imadminusersig=nil, maxidletime=nil, transcriptionmode=nil, targetuserid=nil)
4732
+ @UserId = userid
4733
+ @UserSig = usersig
4734
+ @IMAdminUserId = imadminuserid
4735
+ @IMAdminUserSig = imadminusersig
4736
+ @MaxIdleTime = maxidletime
4737
+ @TranscriptionMode = transcriptionmode
4738
+ @TargetUserId = targetuserid
4739
+ end
4740
+
4741
+ def deserialize(params)
4742
+ @UserId = params['UserId']
4743
+ @UserSig = params['UserSig']
4744
+ @IMAdminUserId = params['IMAdminUserId']
4745
+ @IMAdminUserSig = params['IMAdminUserSig']
4746
+ @MaxIdleTime = params['MaxIdleTime']
4747
+ @TranscriptionMode = params['TranscriptionMode']
4748
+ @TargetUserId = params['TargetUserId']
4749
+ end
4750
+ end
4751
+
4520
4752
  # 实时音视频用量在某一时间段的统计信息。
4521
4753
  class TrtcUsage < TencentCloud::Common::AbstractModel
4522
4754
  # @param TimeKey: 时间点,格式为YYYY-MM-DD HH:mm:ss。多天查询时,HH:mm:ss为00:00:00。
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.825
4
+ version: 3.0.827
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-19 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common