tencentcloud-sdk-trtc 3.0.834 → 3.0.835
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190722/client.rb +47 -4
- data/lib/v20190722/models.rb +120 -30
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fb08e952041133123eca5f8c81e36faecfa43eb
|
4
|
+
data.tar.gz: 20d6bca75aee304019cee21e25fc3f942132461c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a985a6d065854ad51e60da3d8b81773fc9bd62da0060b7e575e250ccaabcc3491cd6600417e78fa23bfc5ed2f37295784ccb51ea476684e66397da94bb8f8b67
|
7
|
+
data.tar.gz: 9992b86059a26d3c271703a86eee35b9dde095513875f342dad8a91b8d7321fb0a5b6a2d46d0126f2729d647850f4c07473ed144d59fde2e88a0f840a40e1aa1
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.835
|
data/lib/v20190722/client.rb
CHANGED
@@ -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`
|
data/lib/v20190722/models.rb
CHANGED
@@ -484,40 +484,64 @@ module TencentCloud
|
|
484
484
|
|
485
485
|
# DescribeAITranscription请求参数结构体
|
486
486
|
class DescribeAITranscriptionRequest < TencentCloud::Common::AbstractModel
|
487
|
-
# @param TaskId:
|
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
|
-
#
|
3342
|
-
#
|
3343
|
-
#
|
3344
|
-
#
|
3345
|
-
#
|
3346
|
-
#
|
3347
|
-
#
|
3348
|
-
#
|
3349
|
-
#
|
3350
|
-
#
|
3351
|
-
#
|
3352
|
-
#
|
3353
|
-
#
|
3354
|
-
#
|
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
|
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)
|
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)
|
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.
|
4
|
+
version: 3.0.835
|
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-
|
11
|
+
date: 2024-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|