tencentcloud-sdk-mps 3.0.1189 → 3.0.1192

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: a93c828f94307e8536d8ca326acef410bd05f8fd
4
- data.tar.gz: ca923f7b6ad51c05ccd5acec4ec66020781f5b53
3
+ metadata.gz: 59e6b179acec4729947dbead584367c32986df1d
4
+ data.tar.gz: 8c9d8178becc0df0e03764658f115c5ef84c21f3
5
5
  SHA512:
6
- metadata.gz: bd8ac80d53c6371b557ab044ed3ed82c1f9104afa5656805179e6d0e41f553f999666f923902fda5dc46ee721253bf1846ac31796cc61e3e1f38a0f568e0eead
7
- data.tar.gz: b6684de0a588325205fb6539f1f907d9b83f2c8283ef7f8e45754019bd0d07ac5a6d2b0051c6d7442606ed95ac5b87cc6f6cc5cc38b60b685de07a1f39cdd6ca
6
+ metadata.gz: 5d8dd6e23b919ab118564db1ced5f6ae31fd61f42e7de05dead5af48202f86fb0bf96618f01f0450147ce9058f7c33f57153de9a2774688cee5bf95ce4cf20a5
7
+ data.tar.gz: 83d96fbab865b0312fbb08ab8249dd2ecf6d8479920b6535abf353f1b09e43046316b87fe6e8b7dfb0eb31e36feab71a45d6bc679221f3d4f10f8422044f84cb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1189
1
+ 3.0.1192
@@ -198,6 +198,54 @@ module TencentCloud
198
198
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
199
199
  end
200
200
 
201
+ # 调用该接口用于创建AIGC生图片任务。
202
+
203
+ # @param request: Request instance for CreateAigcImageTask.
204
+ # @type request: :class:`Tencentcloud::mps::V20190612::CreateAigcImageTaskRequest`
205
+ # @rtype: :class:`Tencentcloud::mps::V20190612::CreateAigcImageTaskResponse`
206
+ def CreateAigcImageTask(request)
207
+ body = send_request('CreateAigcImageTask', request.serialize)
208
+ response = JSON.parse(body)
209
+ if response['Response'].key?('Error') == false
210
+ model = CreateAigcImageTaskResponse.new
211
+ model.deserialize(response['Response'])
212
+ model
213
+ else
214
+ code = response['Response']['Error']['Code']
215
+ message = response['Response']['Error']['Message']
216
+ reqid = response['Response']['RequestId']
217
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
218
+ end
219
+ rescue TencentCloud::Common::TencentCloudSDKException => e
220
+ raise e
221
+ rescue StandardError => e
222
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
223
+ end
224
+
225
+ # 调用该接口,用于创建AI生视频任务。
226
+
227
+ # @param request: Request instance for CreateAigcVideoTask.
228
+ # @type request: :class:`Tencentcloud::mps::V20190612::CreateAigcVideoTaskRequest`
229
+ # @rtype: :class:`Tencentcloud::mps::V20190612::CreateAigcVideoTaskResponse`
230
+ def CreateAigcVideoTask(request)
231
+ body = send_request('CreateAigcVideoTask', request.serialize)
232
+ response = JSON.parse(body)
233
+ if response['Response'].key?('Error') == false
234
+ model = CreateAigcVideoTaskResponse.new
235
+ model.deserialize(response['Response'])
236
+ model
237
+ else
238
+ code = response['Response']['Error']['Code']
239
+ message = response['Response']['Error']['Message']
240
+ reqid = response['Response']['RequestId']
241
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
242
+ end
243
+ rescue TencentCloud::Common::TencentCloudSDKException => e
244
+ raise e
245
+ rescue StandardError => e
246
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
247
+ end
248
+
201
249
  # 创建用户自定义转动图模板,数量上限:16。
202
250
 
203
251
  # @param request: Request instance for CreateAnimatedGraphicsTemplate.
@@ -1525,6 +1573,54 @@ module TencentCloud
1525
1573
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1526
1574
  end
1527
1575
 
1576
+ # 调用该接口,查询AIGC生图片任务进度以及获取生成结果。
1577
+
1578
+ # @param request: Request instance for DescribeAigcImageTask.
1579
+ # @type request: :class:`Tencentcloud::mps::V20190612::DescribeAigcImageTaskRequest`
1580
+ # @rtype: :class:`Tencentcloud::mps::V20190612::DescribeAigcImageTaskResponse`
1581
+ def DescribeAigcImageTask(request)
1582
+ body = send_request('DescribeAigcImageTask', request.serialize)
1583
+ response = JSON.parse(body)
1584
+ if response['Response'].key?('Error') == false
1585
+ model = DescribeAigcImageTaskResponse.new
1586
+ model.deserialize(response['Response'])
1587
+ model
1588
+ else
1589
+ code = response['Response']['Error']['Code']
1590
+ message = response['Response']['Error']['Message']
1591
+ reqid = response['Response']['RequestId']
1592
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1593
+ end
1594
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1595
+ raise e
1596
+ rescue StandardError => e
1597
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1598
+ end
1599
+
1600
+ # 调用该接口,用于查询AIGC生视频任务的进度以及获取生成结果。
1601
+
1602
+ # @param request: Request instance for DescribeAigcVideoTask.
1603
+ # @type request: :class:`Tencentcloud::mps::V20190612::DescribeAigcVideoTaskRequest`
1604
+ # @rtype: :class:`Tencentcloud::mps::V20190612::DescribeAigcVideoTaskResponse`
1605
+ def DescribeAigcVideoTask(request)
1606
+ body = send_request('DescribeAigcVideoTask', request.serialize)
1607
+ response = JSON.parse(body)
1608
+ if response['Response'].key?('Error') == false
1609
+ model = DescribeAigcVideoTaskResponse.new
1610
+ model.deserialize(response['Response'])
1611
+ model
1612
+ else
1613
+ code = response['Response']['Error']['Code']
1614
+ message = response['Response']['Error']['Message']
1615
+ reqid = response['Response']['RequestId']
1616
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1617
+ end
1618
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1619
+ raise e
1620
+ rescue StandardError => e
1621
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1622
+ end
1623
+
1528
1624
  # 查询转动图模板列表,支持根据条件,分页查询。
