tencentcloud-sdk-mps 3.0.1187 → 3.0.1191
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/v20190612/client.rb +24 -0
- data/lib/v20190612/models.rb +447 -9
- 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: 44b95e0c51b2169607aae42e28b37e0ee0877334
|
|
4
|
+
data.tar.gz: ade349b660b5592feea7a8f634bc438cf8bd3557
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3aeccb213e326b06ada3fd2f9b33bc26a237e981d6dd0d6f4457bfb2563515d551c409ff1dd45aabfbb20461a50161cc577b2df7d2408d9e95068f146a758e0
|
|
7
|
+
data.tar.gz: 96ed3ee8a9a01b403340b879a298d3966d281663392ccec14bc2793fad9e3475085633d50c4a73478a90fad99727ae23e2da631a546a7fe69cee22cda7201c44
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1191
|
data/lib/v20190612/client.rb
CHANGED
|
@@ -3488,6 +3488,30 @@ module TencentCloud
|
|
|
3488
3488
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3489
3489
|
end
|
|
3490
3490
|
|
|
3491
|
+
# 同步接口,返回语音识别结果
|
|
3492
|
+
|
|
3493
|
+
# @param request: Request instance for RecognizeAudio.
|
|
3494
|
+
# @type request: :class:`Tencentcloud::mps::V20190612::RecognizeAudioRequest`
|
|
3495
|
+
# @rtype: :class:`Tencentcloud::mps::V20190612::RecognizeAudioResponse`
|
|
3496
|
+
def RecognizeAudio(request)
|
|
3497
|
+
body = send_request('RecognizeAudio', request.serialize)
|
|
3498
|
+
response = JSON.parse(body)
|
|
3499
|
+
if response['Response'].key?('Error') == false
|
|
3500
|
+
model = RecognizeAudioResponse.new
|
|
3501
|
+
model.deserialize(response['Response'])
|
|
3502
|
+
model
|
|
3503
|
+
else
|
|
3504
|
+
code = response['Response']['Error']['Code']
|
|
3505
|
+
message = response['Response']['Error']['Message']
|
|
3506
|
+
reqid = response['Response']['RequestId']
|
|
3507
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
3508
|
+
end
|
|
3509
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
3510
|
+
raise e
|
|
3511
|
+
rescue StandardError => e
|
|
3512
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3513
|
+
end
|
|
3514
|
+
|
|
3491
3515
|
# 智能媒体识别,包含表情和动作识别。仅用于智学,其他调用无效。
|
|
3492
3516
|
|
|
3493
3517
|
# @param request: Request instance for RecognizeMediaForZhiXue.
|
data/lib/v20190612/models.rb
CHANGED
|
@@ -957,6 +957,8 @@ module TencentCloud
|
|
|
957
957
|
# <li>Dubbing:智能译制</li>
|
|
958
958
|
# <li>VideoRemake: 视频去重</li>
|
|
959
959
|
# <li>VideoComprehension: 视频(音频)理解</li>
|
|
960
|
+
# <li>Cutout:视频抠图</li>
|
|
961
|
+
# <li>Reel:智能成片</li>
|
|
960
962
|
# @type Type: String
|
|
961
963
|
# @param ClassificationTask: 视频内容分析智能分类任务的查询结果,当任务类型为 Classification 时有效。
|
|
962
964
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -997,10 +999,16 @@ module TencentCloud
|
|
|
997
999
|
# @param VideoComprehensionTask: 视频(音频)理解任务的查询结果,当任务类型为 VideoComprehension 时有效。
|
|
998
1000
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
999
1001
|
# @type VideoComprehensionTask: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskVideoComprehensionResult`
|
|
1002
|
+
# @param CutoutTask: 视频内容分析抠图任务的查询结果,当任务类型为Cutout时有效。
|
|
1003
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1004
|
+
# @type CutoutTask: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskCutoutResult`
|
|
1005
|
+
# @param ReelTask: 视频内容分析成片任务的查询结果,当任务类型为Reel时有效。
|
|
1006
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1007
|
+
# @type ReelTask: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskReelResult`
|
|
1000
1008
|
|
|
1001
|
-
attr_accessor :Type, :ClassificationTask, :CoverTask, :TagTask, :FrameTagTask, :HighlightTask, :DeLogoTask, :SegmentTask, :HeadTailTask, :DescriptionTask, :HorizontalToVerticalTask, :DubbingTask, :VideoRemakeTask, :VideoComprehensionTask
|
|
1009
|
+
attr_accessor :Type, :ClassificationTask, :CoverTask, :TagTask, :FrameTagTask, :HighlightTask, :DeLogoTask, :SegmentTask, :HeadTailTask, :DescriptionTask, :HorizontalToVerticalTask, :DubbingTask, :VideoRemakeTask, :VideoComprehensionTask, :CutoutTask, :ReelTask
|
|
1002
1010
|
|
|
1003
|
-
def initialize(type=nil, classificationtask=nil, covertask=nil, tagtask=nil, frametagtask=nil, highlighttask=nil, delogotask=nil, segmenttask=nil, headtailtask=nil, descriptiontask=nil, horizontaltoverticaltask=nil, dubbingtask=nil, videoremaketask=nil, videocomprehensiontask=nil)
|
|
1011
|
+
def initialize(type=nil, classificationtask=nil, covertask=nil, tagtask=nil, frametagtask=nil, highlighttask=nil, delogotask=nil, segmenttask=nil, headtailtask=nil, descriptiontask=nil, horizontaltoverticaltask=nil, dubbingtask=nil, videoremaketask=nil, videocomprehensiontask=nil, cutouttask=nil, reeltask=nil)
|
|
1004
1012
|
@Type = type
|
|
1005
1013
|
@ClassificationTask = classificationtask
|
|
1006
1014
|
@CoverTask = covertask
|
|
@@ -1015,6 +1023,8 @@ module TencentCloud
|
|
|
1015
1023
|
@DubbingTask = dubbingtask
|
|
1016
1024
|
@VideoRemakeTask = videoremaketask
|
|
1017
1025
|
@VideoComprehensionTask = videocomprehensiontask
|
|
1026
|
+
@CutoutTask = cutouttask
|
|
1027
|
+
@ReelTask = reeltask
|
|
1018
1028
|
end
|
|
1019
1029
|
|
|
1020
1030
|
def deserialize(params)
|
|
@@ -1071,6 +1081,14 @@ module TencentCloud
|
|
|
1071
1081
|
@VideoComprehensionTask = AiAnalysisTaskVideoComprehensionResult.new
|
|
1072
1082
|
@VideoComprehensionTask.deserialize(params['VideoComprehensionTask'])
|
|
1073
1083
|
end
|
|
1084
|
+
unless params['CutoutTask'].nil?
|
|
1085
|
+
@CutoutTask = AiAnalysisTaskCutoutResult.new
|
|
1086
|
+
@CutoutTask.deserialize(params['CutoutTask'])
|
|
1087
|
+
end
|
|
1088
|
+
unless params['ReelTask'].nil?
|
|
1089
|
+
@ReelTask = AiAnalysisTaskReelResult.new
|
|
1090
|
+
@ReelTask.deserialize(params['ReelTask'])
|
|
1091
|
+
end
|
|
1074
1092
|
end
|
|
1075
1093
|
end
|
|
1076
1094
|
|
|
@@ -1245,6 +1263,96 @@ module TencentCloud
|
|
|
1245
1263
|
end
|
|
1246
1264
|
end
|
|
1247
1265
|
|
|
1266
|
+
# 智能抠图任务输入类型
|
|
1267
|
+
class AiAnalysisTaskCutoutInput < TencentCloud::Common::AbstractModel
|
|
1268
|
+
# @param Definition: 视频智能抠图模板 ID。
|
|
1269
|
+
# @type Definition: Integer
|
|
1270
|
+
|
|
1271
|
+
attr_accessor :Definition
|
|
1272
|
+
|
|
1273
|
+
def initialize(definition=nil)
|
|
1274
|
+
@Definition = definition
|
|
1275
|
+
end
|
|
1276
|
+
|
|
1277
|
+
def deserialize(params)
|
|
1278
|
+
@Definition = params['Definition']
|
|
1279
|
+
end
|
|
1280
|
+
end
|
|
1281
|
+
|
|
1282
|
+
# 视频抠图结果信息
|
|
1283
|
+
class AiAnalysisTaskCutoutOutput < TencentCloud::Common::AbstractModel
|
|
1284
|
+
# @param Path: 视频智能抠图文件路径。
|
|
1285
|
+
# @type Path: String
|
|
1286
|
+
# @param OutputStorage: 视频智能抠图的存储位置。
|
|
1287
|
+
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
|
1288
|
+
|
|
1289
|
+
attr_accessor :Path, :OutputStorage
|
|
1290
|
+
|
|
1291
|
+
def initialize(path=nil, outputstorage=nil)
|
|
1292
|
+
@Path = path
|
|
1293
|
+
@OutputStorage = outputstorage
|
|
1294
|
+
end
|
|
1295
|
+
|
|
1296
|
+
def deserialize(params)
|
|
1297
|
+
@Path = params['Path']
|
|
1298
|
+
unless params['OutputStorage'].nil?
|
|
1299
|
+
@OutputStorage = TaskOutputStorage.new
|
|
1300
|
+
@OutputStorage.deserialize(params['OutputStorage'])
|
|
1301
|
+
end
|
|
1302
|
+
end
|
|
1303
|
+
end
|
|
1304
|
+
|
|
1305
|
+
# 视频抠图结果数据结构
|
|
1306
|
+
class AiAnalysisTaskCutoutResult < TencentCloud::Common::AbstractModel
|
|
1307
|
+
# @param Status: 任务状态,有 `PROCESSING`,`SUCCESS` 和 `FAIL` 三种
|
|
1308
|
+
# @type Status: String
|
|
1309
|
+
# @param ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 [媒体处理类错误码](https://cloud.tencent.com/document/product/862/50369#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81) 列表。
|
|
1310
|
+
# @type ErrCodeExt: String
|
|
1311
|
+
# @param Message: 错误信息
|
|
1312
|
+
# @type Message: String
|
|
1313
|
+
# @param Input: 抠图任务输入
|
|
1314
|
+
# @type Input: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskCutoutInput`
|
|
1315
|
+
# @param Output: 抠图任务输出
|
|
1316
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1317
|
+
# @type Output: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskCutoutOutput`
|
|
1318
|
+
# @param Progress: 任务进度
|
|
1319
|
+
# @type Progress: Integer
|
|
1320
|
+
# @param BeginProcessTime: 任务开始执行的时间,采用 ISO 日期格式。
|
|
1321
|
+
# @type BeginProcessTime: String
|
|
1322
|
+
# @param FinishTime: 任务结束执行的时间,采用 ISO 日期格式。
|
|
1323
|
+
# @type FinishTime: String
|
|
1324
|
+
|
|
1325
|
+
attr_accessor :Status, :ErrCodeExt, :Message, :Input, :Output, :Progress, :BeginProcessTime, :FinishTime
|
|
1326
|
+
|
|
1327
|
+
def initialize(status=nil, errcodeext=nil, message=nil, input=nil, output=nil, progress=nil, beginprocesstime=nil, finishtime=nil)
|
|
1328
|
+
@Status = status
|
|
1329
|
+
@ErrCodeExt = errcodeext
|
|
1330
|
+
@Message = message
|
|
1331
|
+
@Input = input
|
|
1332
|
+
@Output = output
|
|
1333
|
+
@Progress = progress
|
|
1334
|
+
@BeginProcessTime = beginprocesstime
|
|
1335
|
+
@FinishTime = finishtime
|
|
1336
|
+
end
|
|
1337
|
+
|
|
1338
|
+
def deserialize(params)
|
|
1339
|
+
@Status = params['Status']
|
|
1340
|
+
@ErrCodeExt = params['ErrCodeExt']
|
|
1341
|
+
@Message = params['Message']
|
|
1342
|
+
unless params['Input'].nil?
|
|
1343
|
+
@Input = AiAnalysisTaskCutoutInput.new
|
|
1344
|
+
@Input.deserialize(params['Input'])
|
|
1345
|
+
end
|
|
1346
|
+
unless params['Output'].nil?
|
|
1347
|
+
@Output = AiAnalysisTaskCutoutOutput.new
|
|
1348
|
+
@Output.deserialize(params['Output'])
|
|
1349
|
+
end
|
|
1350
|
+
@Progress = params['Progress']
|
|
1351
|
+
@BeginProcessTime = params['BeginProcessTime']
|
|
1352
|
+
@FinishTime = params['FinishTime']
|
|
1353
|
+
end
|
|
1354
|
+
end
|
|
1355
|
+
|
|
1248
1356
|
# 智能擦除任务输入类型
|
|
1249
1357
|
class AiAnalysisTaskDelLogoInput < TencentCloud::Common::AbstractModel
|
|
1250
1358
|
# @param Definition: 视频智能擦除模板 ID。
|
|
@@ -1870,6 +1978,108 @@ module TencentCloud
|
|
|
1870
1978
|
end
|
|
1871
1979
|
end
|
|
1872
1980
|
|
|
1981
|
+
# 智能成片任务输入类型
|
|
1982
|
+
class AiAnalysisTaskReelInput < TencentCloud::Common::AbstractModel
|
|
1983
|
+
# @param Definition: 智能成片模板 ID。
|
|
1984
|
+
# @type Definition: Integer
|
|
1985
|
+
|
|
1986
|
+
attr_accessor :Definition
|
|
1987
|
+
|
|
1988
|
+
def initialize(definition=nil)
|
|
1989
|
+
@Definition = definition
|
|
1990
|
+
end
|
|
1991
|
+
|
|
1992
|
+
def deserialize(params)
|
|
1993
|
+
@Definition = params['Definition']
|
|
1994
|
+
end
|
|
1995
|
+
end
|
|
1996
|
+
|
|
1997
|
+
# 智能成片结果信息
|
|
1998
|
+
class AiAnalysisTaskReelOutput < TencentCloud::Common::AbstractModel
|
|
1999
|
+
# @param VideoPath: 成片视频路径。
|
|
2000
|
+
# @type VideoPath: String
|
|
2001
|
+
# @param ScriptPath: 脚本文件路径
|
|
2002
|
+
# @type ScriptPath: String
|
|
2003
|
+
# @param OutputStorage: 成片视频存储位置。
|
|
2004
|
+
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
|
2005
|
+
|
|
2006
|
+
attr_accessor :VideoPath, :ScriptPath, :OutputStorage
|
|
2007
|
+
|
|
2008
|
+
def initialize(videopath=nil, scriptpath=nil, outputstorage=nil)
|
|
2009
|
+
@VideoPath = videopath
|
|
2010
|
+
@ScriptPath = scriptpath
|
|
2011
|
+
@OutputStorage = outputstorage
|
|
2012
|
+
end
|
|
2013
|
+
|
|
2014
|
+
def deserialize(params)
|
|
2015
|
+
@VideoPath = params['VideoPath']
|
|
2016
|
+
@ScriptPath = params['ScriptPath']
|
|
2017
|
+
unless params['OutputStorage'].nil?
|
|
2018
|
+
@OutputStorage = TaskOutputStorage.new
|
|
2019
|
+
@OutputStorage.deserialize(params['OutputStorage'])
|
|
2020
|
+
end
|
|
2021
|
+
end
|
|
2022
|
+
end
|
|
2023
|
+
|
|
2024
|
+
# 智能成片结果类型
|
|
2025
|
+
class AiAnalysisTaskReelResult < TencentCloud::Common::AbstractModel
|
|
2026
|
+
# @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
|
2027
|
+
# @type Status: String
|
|
2028
|
+
# @param ErrCode: 错误码,0:成功,其他值:失败。
|
|
2029
|
+
# @type ErrCode: Integer
|
|
2030
|
+
# @param Message: 错误信息。
|
|
2031
|
+
# @type Message: String
|
|
2032
|
+
# @param Input: 智能成片任务输入。
|
|
2033
|
+
# @type Input: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskReelInput`
|
|
2034
|
+
# @param Output: 智能成片任务输出。
|
|
2035
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2036
|
+
# @type Output: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskReelOutput`
|
|
2037
|
+
# @param ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 媒体处理类错误码 列表。
|
|
2038
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2039
|
+
# @type ErrCodeExt: String
|
|
2040
|
+
# @param Progress: 任务进度。
|
|
2041
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2042
|
+
# @type Progress: Integer
|
|
2043
|
+
# @param BeginProcessTime: 任务开始执行的时间,采用 ISO 日期格式。
|
|
2044
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2045
|
+
# @type BeginProcessTime: String
|
|
2046
|
+
# @param FinishTime: 任务执行完毕的时间,采用 ISO 日期格式。
|
|
2047
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2048
|
+
# @type FinishTime: String
|
|
2049
|
+
|
|
2050
|
+
attr_accessor :Status, :ErrCode, :Message, :Input, :Output, :ErrCodeExt, :Progress, :BeginProcessTime, :FinishTime
|
|
2051
|
+
|
|
2052
|
+
def initialize(status=nil, errcode=nil, message=nil, input=nil, output=nil, errcodeext=nil, progress=nil, beginprocesstime=nil, finishtime=nil)
|
|
2053
|
+
@Status = status
|
|
2054
|
+
@ErrCode = errcode
|
|
2055
|
+
@Message = message
|
|
2056
|
+
@Input = input
|
|
2057
|
+
@Output = output
|
|
2058
|
+
@ErrCodeExt = errcodeext
|
|
2059
|
+
@Progress = progress
|
|
2060
|
+
@BeginProcessTime = beginprocesstime
|
|
2061
|
+
@FinishTime = finishtime
|
|
2062
|
+
end
|
|
2063
|
+
|
|
2064
|
+
def deserialize(params)
|
|
2065
|
+
@Status = params['Status']
|
|
2066
|
+
@ErrCode = params['ErrCode']
|
|
2067
|
+
@Message = params['Message']
|
|
2068
|
+
unless params['Input'].nil?
|
|
2069
|
+
@Input = AiAnalysisTaskReelInput.new
|
|
2070
|
+
@Input.deserialize(params['Input'])
|
|
2071
|
+
end
|
|
2072
|
+
unless params['Output'].nil?
|
|
2073
|
+
@Output = AiAnalysisTaskReelOutput.new
|
|
2074
|
+
@Output.deserialize(params['Output'])
|
|
2075
|
+
end
|
|
2076
|
+
@ErrCodeExt = params['ErrCodeExt']
|
|
2077
|
+
@Progress = params['Progress']
|
|
2078
|
+
@BeginProcessTime = params['BeginProcessTime']
|
|
2079
|
+
@FinishTime = params['FinishTime']
|
|
2080
|
+
end
|
|
2081
|
+
end
|
|
2082
|
+
|
|
1873
2083
|
# 拆条任务输入类型
|
|
1874
2084
|
class AiAnalysisTaskSegmentInput < TencentCloud::Common::AbstractModel
|
|
1875
2085
|
# @param Definition: 拆条任务模板 ID。
|
|
@@ -25077,7 +25287,6 @@ module TencentCloud
|
|
|
25077
25287
|
# `iw`:希伯来语
|
|
25078
25288
|
# `ja`:日语
|
|
25079
25289
|
# `jv`:爪哇语
|
|
25080
|
-
# `jw`:爪哇语
|
|
25081
25290
|
# `ka`:格鲁吉亚语
|
|
25082
25291
|
# `kk`:哈萨克语
|
|
25083
25292
|
# `km`:高棉语
|
|
@@ -25164,7 +25373,6 @@ module TencentCloud
|
|
|
25164
25373
|
# `th`:泰语
|
|
25165
25374
|
# `ti`:提格里尼亚语
|
|
25166
25375
|
# `tk`:土库曼语
|
|
25167
|
-
# `tl`:菲律宾语(塔加拉语)
|
|
25168
25376
|
# `tn`:茨瓦纳语
|
|
25169
25377
|
# `tr`:土耳其语
|
|
25170
25378
|
# `ts`:聪加语
|
|
@@ -25198,10 +25406,13 @@ module TencentCloud
|
|
|
25198
25406
|
|
|
25199
25407
|
# **注意**:不传的情况下默认类型为 ASR识别字幕
|
|
25200
25408
|
# @type ProcessType: Integer
|
|
25409
|
+
# @param SelectingSubtitleAreasConfig: 字幕OCR提取框选区域配置
|
|
25410
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
25411
|
+
# @type SelectingSubtitleAreasConfig: :class:`Tencentcloud::Mps.v20190612.models.SelectingSubtitleAreasConfig`
|
|
25201
25412
|
|
|
25202
|
-
attr_accessor :SubtitleType, :VideoSrcLanguage, :SubtitleFormat, :TranslateSwitch, :TranslateDstLanguage, :AsrHotWordsConfigure, :ExtInfo, :ProcessType
|
|
25413
|
+
attr_accessor :SubtitleType, :VideoSrcLanguage, :SubtitleFormat, :TranslateSwitch, :TranslateDstLanguage, :AsrHotWordsConfigure, :ExtInfo, :ProcessType, :SelectingSubtitleAreasConfig
|
|
25203
25414
|
|
|
25204
|
-
def initialize(subtitletype=nil, videosrclanguage=nil, subtitleformat=nil, translateswitch=nil, translatedstlanguage=nil, asrhotwordsconfigure=nil, extinfo=nil, processtype=nil)
|
|
25415
|
+
def initialize(subtitletype=nil, videosrclanguage=nil, subtitleformat=nil, translateswitch=nil, translatedstlanguage=nil, asrhotwordsconfigure=nil, extinfo=nil, processtype=nil, selectingsubtitleareasconfig=nil)
|
|
25205
25416
|
@SubtitleType = subtitletype
|
|
25206
25417
|
@VideoSrcLanguage = videosrclanguage
|
|
25207
25418
|
@SubtitleFormat = subtitleformat
|
|
@@ -25210,6 +25421,7 @@ module TencentCloud
|
|
|
25210
25421
|
@AsrHotWordsConfigure = asrhotwordsconfigure
|
|
25211
25422
|
@ExtInfo = extinfo
|
|
25212
25423
|
@ProcessType = processtype
|
|
25424
|
+
@SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
|
|
25213
25425
|
end
|
|
25214
25426
|
|
|
25215
25427
|
def deserialize(params)
|
|
@@ -25224,6 +25436,10 @@ module TencentCloud
|
|
|
25224
25436
|
end
|
|
25225
25437
|
@ExtInfo = params['ExtInfo']
|
|
25226
25438
|
@ProcessType = params['ProcessType']
|
|
25439
|
+
unless params['SelectingSubtitleAreasConfig'].nil?
|
|
25440
|
+
@SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
|
|
25441
|
+
@SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
|
|
25442
|
+
end
|
|
25227
25443
|
end
|
|
25228
25444
|
end
|
|
25229
25445
|
|
|
@@ -25345,6 +25561,187 @@ module TencentCloud
|
|
|
25345
25561
|
end
|
|
25346
25562
|
end
|
|
25347
25563
|
|
|
25564
|
+
# RecognizeAudio请求参数结构体
|
|
25565
|
+
class RecognizeAudioRequest < TencentCloud::Common::AbstractModel
|
|
25566
|
+
# @param AudioData: base64编码的音频数据
|
|
25567
|
+
# @type AudioData: String
|
|
25568
|
+
# @param Source: 识别目标语言,为空默认 auto 自动识别语种。
|
|
25569
|
+
# 注:如果自动识别语种识别效果不佳,可以指定语种提高准确率
|
|
25570
|
+
|
|
25571
|
+
# 当前支持语言:
|
|
25572
|
+
# auto: 自动识别
|
|
25573
|
+
# zh: 简体中文
|
|
25574
|
+
# en: 英语
|
|
25575
|
+
# ja: 日语
|
|
25576
|
+
# ko: 韩语
|
|
25577
|
+
# vi: 越南语
|
|
25578
|
+
# ms: 马来语
|
|
25579
|
+
# id: 印度尼西亚语
|
|
25580
|
+
# fil: 菲律宾语
|
|
25581
|
+
# th: 泰语
|
|
25582
|
+
# pt: 葡萄牙语
|
|
25583
|
+
# tr: 土耳其语
|
|
25584
|
+
# ar: 阿拉伯语
|
|
25585
|
+
# es: 西班牙语
|
|
25586
|
+
# hi: 印地语
|
|
25587
|
+
# fr: 法语
|
|
25588
|
+
# de: 德语
|
|
25589
|
+
# it: 意大利语
|
|
25590
|
+
# yue: 粤语
|
|
25591
|
+
# ru: 俄语
|
|
25592
|
+
# af: 南非荷兰语
|
|
25593
|
+
# sq: 阿尔巴尼亚语
|
|
25594
|
+
# am: 阿姆哈拉语
|
|
25595
|
+
# hy: 亚美尼亚语
|
|
25596
|
+
# az: 阿塞拜疆语
|
|
25597
|
+
# eu: 巴斯克语
|
|
25598
|
+
# bn: 孟加拉语
|
|
25599
|
+
# bs: 波斯尼亚语
|
|
25600
|
+
# bg: 保加利亚语
|
|
25601
|
+
# my: 缅甸语
|
|
25602
|
+
# ca: 加泰罗尼亚语
|
|
25603
|
+
# hr: 克罗地亚语
|
|
25604
|
+
# cs: 捷克语
|
|
25605
|
+
# da: 丹麦语
|
|
25606
|
+
# nl: 荷兰语
|
|
25607
|
+
# et: 爱沙尼亚语
|
|
25608
|
+
# fi: 芬兰语
|
|
25609
|
+
# gl: 加利西亚语
|
|
25610
|
+
# ka: 格鲁吉亚语
|
|
25611
|
+
# el: 希腊语
|
|
25612
|
+
# gu: 古吉拉特语
|
|
25613
|
+
# iw: 希伯来语
|
|
25614
|
+
# hu: 匈牙利语
|
|
25615
|
+
# is: 冰岛语
|
|
25616
|
+
# jv: 爪哇语
|
|
25617
|
+
# kn: 卡纳达语
|
|
25618
|
+
# kk: 哈萨克语
|
|
25619
|
+
# km: 高棉语
|
|
25620
|
+
# rw: 卢旺达语
|
|
25621
|
+
# lo: 老挝语
|
|
25622
|
+
# lv: 拉脱维亚语
|
|
25623
|
+
# lt: 立陶宛语
|
|
25624
|
+
# mk: 马其顿语
|
|
25625
|
+
# ml: 马拉雅拉姆语
|
|
25626
|
+
# mr: 马拉地语
|
|
25627
|
+
# mn: 蒙古语
|
|
25628
|
+
# ne: 尼泊尔语
|
|
25629
|
+
# no: 博克马尔挪威语
|
|
25630
|
+
# fa: 波斯语
|
|
25631
|
+
# pl: 波兰语
|
|
25632
|
+
# ro: 罗马尼亚语
|
|
25633
|
+
# sr: 塞尔维亚语
|
|
25634
|
+
# si: 僧伽罗语
|
|
25635
|
+
# sk: 斯洛伐克语
|
|
25636
|
+
# sl: 斯洛文尼亚语
|
|
25637
|
+
# st: 南索托语
|
|
25638
|
+
# su: 巽他语
|
|
25639
|
+
# sw: 斯瓦希里语
|
|
25640
|
+
# sv: 瑞典语
|
|
25641
|
+
# ta: 泰米尔语
|
|
25642
|
+
# te: 泰卢固语
|
|
25643
|
+
# ts: 聪加语
|
|
25644
|
+
# uk: 乌克兰语
|
|
25645
|
+
# ur: 乌尔都语
|
|
25646
|
+
# uz: 乌兹别克语
|
|
25647
|
+
# ve: 文达语
|
|
25648
|
+
# xh: 科萨语
|
|
25649
|
+
# zu: 祖鲁语
|
|
25650
|
+
# @type Source: String
|
|
25651
|
+
# @param AudioFormat: 音频数据格式,默认为 pcm
|
|
25652
|
+
|
|
25653
|
+
# 支持的格式:pcm (16k 采样率的单声道 16 位采样 pcm 数据)
|
|
25654
|
+
# @type AudioFormat: String
|
|
25655
|
+
# @param UserExtPara: 扩展参数,默认不填,特殊需求使用
|
|
25656
|
+
# @type UserExtPara: String
|
|
25657
|
+
|
|
25658
|
+
attr_accessor :AudioData, :Source, :AudioFormat, :UserExtPara
|
|
25659
|
+
|
|
25660
|
+
def initialize(audiodata=nil, source=nil, audioformat=nil, userextpara=nil)
|
|
25661
|
+
@AudioData = audiodata
|
|
25662
|
+
@Source = source
|
|
25663
|
+
@AudioFormat = audioformat
|
|
25664
|
+
@UserExtPara = userextpara
|
|
25665
|
+
end
|
|
25666
|
+
|
|
25667
|
+
def deserialize(params)
|
|
25668
|
+
@AudioData = params['AudioData']
|
|
25669
|
+
@Source = params['Source']
|
|
25670
|
+
@AudioFormat = params['AudioFormat']
|
|
25671
|
+
@UserExtPara = params['UserExtPara']
|
|
25672
|
+
end
|
|
25673
|
+
end
|
|
25674
|
+
|
|
25675
|
+
# RecognizeAudio返回参数结构体
|
|
25676
|
+
class RecognizeAudioResponse < TencentCloud::Common::AbstractModel
|
|
25677
|
+
# @param Text: 整段音频的识别结果
|
|
25678
|
+
# @type Text: String
|
|
25679
|
+
# @param AudioLength: 音频长度,单位秒
|
|
25680
|
+
# @type AudioLength: Float
|
|
25681
|
+
# @param Sentence: 分句的识别结果
|
|
25682
|
+
# @type Sentence: Array
|
|
25683
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
25684
|
+
# @type RequestId: String
|
|
25685
|
+
|
|
25686
|
+
attr_accessor :Text, :AudioLength, :Sentence, :RequestId
|
|
25687
|
+
|
|
25688
|
+
def initialize(text=nil, audiolength=nil, sentence=nil, requestid=nil)
|
|
25689
|
+
@Text = text
|
|
25690
|
+
@AudioLength = audiolength
|
|
25691
|
+
@Sentence = sentence
|
|
25692
|
+
@RequestId = requestid
|
|
25693
|
+
end
|
|
25694
|
+
|
|
25695
|
+
def deserialize(params)
|
|
25696
|
+
@Text = params['Text']
|
|
25697
|
+
@AudioLength = params['AudioLength']
|
|
25698
|
+
unless params['Sentence'].nil?
|
|
25699
|
+
@Sentence = []
|
|
25700
|
+
params['Sentence'].each do |i|
|
|
25701
|
+
recognizeaudiosentence_tmp = RecognizeAudioSentence.new
|
|
25702
|
+
recognizeaudiosentence_tmp.deserialize(i)
|
|
25703
|
+
@Sentence << recognizeaudiosentence_tmp
|
|
25704
|
+
end
|
|
25705
|
+
end
|
|
25706
|
+
@RequestId = params['RequestId']
|
|
25707
|
+
end
|
|
25708
|
+
end
|
|
25709
|
+
|
|
25710
|
+
# 识别音频单句结果
|
|
25711
|
+
class RecognizeAudioSentence < TencentCloud::Common::AbstractModel
|
|
25712
|
+
# @param Start: 在音频中的起始时间,单位秒
|
|
25713
|
+
# @type Start: Float
|
|
25714
|
+
# @param End: 在音频中的截止时间,单位秒
|
|
25715
|
+
# @type End: Float
|
|
25716
|
+
# @param Text: 音频识别结果
|
|
25717
|
+
# @type Text: String
|
|
25718
|
+
# @param WordsInfo: 字词时间戳结果
|
|
25719
|
+
# @type WordsInfo: Array
|
|
25720
|
+
|
|
25721
|
+
attr_accessor :Start, :End, :Text, :WordsInfo
|
|
25722
|
+
|
|
25723
|
+
def initialize(start=nil, _end=nil, text=nil, wordsinfo=nil)
|
|
25724
|
+
@Start = start
|
|
25725
|
+
@End = _end
|
|
25726
|
+
@Text = text
|
|
25727
|
+
@WordsInfo = wordsinfo
|
|
25728
|
+
end
|
|
25729
|
+
|
|
25730
|
+
def deserialize(params)
|
|
25731
|
+
@Start = params['Start']
|
|
25732
|
+
@End = params['End']
|
|
25733
|
+
@Text = params['Text']
|
|
25734
|
+
unless params['WordsInfo'].nil?
|
|
25735
|
+
@WordsInfo = []
|
|
25736
|
+
params['WordsInfo'].each do |i|
|
|
25737
|
+
wordresult_tmp = WordResult.new
|
|
25738
|
+
wordresult_tmp.deserialize(i)
|
|
25739
|
+
@WordsInfo << wordresult_tmp
|
|
25740
|
+
end
|
|
25741
|
+
end
|
|
25742
|
+
end
|
|
25743
|
+
end
|
|
25744
|
+
|
|
25348
25745
|
# RecognizeMediaForZhiXue请求参数结构体
|
|
25349
25746
|
class RecognizeMediaForZhiXueRequest < TencentCloud::Common::AbstractModel
|
|
25350
25747
|
# @param InputInfo: 输入媒体文件存储信息。
|
|
@@ -26590,6 +26987,38 @@ module TencentCloud
|
|
|
26590
26987
|
end
|
|
26591
26988
|
end
|
|
26592
26989
|
|
|
26990
|
+
# 字幕OCR提取框选区域配置
|
|
26991
|
+
class SelectingSubtitleAreasConfig < TencentCloud::Common::AbstractModel
|
|
26992
|
+
# @param AutoAreas: 自动选择自定义区域。
|
|
26993
|
+
# 对选定区域,利用AI模型自动检测其中存在的选择目标并提取。
|
|
26994
|
+
# @type AutoAreas: Array
|
|
26995
|
+
# @param SampleWidth: 示例视频或图片的宽,单位像素值
|
|
26996
|
+
# @type SampleWidth: Integer
|
|
26997
|
+
# @param SampleHeight: 示例视频或图片的高,单位像素值
|
|
26998
|
+
# @type SampleHeight: Integer
|
|
26999
|
+
|
|
27000
|
+
attr_accessor :AutoAreas, :SampleWidth, :SampleHeight
|
|
27001
|
+
|
|
27002
|
+
def initialize(autoareas=nil, samplewidth=nil, sampleheight=nil)
|
|
27003
|
+
@AutoAreas = autoareas
|
|
27004
|
+
@SampleWidth = samplewidth
|
|
27005
|
+
@SampleHeight = sampleheight
|
|
27006
|
+
end
|
|
27007
|
+
|
|
27008
|
+
def deserialize(params)
|
|
27009
|
+
unless params['AutoAreas'].nil?
|
|
27010
|
+
@AutoAreas = []
|
|
27011
|
+
params['AutoAreas'].each do |i|
|
|
27012
|
+
erasearea_tmp = EraseArea.new
|
|
27013
|
+
erasearea_tmp.deserialize(i)
|
|
27014
|
+
@AutoAreas << erasearea_tmp
|
|
27015
|
+
end
|
|
27016
|
+
end
|
|
27017
|
+
@SampleWidth = params['SampleWidth']
|
|
27018
|
+
@SampleHeight = params['SampleHeight']
|
|
27019
|
+
end
|
|
27020
|
+
end
|
|
27021
|
+
|
|
26593
27022
|
# 细节增强配置
|
|
26594
27023
|
class SharpEnhanceConfig < TencentCloud::Common::AbstractModel
|
|
26595
27024
|
# @param Switch: 能力配置开关,可选值:
|
|
@@ -27491,7 +27920,7 @@ module TencentCloud
|
|
|
27491
27920
|
# @param SubtitleFormat: 智能字幕文件格式
|
|
27492
27921
|
# - vtt: WebVTT 格式
|
|
27493
27922
|
# - srt: SRT格式
|
|
27494
|
-
# - original
|
|
27923
|
+
# - original:与源字幕文件一致(用于纯字幕翻译模板)
|
|
27495
27924
|
# - 不填或填空:不生成字幕文件
|
|
27496
27925
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27497
27926
|
# @type SubtitleFormat: String
|
|
@@ -27545,11 +27974,15 @@ module TencentCloud
|
|
|
27545
27974
|
# @param ProcessType: 字幕处理类型:
|
|
27546
27975
|
# - 0:ASR识别字幕
|
|
27547
27976
|
# - 1:纯字幕翻译
|
|
27977
|
+
# - 2: OCR识别字幕
|
|
27548
27978
|
# @type ProcessType: Integer
|
|
27979
|
+
# @param SelectingSubtitleAreasConfig: 字幕OCR提取框选区域配置信息
|
|
27980
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27981
|
+
# @type SelectingSubtitleAreasConfig: :class:`Tencentcloud::Mps.v20190612.models.SelectingSubtitleAreasConfig`
|
|
27549
27982
|
|
|
27550
|
-
attr_accessor :Definition, :Name, :Comment, :Type, :AsrHotWordsConfigure, :AsrHotWordsLibraryName, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :TranslateSwitch, :TranslateDstLanguage, :CreateTime, :UpdateTime, :AliasName, :ProcessType
|
|
27983
|
+
attr_accessor :Definition, :Name, :Comment, :Type, :AsrHotWordsConfigure, :AsrHotWordsLibraryName, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :TranslateSwitch, :TranslateDstLanguage, :CreateTime, :UpdateTime, :AliasName, :ProcessType, :SelectingSubtitleAreasConfig
|
|
27551
27984
|
|
|
27552
|
-
def initialize(definition=nil, name=nil, comment=nil, type=nil, asrhotwordsconfigure=nil, asrhotwordslibraryname=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, translateswitch=nil, translatedstlanguage=nil, createtime=nil, updatetime=nil, aliasname=nil, processtype=nil)
|
|
27985
|
+
def initialize(definition=nil, name=nil, comment=nil, type=nil, asrhotwordsconfigure=nil, asrhotwordslibraryname=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, translateswitch=nil, translatedstlanguage=nil, createtime=nil, updatetime=nil, aliasname=nil, processtype=nil, selectingsubtitleareasconfig=nil)
|
|
27553
27986
|
@Definition = definition
|
|
27554
27987
|
@Name = name
|
|
27555
27988
|
@Comment = comment
|
|
@@ -27565,6 +27998,7 @@ module TencentCloud
|
|
|
27565
27998
|
@UpdateTime = updatetime
|
|
27566
27999
|
@AliasName = aliasname
|
|
27567
28000
|
@ProcessType = processtype
|
|
28001
|
+
@SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
|
|
27568
28002
|
end
|
|
27569
28003
|
|
|
27570
28004
|
def deserialize(params)
|
|
@@ -27586,6 +28020,10 @@ module TencentCloud
|
|
|
27586
28020
|
@UpdateTime = params['UpdateTime']
|
|
27587
28021
|
@AliasName = params['AliasName']
|
|
27588
28022
|
@ProcessType = params['ProcessType']
|
|
28023
|
+
unless params['SelectingSubtitleAreasConfig'].nil?
|
|
28024
|
+
@SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
|
|
28025
|
+
@SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
|
|
28026
|
+
end
|
|
27589
28027
|
end
|
|
27590
28028
|
end
|
|
27591
28029
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-mps
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1191
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|