1529
1625
 
1530
1626
  # @param request: Request instance for DescribeAnimatedGraphicsTemplates.
@@ -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。
@@ -4660,6 +4870,160 @@ module TencentCloud
4660
4870
  end
4661
4871
  end
4662
4872
 
4873
+ # 用于AIGC创作图片时用到的扩展参数信息。
4874
+ class AigcImageExtraParam < TencentCloud::Common::AbstractModel
4875
+ # @param AspectRatio: 指定所生成视频的宽高比。
4876
+
4877
+ # 不同模型支持的宽高比:
4878
+ # 1. GEM支持:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9 和 21:9。
4879
+ # 2. Jimeng:合用户prompt意图、参考图尺寸,由模型智能判断生图宽高比。
4880
+
4881
+ # 注:具体模型的宽高比参数,可查看相应模型官网获取更完整描述。
4882
+ # @type AspectRatio: String
4883
+ # @param Resolution: 指定图片输出分辨率。
4884
+
4885
+ # 支持该参数的模型:
4886
+ # 支持选择: 720P, 1080P, 2K, 4K。
4887
+
4888
+ # 1. Jimeng推荐通过prompt指定图片分辨率和宽高比。
4889
+ # 2K
4890
+ # 2048x2048 (1:1)
4891
+ # 2304x1728(4:3)
4892
+ # 2496x1664 (3:2)
4893
+ # 2560x1440 (16:9)
4894
+ # 3024x1296 (21:9)
4895
+ # 4K
4896
+ # 4096x4096 (1:1)
4897
+ # 4694x3520(4:3)
4898
+ # 4992x3328 (3:2)
4899
+ # 5404x3040 (16:9)
4900
+ # 6198x2656 (21:9)
4901
+ # @type Resolution: String
4902
+
4903
+ attr_accessor :AspectRatio, :Resolution
4904
+
4905
+ def initialize(aspectratio=nil, resolution=nil)
4906
+ @AspectRatio = aspectratio
4907
+ @Resolution = resolution
4908
+ end
4909
+
4910
+ def deserialize(params)
4911
+ @AspectRatio = params['AspectRatio']
4912
+ @Resolution = params['Resolution']
4913
+ end
4914
+ end
4915
+
4916
+ # 用于AIGC创作的图片信息。
4917
+ class AigcImageInfo < TencentCloud::Common::AbstractModel
4918
+ # @param ImageUrl: 用于指导视频生成的图片 URL。该URL需外网可访问。同时允许爬虫拉取。
4919
+ # @type ImageUrl: String
4920
+ # @param ReferenceType: 参考类型。
4921
+ # 注意:
4922
+ # 1. 当模型使用Vidu的q2多参考生图时,也可用于指定主体id。
4923
+ # 2. 当使用GV模型时,可作为参考方式,可选asset(素材)、style(风格)。
4924
+ # @type ReferenceType: String
4925
+
4926
+ attr_accessor :ImageUrl, :ReferenceType
4927
+
4928
+ def initialize(imageurl=nil, referencetype=nil)
4929
+ @ImageUrl = imageurl
4930
+ @ReferenceType = referencetype
4931
+ end
4932
+
4933
+ def deserialize(params)
4934
+ @ImageUrl = params['ImageUrl']
4935
+ @ReferenceType = params['ReferenceType']
4936
+ end
4937
+ end
4938
+
4939
+ # Aigc结果文件上传COS时,需传入的信息。 需创建并授权LVB_QCSRole角色。
4940
+ class AigcStoreCosParam < TencentCloud::Common::AbstractModel
4941
+ # @param CosBucketName: 存储至 cos 的 bucket 桶名称。需要cos存储时,该值必填。 示例值:bucket。
4942
+ # @type CosBucketName: String
4943
+ # @param CosBucketRegion: 存储至 cos 的 bucket 区域。与bucket所属区域相同,上传cos时必填。 示例值:ap-guangzhou
4944
+ # @type CosBucketRegion: String
4945
+ # @param CosBucketPath: 存储至 cos 的 bucket 路径。
4946
+ # 可选。
4947
+ # 示例值:my_file
4948
+ # @type CosBucketPath: String
4949
+
4950
+ attr_accessor :CosBucketName, :CosBucketRegion, :CosBucketPath
4951
+
4952
+ def initialize(cosbucketname=nil, cosbucketregion=nil, cosbucketpath=nil)
4953
+ @CosBucketName = cosbucketname
4954
+ @CosBucketRegion = cosbucketregion
4955
+ @CosBucketPath = cosbucketpath
4956
+ end
4957
+
4958
+ def deserialize(params)
4959
+ @CosBucketName = params['CosBucketName']
4960
+ @CosBucketRegion = params['CosBucketRegion']
4961
+ @CosBucketPath = params['CosBucketPath']
4962
+ end
4963
+ end
4964
+
4965
+ # 用于AIGC创作视频时用到的扩展参数信息。
4966
+ class AigcVideoExtraParam < TencentCloud::Common::AbstractModel
4967
+ # @param Resolution: 生成视频的分辨率,分辨率与选择模型及设置的视频时长相关。
4968
+
4969
+ # 不同模型支持的分辨率选项:
4970
+ # 1. Kling 720P(默认), 1080P。
4971
+ # 2. Hailuo 768P(默认), 1080P。
4972
+ # 3. Jimeng 1080P(默认)。
4973
+ # 4. Vidu 720P(默认),1080P。
4974
+ # 5. GV 720P(默认),1080P。
4975
+ # 6. OS 720P, 图片仅支持1280x720、720x1280,暂不支持指定。
4976
+
4977
+ # 注意:除模型可支持的分辨率外,还可以生成 2K、4K分辨率。
4978
+ # @type Resolution: String
4979
+ # @param AspectRatio: 指定所生成视频的宽高比。
4980
+
4981
+ # 不同模型对于此参数的支持:
4982
+ # 1. Kling 仅文生视频支持, 16:9(默认值)、9:16、 1:1。
4983
+ # 2. Hailuo 暂不支持。
4984
+ # 3. Jimeng ["16:9"、"4:3"、"1:1"、"3:4"、"9:16"、"21:9"]
4985
+ # 4. Vidu 仅文生和参考图生视频 支持[16:9、9:16、4:3、3:4、1:1],其中仅q2支持4:3、3:4。
4986
+ # 5. GV 16:9(默认值)、9:16。
4987
+ # 6. OS 仅文生视频支持, 16:9(默认), 9:16。
4988
+
4989
+ # 注:关于具体模型支持的宽高比例,可查看具体模型官网介绍获取更完整描述。
4990
+ # @type AspectRatio: String
4991
+
4992
+ attr_accessor :Resolution, :AspectRatio
4993
+
4994
+ def initialize(resolution=nil, aspectratio=nil)
4995
+ @Resolution = resolution
4996
+ @AspectRatio = aspectratio
4997
+ end
4998
+
4999
+ def deserialize(params)
5000
+ @Resolution = params['Resolution']
5001
+ @AspectRatio = params['AspectRatio']
5002
+ end
5003
+ end
5004
+
5005
+ # 用于AIGC生视频创作的参考图片信息。
5006
+ class AigcVideoReferenceImageInfo < TencentCloud::Common::AbstractModel
5007
+ # @param ImageUrl: 用于指导视频生成的图片 URL。该URL需外网可访问。同时允许爬虫拉取。
5008
+ # @type ImageUrl: String
5009
+ # @param ReferenceType: 参考类型。
5010
+ # 注意:
5011
+ # 1. 当使用GV模型时,可作为参考方式,可选asset(素材)、style(风格)。
5012
+ # @type ReferenceType: String
5013
+
5014
+ attr_accessor :ImageUrl, :ReferenceType
5015
+
5016
+ def initialize(imageurl=nil, referencetype=nil)
5017
+ @ImageUrl = imageurl
5018
+ @ReferenceType = referencetype
5019
+ end
5020
+
5021
+ def deserialize(params)
5022
+ @ImageUrl = params['ImageUrl']
5023
+ @ReferenceType = params['ReferenceType']
5024
+ end
5025
+ end
5026
+
4663
5027
  # 转动图任务类型。
4664
5028
  class AnimatedGraphicTaskInput < TencentCloud::Common::AbstractModel
4665
5029
  # @param Definition: 视频转动图模板 ID。
@@ -7327,6 +7691,240 @@ module TencentCloud
7327
7691
  end
7328
7692
  end
7329
7693
 
7694
+ # CreateAigcImageTask请求参数结构体
7695
+ class CreateAigcImageTaskRequest < TencentCloud::Common::AbstractModel
7696
+ # @param ModelName: 模型名称。
7697
+ # 当前支持的模型列表:
7698
+ # GEM,
7699
+ # Jimeng,
7700
+ # Qwen。
7701
+ # @type ModelName: String
7702
+ # @param ModelVersion: 指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。
7703
+
7704
+ # 1. GEM, 可选[2.5,3.0]。
7705
+ # 2. Jimeng,可选[4.0]。
7706
+ # @type ModelVersion: String
7707
+ # @param Prompt: 生成图片的描述。(注:最大支持1000字符)。当未传入参考图片时,此参数必填。
7708
+ # @type Prompt: String
7709
+ # @param NegativePrompt: 用于描述您想要阻止模型生成的内容。 注意:部分模型支持。 例如: 顶部照明、明亮的色彩 人物、动物 多辆汽车、风。
7710
+ # @type NegativePrompt: String
7711
+ # @param EnhancePrompt: 默认取值为False,模型会严格地遵循指令。如果需要更精细的prompt获得最佳效果,可将此参数设置为True,将自动优化传入的prompt,以提升生成质量。
7712
+ # @type EnhancePrompt: Boolean
7713
+ # @param ImageInfos: 用于传入参考的资源图片信息,默认支持传入一张图片。
7714
+
7715
+ # 支持多图输入的模型:
7716
+ # 1. GEM,可支持最多3张图片输入作为资源图。
7717
+
7718
+ # 注意:
7719
+ # 1. 推荐图片小于7M,各模型限制不同。
7720
+ # 2. 图片格式支持:jpeg, png, webp。
7721
+ # @type ImageInfos: Array
7722
+ # @param ExtraParameters: 用于传入模型要求的额外参数。
7723
+ # @type ExtraParameters: :class:`Tencentcloud::Mps.v20190612.models.AigcImageExtraParam`
7724
+ # @param StoreCosParam: 文件结果指定存储Cos桶信息。 注意:需开通Cos,创建并授权MPS_QcsRole角色。
7725
+ # @type StoreCosParam: :class:`Tencentcloud::Mps.v20190612.models.AigcStoreCosParam`
7726
+ # @param Operator: 接口操作者名称。
7727
+ # @type Operator: String
7728
+
7729
+ attr_accessor :ModelName, :ModelVersion, :Prompt, :NegativePrompt, :EnhancePrompt, :ImageInfos, :ExtraParameters, :StoreCosParam, :Operator
7730
+
7731
+ def initialize(modelname=nil, modelversion=nil, prompt=nil, negativeprompt=nil, enhanceprompt=nil, imageinfos=nil, extraparameters=nil, storecosparam=nil, operator=nil)
7732
+ @ModelName = modelname
7733
+ @ModelVersion = modelversion
7734
+ @Prompt = prompt
7735
+ @NegativePrompt = negativeprompt
7736
+ @EnhancePrompt = enhanceprompt
7737
+ @ImageInfos = imageinfos
7738
+ @ExtraParameters = extraparameters
7739
+ @StoreCosParam = storecosparam
7740
+ @Operator = operator
7741
+ end
7742
+
7743
+ def deserialize(params)
7744
+ @ModelName = params['ModelName']
7745
+ @ModelVersion = params['ModelVersion']
7746
+ @Prompt = params['Prompt']
7747
+ @NegativePrompt = params['NegativePrompt']
7748
+ @EnhancePrompt = params['EnhancePrompt']
7749
+ unless params['ImageInfos'].nil?
7750
+ @ImageInfos = []
7751
+ params['ImageInfos'].each do |i|
7752
+ aigcimageinfo_tmp = AigcImageInfo.new
7753
+ aigcimageinfo_tmp.deserialize(i)
7754
+ @ImageInfos << aigcimageinfo_tmp
7755
+ end
7756
+ end
7757
+ unless params['ExtraParameters'].nil?
7758
+ @ExtraParameters = AigcImageExtraParam.new
7759
+ @ExtraParameters.deserialize(params['ExtraParameters'])
7760
+ end
7761
+ unless params['StoreCosParam'].nil?
7762
+ @StoreCosParam = AigcStoreCosParam.new
7763
+ @StoreCosParam.deserialize(params['StoreCosParam'])
7764
+ end
7765
+ @Operator = params['Operator']
7766
+ end
7767
+ end
7768
+
7769
+ # CreateAigcImageTask返回参数结构体
7770
+ class CreateAigcImageTaskResponse < TencentCloud::Common::AbstractModel
7771
+ # @param TaskId: 返回的任务ID。
7772
+ # @type TaskId: String
7773
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7774
+ # @type RequestId: String
7775
+
7776
+ attr_accessor :TaskId, :RequestId
7777
+
7778
+ def initialize(taskid=nil, requestid=nil)
7779
+ @TaskId = taskid
7780
+ @RequestId = requestid
7781
+ end
7782
+
7783
+ def deserialize(params)
7784
+ @TaskId = params['TaskId']
7785
+ @RequestId = params['RequestId']
7786
+ end
7787
+ end
7788
+
7789
+ # CreateAigcVideoTask请求参数结构体
7790
+ class CreateAigcVideoTaskRequest < TencentCloud::Common::AbstractModel
7791
+ # @param ModelName: 模型名称。
7792
+ # 当前支持的模型列表:
7793
+ # Hailuo,
7794
+ # Kling,
7795
+ # Jimeng,
7796
+ # Vidu,
7797
+ # OS,
7798
+ # GV。
7799
+ # @type ModelName: String
7800
+ # @param ModelVersion: 指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。
7801
+ # 1. Hailuo, 可选[02、2.3]。
7802
+ # 2. Kling,可选[2.0、2.1、2.5]。
7803
+ # 3. Jimeng, 可选[3.0pro]。
7804
+ # 4. Vidu,可选[q2、q2-pro、q2-turbo]。
7805
+ # 4. GV, 可选[3.1]。
7806
+ # 5. OS,可选[2.0]。
7807
+ # @type ModelVersion: String
7808
+ # @param Prompt: 生成视频的描述。(注:最大支持2000字符)。当未传入图片时,此参数必填。
7809
+ # @type Prompt: String
7810
+ # @param NegativePrompt: 用于描述您想要阻止模型生成的内容。
7811
+ # 注意:部分模型支持。
7812
+ # 例如:
7813
+ # 顶部照明、明亮的色彩
7814
+ # 人物、动物
7815
+ # 多辆汽车、风。
7816
+ # @type NegativePrompt: String
7817
+ # @param EnhancePrompt: 默认取值为False,模型会严格地遵循指令。如果需要更精细的prompt获得最佳效果,可将此参数设置为True,将自动优化传入的prompt,以提升生成质量。
7818
+ # @type EnhancePrompt: Boolean
7819
+ # @param ImageUrl: 用于指导视频生成的图片 URL。该URL需外网可访问。
7820
+ # 注意:
7821
+ # 1. 推荐图片大小不超过10M,不同模型大小限制不相同。
7822
+ # 2. 支持的图片格式:jpeg、png。
7823
+ # 3. 使用OS模型时,需输入图片尺寸为: 1280x720、720x1280。
7824
+ # @type ImageUrl: String
7825
+ # @param LastImageUrl: 模型将以此参数传入的图片作为尾帧画面来生成视频。
7826
+ # 支持此参数的模型:
7827
+ # 1. GV,传入尾帧图片时,必须同时传入ImageUrl作为首帧。
7828
+ # 2. Kling, 在Resolution:1080P的情况下 2.1版本支持首位帧。
7829
+ # 3. Vidu, q2-pro, q2-turbo 支持首尾帧。
7830
+
7831
+ # 注意:
7832
+ # 1. 推荐图片大小不超过10M,各模型限制不同。
7833
+ # 2. 支持的图片格式:jpeg、png。
7834
+ # @type LastImageUrl: String
7835
+ # @param ImageInfos: 最多包含三张素材资源图片的列表,用于描述模型在生成视频时要使用的资源图片。
7836
+
7837
+ # 支持多图输入的模型:
7838
+ # 1. GV,使用多图输入时,不可使用ImageUrl和LastImageUrl。
7839
+ # 2. Vidu,支持多图参考生视频。q2模型1-7张图片,可通过ImageInfos里面的ReferenceType作为主体id来传入。
7840
+
7841
+ # 注意:
7842
+ # 1. 图片大小不超过10M。
7843
+ # 2. 支持的图片格式:jpeg、png。
7844
+ # @type ImageInfos: Array
7845
+ # @param Duration: 生成视频的时长。
7846
+ # 注意:
7847
+ # 1. Kling支持 5、10秒。默认: 5秒。
7848
+ # 2. Jimeng支持5、10秒。 默认: 5秒。
7849
+ # 3. Hailuo的std模式可支持6、10秒,其他仅6秒。默认:6秒。
7850
+ # 4. Vidu支持1-10秒。
7851
+ # 4. GV支持 8秒。 默认:8秒。
7852
+ # 5. OS支持4、8、12秒。 默认:8秒。
7853
+ # @type Duration: Integer
7854
+ # @param ExtraParameters: 用于传入模型要求的额外参数。
7855
+ # @type ExtraParameters: :class:`Tencentcloud::Mps.v20190612.models.AigcVideoExtraParam`
7856
+ # @param StoreCosParam: 文件结果指定存储Cos桶信息。 注意:需开通Cos,创建并授权MPS_QcsRole角色。
7857
+ # @type StoreCosParam: :class:`Tencentcloud::Mps.v20190612.models.AigcStoreCosParam`
7858
+ # @param Operator: 接口操作者名称。
7859
+ # @type Operator: String
7860
+
7861
+ attr_accessor :ModelName, :ModelVersion, :Prompt, :NegativePrompt, :EnhancePrompt, :ImageUrl, :LastImageUrl, :ImageInfos, :Duration, :ExtraParameters, :StoreCosParam, :Operator
7862
+
7863
+ def initialize(modelname=nil, modelversion=nil, prompt=nil, negativeprompt=nil, enhanceprompt=nil, imageurl=nil, lastimageurl=nil, imageinfos=nil, duration=nil, extraparameters=nil, storecosparam=nil, operator=nil)
7864
+ @ModelName = modelname
7865
+ @ModelVersion = modelversion
7866
+ @Prompt = prompt
7867
+ @NegativePrompt = negativeprompt
7868
+ @EnhancePrompt = enhanceprompt
7869
+ @ImageUrl = imageurl
7870
+ @LastImageUrl = lastimageurl
7871
+ @ImageInfos = imageinfos
7872
+ @Duration = duration
7873
+ @ExtraParameters = extraparameters
7874
+ @StoreCosParam = storecosparam
7875
+ @Operator = operator
7876
+ end
7877
+
7878
+ def deserialize(params)
7879
+ @ModelName = params['ModelName']
7880
+ @ModelVersion = params['ModelVersion']
7881
+ @Prompt = params['Prompt']
7882
+ @NegativePrompt = params['NegativePrompt']
7883
+ @EnhancePrompt = params['EnhancePrompt']
7884
+ @ImageUrl = params['ImageUrl']
7885
+ @LastImageUrl = params['LastImageUrl']
7886
+ unless params['ImageInfos'].nil?
7887
+ @ImageInfos = []
7888
+ params['ImageInfos'].each do |i|
7889
+ aigcvideoreferenceimageinfo_tmp = AigcVideoReferenceImageInfo.new
7890
+ aigcvideoreferenceimageinfo_tmp.deserialize(i)
7891
+ @ImageInfos << aigcvideoreferenceimageinfo_tmp
7892
+ end
7893
+ end
7894
+ @Duration = params['Duration']
7895
+ unless params['ExtraParameters'].nil?
7896
+ @ExtraParameters = AigcVideoExtraParam.new
7897
+ @ExtraParameters.deserialize(params['ExtraParameters'])
7898
+ end
7899
+ unless params['StoreCosParam'].nil?
7900
+ @StoreCosParam = AigcStoreCosParam.new
7901
+ @StoreCosParam.deserialize(params['StoreCosParam'])
7902
+ end
7903
+ @Operator = params['Operator']
7904
+ end
7905
+ end
7906
+
7907
+ # CreateAigcVideoTask返回参数结构体
7908
+ class CreateAigcVideoTaskResponse < TencentCloud::Common::AbstractModel
7909
+ # @param TaskId: 任务创建成功后,返回的任务ID。
7910
+ # 调用查询接口,轮询获取任务进度及生成结果。
7911
+ # @type TaskId: String
7912
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7913
+ # @type RequestId: String
7914
+
7915
+ attr_accessor :TaskId, :RequestId
7916
+
7917
+ def initialize(taskid=nil, requestid=nil)
7918
+ @TaskId = taskid
7919
+ @RequestId = requestid
7920
+ end
7921
+
7922
+ def deserialize(params)
7923
+ @TaskId = params['TaskId']
7924
+ @RequestId = params['RequestId']
7925
+ end
7926
+ end
7927
+
7330
7928
  # CreateAnimatedGraphicsTemplate请求参数结构体
7331
7929
  class CreateAnimatedGraphicsTemplateRequest < TencentCloud::Common::AbstractModel
7332
7930
  # @param Fps: 帧率,取值范围:[1, 30],单位:Hz。
@@ -9104,7 +9702,6 @@ module TencentCloud
9104
9702
  # `iw`:希伯来语
9105
9703
  # `ja`:日语
9106
9704
  # `jv`:爪哇语
9107
- # `jw`:爪哇语
9108
9705
  # `ka`:格鲁吉亚语
9109
9706
  # `kk`:哈萨克语
9110
9707
  # `km`:高棉语
@@ -9191,7 +9788,6 @@ module TencentCloud
9191
9788
  # `th`:泰语
9192
9789
  # `ti`:提格里尼亚语
9193
9790
  # `tk`:土库曼语
9194
- # `tl`:菲律宾语(塔加拉语)
9195
9791
  # `tn`:茨瓦纳语
9196
9792
  # `tr`:土耳其语
9197
9793
  # `ts`:聪加语
@@ -9219,10 +9815,12 @@ module TencentCloud
9219
9815
 
9220
9816
  # **注意**:不传的情况下默认类型为 ASR识别字幕
9221
9817
  # @type ProcessType: Integer
9818
+ # @param SelectingSubtitleAreasConfig: 字幕OCR提取框选区域配置
9819
+ # @type SelectingSubtitleAreasConfig: :class:`Tencentcloud::Mps.v20190612.models.SelectingSubtitleAreasConfig`
9222
9820
 
9223
- attr_accessor :Name, :VideoSrcLanguage, :SubtitleType, :Comment, :SubtitleFormat, :AsrHotWordsConfigure, :TranslateSwitch, :TranslateDstLanguage, :ProcessType
9821
+ attr_accessor :Name, :VideoSrcLanguage, :SubtitleType, :Comment, :SubtitleFormat, :AsrHotWordsConfigure, :TranslateSwitch, :TranslateDstLanguage, :ProcessType, :SelectingSubtitleAreasConfig
9224
9822
 
9225
- def initialize(name=nil, videosrclanguage=nil, subtitletype=nil, comment=nil, subtitleformat=nil, asrhotwordsconfigure=nil, translateswitch=nil, translatedstlanguage=nil, processtype=nil)
9823
+ def initialize(name=nil, videosrclanguage=nil, subtitletype=nil, comment=nil, subtitleformat=nil, asrhotwordsconfigure=nil, translateswitch=nil, translatedstlanguage=nil, processtype=nil, selectingsubtitleareasconfig=nil)
9226
9824
  @Name = name
9227
9825
  @VideoSrcLanguage = videosrclanguage
9228
9826
  @SubtitleType = subtitletype
@@ -9232,6 +9830,7 @@ module TencentCloud
9232
9830
  @TranslateSwitch = translateswitch
9233
9831
  @TranslateDstLanguage = translatedstlanguage
9234
9832
  @ProcessType = processtype
9833
+ @SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
9235
9834
  end
9236
9835
 
9237
9836
  def deserialize(params)
@@ -9247,6 +9846,10 @@ module TencentCloud
9247
9846
  @TranslateSwitch = params['TranslateSwitch']
9248
9847
  @TranslateDstLanguage = params['TranslateDstLanguage']
9249
9848
  @ProcessType = params['ProcessType']
9849
+ unless params['SelectingSubtitleAreasConfig'].nil?
9850
+ @SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
9851
+ @SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
9852
+ end
9250
9853
  end
9251
9854
  end
9252
9855
 
@@ -11028,6 +11631,98 @@ module TencentCloud
11028
11631
  end
11029
11632
  end
11030
11633
 
11634
+ # DescribeAigcImageTask请求参数结构体
11635
+ class DescribeAigcImageTaskRequest < TencentCloud::Common::AbstractModel
11636
+ # @param TaskId: 创建的AIGC生图片任务ID。
11637
+ # @type TaskId: String
11638
+
11639
+ attr_accessor :TaskId
11640
+
11641
+ def initialize(taskid=nil)
11642
+ @TaskId = taskid
11643
+ end
11644
+
11645
+ def deserialize(params)
11646
+ @TaskId = params['TaskId']
11647
+ end
11648
+ end
11649
+
11650
+ # DescribeAigcImageTask返回参数结构体
11651
+ class DescribeAigcImageTaskResponse < TencentCloud::Common::AbstractModel
11652
+ # @param Status: 任务当前状态。 WAIT:等待中, RUN:执行中, FAIL:任务失败, DONE:任务成功。
11653
+ # @type Status: String
11654
+ # @param ImageUrls: 当任务状态为 DONE时,返回的图片Url列表,图片存储12小时,请尽快取走使用。
11655
+ # @type ImageUrls: Array
11656
+ # @param Message: 当任务状态为 FAIL时,返回失败信息。
11657
+ # @type Message: String
11658
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11659
+ # @type RequestId: String
11660
+
11661
+ attr_accessor :Status, :ImageUrls, :Message, :RequestId
11662
+
11663
+ def initialize(status=nil, imageurls=nil, message=nil, requestid=nil)
11664
+ @Status = status
11665
+ @ImageUrls = imageurls
11666
+ @Message = message
11667
+ @RequestId = requestid
11668
+ end
11669
+
11670
+ def deserialize(params)
11671
+ @Status = params['Status']
11672
+ @ImageUrls = params['ImageUrls']
11673
+ @Message = params['Message']
11674
+ @RequestId = params['RequestId']
11675
+ end
11676
+ end
11677
+
11678
+ # DescribeAigcVideoTask请求参数结构体
11679
+ class DescribeAigcVideoTaskRequest < TencentCloud::Common::AbstractModel
11680
+ # @param TaskId: 创建AIGC生视频任务时,返回的任务ID。
11681
+ # @type TaskId: String
11682
+
11683
+ attr_accessor :TaskId
11684
+
11685
+ def initialize(taskid=nil)
11686
+ @TaskId = taskid
11687
+ end
11688
+
11689
+ def deserialize(params)
11690
+ @TaskId = params['TaskId']
11691
+ end
11692
+ end
11693
+
11694
+ # DescribeAigcVideoTask返回参数结构体
11695
+ class DescribeAigcVideoTaskResponse < TencentCloud::Common::AbstractModel
11696
+ # @param Status: 任务当前状态。 WAIT:等待中, RUN:执行中, FAIL:任务失败, DONE:任务成功。
11697
+ # @type Status: String
11698
+ # @param VideoUrls: 当任务状态为 DONE时,返回视频Url列表,视频存储12小时,请尽快取走使用。
11699
+ # @type VideoUrls: Array
11700
+ # @param Resolution: 输出视频的分辨率。示例:1080*720;
11701
+ # @type Resolution: String
11702
+ # @param Message: 当任务状态为 FAIL时,返回失败信息。
11703
+ # @type Message: String
11704
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11705
+ # @type RequestId: String
11706
+
11707
+ attr_accessor :Status, :VideoUrls, :Resolution, :Message, :RequestId
11708
+
11709
+ def initialize(status=nil, videourls=nil, resolution=nil, message=nil, requestid=nil)
11710
+ @Status = status
11711
+ @VideoUrls = videourls
11712
+ @Resolution = resolution
11713
+ @Message = message
11714
+ @RequestId = requestid
11715
+ end
11716
+
11717
+ def deserialize(params)
11718
+ @Status = params['Status']
11719
+ @VideoUrls = params['VideoUrls']
11720
+ @Resolution = params['Resolution']
11721
+ @Message = params['Message']
11722
+ @RequestId = params['RequestId']
11723
+ end
11724
+ end
11725
+
11031
11726
  # DescribeAnimatedGraphicsTemplates请求参数结构体
11032
11727
  class DescribeAnimatedGraphicsTemplatesRequest < TencentCloud::Common::AbstractModel
11033
11728
  # @param Definitions: 转动图模板唯一标识过滤条件,数组长度限制:100。
@@ -21939,7 +22634,6 @@ module TencentCloud
21939
22634
  # `iw`:希伯来语
21940
22635
  # `ja`:日语
21941
22636
  # `jv`:爪哇语
21942
- # `jw`:爪哇语
21943
22637
  # `ka`:格鲁吉亚语
21944
22638
  # `kk`:哈萨克语
21945
22639
  # `km`:高棉语
@@ -22026,7 +22720,6 @@ module TencentCloud
22026
22720
  # `th`:泰语
22027
22721
  # `ti`:提格里尼亚语
22028
22722
  # `tk`:土库曼语
22029
- # `tl`:菲律宾语(塔加拉语)
22030
22723
  # `tn`:茨瓦纳语
22031
22724
  # `tr`:土耳其语
22032
22725
  # `ts`:聪加语
@@ -22054,10 +22747,12 @@ module TencentCloud
22054
22747
 
22055
22748
  # **注意**:不传的情况下,默认是ASR方式
22056
22749
  # @type ProcessType: Integer
22750
+ # @param SelectingSubtitleAreasConfig: 字幕OCR提取框选区域配置
22751
+ # @type SelectingSubtitleAreasConfig: :class:`Tencentcloud::Mps.v20190612.models.SelectingSubtitleAreasConfig`
22057
22752
 
22058
- attr_accessor :Definition, :TranslateSwitch, :Name, :Comment, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :AsrHotWordsConfigure, :TranslateDstLanguage, :ProcessType
22753
+ attr_accessor :Definition, :TranslateSwitch, :Name, :Comment, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :AsrHotWordsConfigure, :TranslateDstLanguage, :ProcessType, :SelectingSubtitleAreasConfig
22059
22754
 
22060
- def initialize(definition=nil, translateswitch=nil, name=nil, comment=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, asrhotwordsconfigure=nil, translatedstlanguage=nil, processtype=nil)
22755
+ def initialize(definition=nil, translateswitch=nil, name=nil, comment=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, asrhotwordsconfigure=nil, translatedstlanguage=nil, processtype=nil, selectingsubtitleareasconfig=nil)
22061
22756
  @Definition = definition
22062
22757
  @TranslateSwitch = translateswitch
22063
22758
  @Name = name
@@ -22068,6 +22763,7 @@ module TencentCloud
22068
22763
  @AsrHotWordsConfigure = asrhotwordsconfigure
22069
22764
  @TranslateDstLanguage = translatedstlanguage
22070
22765
  @ProcessType = processtype
22766
+ @SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
22071
22767
  end
22072
22768
 
22073
22769
  def deserialize(params)
@@ -22084,6 +22780,10 @@ module TencentCloud
22084
22780
  end
22085
22781
  @TranslateDstLanguage = params['TranslateDstLanguage']
22086
22782
  @ProcessType = params['ProcessType']
22783
+ unless params['SelectingSubtitleAreasConfig'].nil?
22784
+ @SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
22785
+ @SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
22786
+ end
22087
22787
  end
22088
22788
  end
22089
22789
 
@@ -25077,7 +25777,6 @@ module TencentCloud
25077
25777
  # `iw`:希伯来语
25078
25778
  # `ja`:日语
25079
25779
  # `jv`:爪哇语
25080
- # `jw`:爪哇语
25081
25780
  # `ka`:格鲁吉亚语
25082
25781
  # `kk`:哈萨克语
25083
25782
  # `km`:高棉语
@@ -25164,7 +25863,6 @@ module TencentCloud
25164
25863
  # `th`:泰语
25165
25864
  # `ti`:提格里尼亚语
25166
25865
  # `tk`:土库曼语
25167
- # `tl`:菲律宾语(塔加拉语)
25168
25866
  # `tn`:茨瓦纳语
25169
25867
  # `tr`:土耳其语
25170
25868
  # `ts`:聪加语
@@ -25198,10 +25896,13 @@ module TencentCloud
25198
25896
 
25199
25897
  # **注意**:不传的情况下默认类型为 ASR识别字幕
25200
25898
  # @type ProcessType: Integer
25899
+ # @param SelectingSubtitleAreasConfig: 字幕OCR提取框选区域配置
25900
+ # 注意:此字段可能返回 null,表示取不到有效值。
25901
+ # @type SelectingSubtitleAreasConfig: :class:`Tencentcloud::Mps.v20190612.models.SelectingSubtitleAreasConfig`
25201
25902
 
25202
- attr_accessor :SubtitleType, :VideoSrcLanguage, :SubtitleFormat, :TranslateSwitch, :TranslateDstLanguage, :AsrHotWordsConfigure, :ExtInfo, :ProcessType
25903
+ attr_accessor :SubtitleType, :VideoSrcLanguage, :SubtitleFormat, :TranslateSwitch, :TranslateDstLanguage, :AsrHotWordsConfigure, :ExtInfo, :ProcessType, :SelectingSubtitleAreasConfig
25203
25904
 
25204
- def initialize(subtitletype=nil, videosrclanguage=nil, subtitleformat=nil, translateswitch=nil, translatedstlanguage=nil, asrhotwordsconfigure=nil, extinfo=nil, processtype=nil)
25905
+ def initialize(subtitletype=nil, videosrclanguage=nil, subtitleformat=nil, translateswitch=nil, translatedstlanguage=nil, asrhotwordsconfigure=nil, extinfo=nil, processtype=nil, selectingsubtitleareasconfig=nil)
25205
25906
  @SubtitleType = subtitletype
25206
25907
  @VideoSrcLanguage = videosrclanguage
25207
25908
  @SubtitleFormat = subtitleformat
@@ -25210,6 +25911,7 @@ module TencentCloud
25210
25911
  @AsrHotWordsConfigure = asrhotwordsconfigure
25211
25912
  @ExtInfo = extinfo
25212
25913
  @ProcessType = processtype
25914
+ @SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
25213
25915
  end
25214
25916
 
25215
25917
  def deserialize(params)
@@ -25224,6 +25926,10 @@ module TencentCloud
25224
25926
  end
25225
25927
  @ExtInfo = params['ExtInfo']
25226
25928
  @ProcessType = params['ProcessType']
25929
+ unless params['SelectingSubtitleAreasConfig'].nil?
25930
+ @SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
25931
+ @SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
25932
+ end
25227
25933
  end
25228
25934
  end
25229
25935
 
@@ -26771,6 +27477,38 @@ module TencentCloud
26771
27477
  end
26772
27478
  end
26773
27479
 
27480
+ # 字幕OCR提取框选区域配置
27481
+ class SelectingSubtitleAreasConfig < TencentCloud::Common::AbstractModel
27482
+ # @param AutoAreas: 自动选择自定义区域。
27483
+ # 对选定区域,利用AI模型自动检测其中存在的选择目标并提取。
27484
+ # @type AutoAreas: Array
27485
+ # @param SampleWidth: 示例视频或图片的宽,单位像素值
27486
+ # @type SampleWidth: Integer
27487
+ # @param SampleHeight: 示例视频或图片的高,单位像素值
27488
+ # @type SampleHeight: Integer
27489
+
27490
+ attr_accessor :AutoAreas, :SampleWidth, :SampleHeight
27491
+
27492
+ def initialize(autoareas=nil, samplewidth=nil, sampleheight=nil)
27493
+ @AutoAreas = autoareas
27494
+ @SampleWidth = samplewidth
27495
+ @SampleHeight = sampleheight
27496
+ end
27497
+
27498
+ def deserialize(params)
27499
+ unless params['AutoAreas'].nil?
27500
+ @AutoAreas = []
27501
+ params['AutoAreas'].each do |i|
27502
+ erasearea_tmp = EraseArea.new
27503
+ erasearea_tmp.deserialize(i)
27504
+ @AutoAreas << erasearea_tmp
27505
+ end
27506
+ end
27507
+ @SampleWidth = params['SampleWidth']
27508
+ @SampleHeight = params['SampleHeight']
27509
+ end
27510
+ end
27511
+
26774
27512
  # 细节增强配置
26775
27513
  class SharpEnhanceConfig < TencentCloud::Common::AbstractModel
26776
27514
  # @param Switch: 能力配置开关,可选值:
@@ -27672,7 +28410,7 @@ module TencentCloud
27672
28410
  # @param SubtitleFormat: 智能字幕文件格式
27673
28411
  # - vtt: WebVTT 格式
27674
28412
  # - srt: SRT格式
27675
- # - original:与源字幕文件一致(用于纯字幕翻译模版)
28413
+ # - original:与源字幕文件一致(用于纯字幕翻译模板)
27676
28414
  # - 不填或填空:不生成字幕文件
27677
28415
  # 注意:此字段可能返回 null,表示取不到有效值。
27678
28416
  # @type SubtitleFormat: String
@@ -27726,11 +28464,15 @@ module TencentCloud
27726
28464
  # @param ProcessType: 字幕处理类型:
27727
28465
  # - 0:ASR识别字幕
27728
28466
  # - 1:纯字幕翻译
28467
+ # - 2: OCR识别字幕
27729
28468
  # @type ProcessType: Integer
28469
+ # @param SelectingSubtitleAreasConfig: 字幕OCR提取框选区域配置信息
28470
+ # 注意:此字段可能返回 null,表示取不到有效值。
28471
+ # @type SelectingSubtitleAreasConfig: :class:`Tencentcloud::Mps.v20190612.models.SelectingSubtitleAreasConfig`
27730
28472
 
27731
- attr_accessor :Definition, :Name, :Comment, :Type, :AsrHotWordsConfigure, :AsrHotWordsLibraryName, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :TranslateSwitch, :TranslateDstLanguage, :CreateTime, :UpdateTime, :AliasName, :ProcessType
28473
+ attr_accessor :Definition, :Name, :Comment, :Type, :AsrHotWordsConfigure, :AsrHotWordsLibraryName, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :TranslateSwitch, :TranslateDstLanguage, :CreateTime, :UpdateTime, :AliasName, :ProcessType, :SelectingSubtitleAreasConfig
27732
28474
 
27733
- 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)
28475
+ 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)
27734
28476
  @Definition = definition
27735
28477
  @Name = name
27736
28478
  @Comment = comment
@@ -27746,6 +28488,7 @@ module TencentCloud
27746
28488
  @UpdateTime = updatetime
27747
28489
  @AliasName = aliasname
27748
28490
  @ProcessType = processtype
28491
+ @SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
27749
28492
  end
27750
28493
 
27751
28494
  def deserialize(params)
@@ -27767,6 +28510,10 @@ module TencentCloud
27767
28510
  @UpdateTime = params['UpdateTime']
27768
28511
  @AliasName = params['AliasName']
27769
28512
  @ProcessType = params['ProcessType']
28513
+ unless params['SelectingSubtitleAreasConfig'].nil?
28514
+ @SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
28515
+ @SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
28516
+ end
27770
28517
  end
27771
28518
  end
27772
28519
 
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.1189
4
+ version: 3.0.1192
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-24 00:00:00.000000000 Z
11
+ date: 2025-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common