tencentcloud-sdk-mps 3.0.1191 → 3.0.1193
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 +96 -0
- data/lib/v20190612/models.rb +500 -8
- 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: 7027b80ff498929f90df96461ac61560dd8c669a
|
|
4
|
+
data.tar.gz: 1f1a93ed93fdf353b00f5aafbd0c1c93575b9723
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b1096132403749a85fddd530ef99010b4f28842aa319da1096b9be9c2a3cb79b1b0eddf3e048e4ea95cccf227aadfbdd0d976ed501a782ba9011a40f3221abb4
|
|
7
|
+
data.tar.gz: c512d0a16ba9aec699da313e93b0442d242c3b549af0202defd17c368ecb56434f18a95a987f6f3572d98793ed06a0c22cf3bc29a63395b1d3ddeaeff6d4c1b6
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1193
|
data/lib/v20190612/client.rb
CHANGED
|
@@ -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.
|
data/lib/v20190612/models.rb
CHANGED
|
@@ -4870,6 +4870,160 @@ module TencentCloud
|
|
|
4870
4870
|
end
|
|
4871
4871
|
end
|
|
4872
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
|
+
|
|
4873
5027
|
# 转动图任务类型。
|
|
4874
5028
|
class AnimatedGraphicTaskInput < TencentCloud::Common::AbstractModel
|
|
4875
5029
|
# @param Definition: 视频转动图模板 ID。
|
|
@@ -7537,6 +7691,242 @@ module TencentCloud
|
|
|
7537
7691
|
end
|
|
7538
7692
|
end
|
|
7539
7693
|
|
|
7694
|
+
# CreateAigcImageTask请求参数结构体
|
|
7695
|
+
class CreateAigcImageTaskRequest < TencentCloud::Common::AbstractModel
|
|
7696
|
+
# @param ModelName: 模型名称。
|
|
7697
|
+
# 当前支持的模型列表:
|
|
7698
|
+
# Hunyuan,
|
|
7699
|
+
# GEM,
|
|
7700
|
+
# Jimeng,
|
|
7701
|
+
# Qwen。
|
|
7702
|
+
# @type ModelName: String
|
|
7703
|
+
# @param ModelVersion: 指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。
|
|
7704
|
+
|
|
7705
|
+
# 1. GEM, 可选[2.5,3.0]。
|
|
7706
|
+
# 2. Jimeng,可选[4.0]。
|
|
7707
|
+
# @type ModelVersion: String
|
|
7708
|
+
# @param Prompt: 生成图片的描述。(注:最大支持1000字符)。当未传入参考图片时,此参数必填。
|
|
7709
|
+
# @type Prompt: String
|
|
7710
|
+
# @param NegativePrompt: 用于描述您想要阻止模型生成的内容。 注意:部分模型支持。 例如: 顶部照明、明亮的色彩 人物、动物 多辆汽车、风。
|
|
7711
|
+
# @type NegativePrompt: String
|
|
7712
|
+
# @param EnhancePrompt: 默认取值为False,模型会严格地遵循指令。如果需要更精细的prompt获得最佳效果,可将此参数设置为True,将自动优化传入的prompt,以提升生成质量。
|
|
7713
|
+
# @type EnhancePrompt: Boolean
|
|
7714
|
+
# @param ImageInfos: 用于传入参考的资源图片信息,默认支持传入一张图片。
|
|
7715
|
+
|
|
7716
|
+
# 支持多图输入的模型:
|
|
7717
|
+
# 1. GEM,可支持最多3张图片输入作为资源图。
|
|
7718
|
+
|
|
7719
|
+
# 注意:
|
|
7720
|
+
# 1. 推荐图片小于7M,各模型限制不同。
|
|
7721
|
+
# 2. 图片格式支持:jpeg, png, webp。
|
|
7722
|
+
# @type ImageInfos: Array
|
|
7723
|
+
# @param ExtraParameters: 用于传入模型要求的额外参数。
|
|
7724
|
+
# @type ExtraParameters: :class:`Tencentcloud::Mps.v20190612.models.AigcImageExtraParam`
|
|
7725
|
+
# @param StoreCosParam: 文件结果指定存储Cos桶信息。 注意:需开通Cos,创建并授权MPS_QcsRole角色。
|
|
7726
|
+
# @type StoreCosParam: :class:`Tencentcloud::Mps.v20190612.models.AigcStoreCosParam`
|
|
7727
|
+
# @param Operator: 接口操作者名称。
|
|
7728
|
+
# @type Operator: String
|
|
7729
|
+
|
|
7730
|
+
attr_accessor :ModelName, :ModelVersion, :Prompt, :NegativePrompt, :EnhancePrompt, :ImageInfos, :ExtraParameters, :StoreCosParam, :Operator
|
|
7731
|
+
|
|
7732
|
+
def initialize(modelname=nil, modelversion=nil, prompt=nil, negativeprompt=nil, enhanceprompt=nil, imageinfos=nil, extraparameters=nil, storecosparam=nil, operator=nil)
|
|
7733
|
+
@ModelName = modelname
|
|
7734
|
+
@ModelVersion = modelversion
|
|
7735
|
+
@Prompt = prompt
|
|
7736
|
+
@NegativePrompt = negativeprompt
|
|
7737
|
+
@EnhancePrompt = enhanceprompt
|
|
7738
|
+
@ImageInfos = imageinfos
|
|
7739
|
+
@ExtraParameters = extraparameters
|
|
7740
|
+
@StoreCosParam = storecosparam
|
|
7741
|
+
@Operator = operator
|
|
7742
|
+
end
|
|
7743
|
+
|
|
7744
|
+
def deserialize(params)
|
|
7745
|
+
@ModelName = params['ModelName']
|
|
7746
|
+
@ModelVersion = params['ModelVersion']
|
|
7747
|
+
@Prompt = params['Prompt']
|
|
7748
|
+
@NegativePrompt = params['NegativePrompt']
|
|
7749
|
+
@EnhancePrompt = params['EnhancePrompt']
|
|
7750
|
+
unless params['ImageInfos'].nil?
|
|
7751
|
+
@ImageInfos = []
|
|
7752
|
+
params['ImageInfos'].each do |i|
|
|
7753
|
+
aigcimageinfo_tmp = AigcImageInfo.new
|
|
7754
|
+
aigcimageinfo_tmp.deserialize(i)
|
|
7755
|
+
@ImageInfos << aigcimageinfo_tmp
|
|
7756
|
+
end
|
|
7757
|
+
end
|
|
7758
|
+
unless params['ExtraParameters'].nil?
|
|
7759
|
+
@ExtraParameters = AigcImageExtraParam.new
|
|
7760
|
+
@ExtraParameters.deserialize(params['ExtraParameters'])
|
|
7761
|
+
end
|
|
7762
|
+
unless params['StoreCosParam'].nil?
|
|
7763
|
+
@StoreCosParam = AigcStoreCosParam.new
|
|
7764
|
+
@StoreCosParam.deserialize(params['StoreCosParam'])
|
|
7765
|
+
end
|
|
7766
|
+
@Operator = params['Operator']
|
|
7767
|
+
end
|
|
7768
|
+
end
|
|
7769
|
+
|
|
7770
|
+
# CreateAigcImageTask返回参数结构体
|
|
7771
|
+
class CreateAigcImageTaskResponse < TencentCloud::Common::AbstractModel
|
|
7772
|
+
# @param TaskId: 返回的任务ID。
|
|
7773
|
+
# @type TaskId: String
|
|
7774
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7775
|
+
# @type RequestId: String
|
|
7776
|
+
|
|
7777
|
+
attr_accessor :TaskId, :RequestId
|
|
7778
|
+
|
|
7779
|
+
def initialize(taskid=nil, requestid=nil)
|
|
7780
|
+
@TaskId = taskid
|
|
7781
|
+
@RequestId = requestid
|
|
7782
|
+
end
|
|
7783
|
+
|
|
7784
|
+
def deserialize(params)
|
|
7785
|
+
@TaskId = params['TaskId']
|
|
7786
|
+
@RequestId = params['RequestId']
|
|
7787
|
+
end
|
|
7788
|
+
end
|
|
7789
|
+
|
|
7790
|
+
# CreateAigcVideoTask请求参数结构体
|
|
7791
|
+
class CreateAigcVideoTaskRequest < TencentCloud::Common::AbstractModel
|
|
7792
|
+
# @param ModelName: 模型名称。
|
|
7793
|
+
# 当前支持的模型列表:
|
|
7794
|
+
# Hunyuan,
|
|
7795
|
+
# Hailuo,
|
|
7796
|
+
# Kling,
|
|
7797
|
+
# Jimeng,
|
|
7798
|
+
# Vidu,
|
|
7799
|
+
# OS,
|
|
7800
|
+
# GV。
|
|
7801
|
+
# @type ModelName: String
|
|
7802
|
+
# @param ModelVersion: 指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。
|
|
7803
|
+
# 1. Hailuo, 可选[02、2.3]。
|
|
7804
|
+
# 2. Kling,可选[2.0、2.1、2.5]。
|
|
7805
|
+
# 3. Jimeng, 可选[3.0pro]。
|
|
7806
|
+
# 4. Vidu,可选[q2、q2-pro、q2-turbo]。
|
|
7807
|
+
# 4. GV, 可选[3.1]。
|
|
7808
|
+
# 5. OS,可选[2.0]。
|
|
7809
|
+
# @type ModelVersion: String
|
|
7810
|
+
# @param Prompt: 生成视频的描述。(注:最大支持2000字符)。当未传入图片时,此参数必填。
|
|
7811
|
+
# @type Prompt: String
|
|
7812
|
+
# @param NegativePrompt: 用于描述您想要阻止模型生成的内容。
|
|
7813
|
+
# 注意:部分模型支持。
|
|
7814
|
+
# 例如:
|
|
7815
|
+
# 顶部照明、明亮的色彩
|
|
7816
|
+
# 人物、动物
|
|
7817
|
+
# 多辆汽车、风。
|
|
7818
|
+
# @type NegativePrompt: String
|
|
7819
|
+
# @param EnhancePrompt: 默认取值为False,模型会严格地遵循指令。如果需要更精细的prompt获得最佳效果,可将此参数设置为True,将自动优化传入的prompt,以提升生成质量。
|
|
7820
|
+
# @type EnhancePrompt: Boolean
|
|
7821
|
+
# @param ImageUrl: 用于指导视频生成的图片 URL。该URL需外网可访问。
|
|
7822
|
+
# 注意:
|
|
7823
|
+
# 1. 推荐图片大小不超过10M,不同模型大小限制不相同。
|
|
7824
|
+
# 2. 支持的图片格式:jpeg、png。
|
|
7825
|
+
# 3. 使用OS模型时,需输入图片尺寸为: 1280x720、720x1280。
|
|
7826
|
+
# @type ImageUrl: String
|
|
7827
|
+
# @param LastImageUrl: 模型将以此参数传入的图片作为尾帧画面来生成视频。
|
|
7828
|
+
# 支持此参数的模型:
|
|
7829
|
+
# 1. GV,传入尾帧图片时,必须同时传入ImageUrl作为首帧。
|
|
7830
|
+
# 2. Kling, 在Resolution:1080P的情况下 2.1版本支持首位帧。
|
|
7831
|
+
# 3. Vidu, q2-pro, q2-turbo 支持首尾帧。
|
|
7832
|
+
|
|
7833
|
+
# 注意:
|
|
7834
|
+
# 1. 推荐图片大小不超过10M,各模型限制不同。
|
|
7835
|
+
# 2. 支持的图片格式:jpeg、png。
|
|
7836
|
+
# @type LastImageUrl: String
|
|
7837
|
+
# @param ImageInfos: 最多包含三张素材资源图片的列表,用于描述模型在生成视频时要使用的资源图片。
|
|
7838
|
+
|
|
7839
|
+
# 支持多图输入的模型:
|
|
7840
|
+
# 1. GV,使用多图输入时,不可使用ImageUrl和LastImageUrl。
|
|
7841
|
+
# 2. Vidu,支持多图参考生视频。q2模型1-7张图片,可通过ImageInfos里面的ReferenceType作为主体id来传入。
|
|
7842
|
+
|
|
7843
|
+
# 注意:
|
|
7844
|
+
# 1. 图片大小不超过10M。
|
|
7845
|
+
# 2. 支持的图片格式:jpeg、png。
|
|
7846
|
+
# @type ImageInfos: Array
|
|
7847
|
+
# @param Duration: 生成视频的时长。
|
|
7848
|
+
# 注意:
|
|
7849
|
+
# 1. Kling支持 5、10秒。默认: 5秒。
|
|
7850
|
+
# 2. Jimeng支持5、10秒。 默认: 5秒。
|
|
7851
|
+
# 3. Hailuo的std模式可支持6、10秒,其他仅6秒。默认:6秒。
|
|
7852
|
+
# 4. Vidu支持1-10秒。
|
|
7853
|
+
# 4. GV支持 8秒。 默认:8秒。
|
|
7854
|
+
# 5. OS支持4、8、12秒。 默认:8秒。
|
|
7855
|
+
# @type Duration: Integer
|
|
7856
|
+
# @param ExtraParameters: 用于传入模型要求的额外参数。
|
|
7857
|
+
# @type ExtraParameters: :class:`Tencentcloud::Mps.v20190612.models.AigcVideoExtraParam`
|
|
7858
|
+
# @param StoreCosParam: 文件结果指定存储Cos桶信息。 注意:需开通Cos,创建并授权MPS_QcsRole角色。
|
|
7859
|
+
# @type StoreCosParam: :class:`Tencentcloud::Mps.v20190612.models.AigcStoreCosParam`
|
|
7860
|
+
# @param Operator: 接口操作者名称。
|
|
7861
|
+
# @type Operator: String
|
|
7862
|
+
|
|
7863
|
+
attr_accessor :ModelName, :ModelVersion, :Prompt, :NegativePrompt, :EnhancePrompt, :ImageUrl, :LastImageUrl, :ImageInfos, :Duration, :ExtraParameters, :StoreCosParam, :Operator
|
|
7864
|
+
|
|
7865
|
+
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)
|
|
7866
|
+
@ModelName = modelname
|
|
7867
|
+
@ModelVersion = modelversion
|
|
7868
|
+
@Prompt = prompt
|
|
7869
|
+
@NegativePrompt = negativeprompt
|
|
7870
|
+
@EnhancePrompt = enhanceprompt
|
|
7871
|
+
@ImageUrl = imageurl
|
|
7872
|
+
@LastImageUrl = lastimageurl
|
|
7873
|
+
@ImageInfos = imageinfos
|
|
7874
|
+
@Duration = duration
|
|
7875
|
+
@ExtraParameters = extraparameters
|
|
7876
|
+
@StoreCosParam = storecosparam
|
|
7877
|
+
@Operator = operator
|
|
7878
|
+
end
|
|
7879
|
+
|
|
7880
|
+
def deserialize(params)
|
|
7881
|
+
@ModelName = params['ModelName']
|
|
7882
|
+
@ModelVersion = params['ModelVersion']
|
|
7883
|
+
@Prompt = params['Prompt']
|
|
7884
|
+
@NegativePrompt = params['NegativePrompt']
|
|
7885
|
+
@EnhancePrompt = params['EnhancePrompt']
|
|
7886
|
+
@ImageUrl = params['ImageUrl']
|
|
7887
|
+
@LastImageUrl = params['LastImageUrl']
|
|
7888
|
+
unless params['ImageInfos'].nil?
|
|
7889
|
+
@ImageInfos = []
|
|
7890
|
+
params['ImageInfos'].each do |i|
|
|
7891
|
+
aigcvideoreferenceimageinfo_tmp = AigcVideoReferenceImageInfo.new
|
|
7892
|
+
aigcvideoreferenceimageinfo_tmp.deserialize(i)
|
|
7893
|
+
@ImageInfos << aigcvideoreferenceimageinfo_tmp
|
|
7894
|
+
end
|
|
7895
|
+
end
|
|
7896
|
+
@Duration = params['Duration']
|
|
7897
|
+
unless params['ExtraParameters'].nil?
|
|
7898
|
+
@ExtraParameters = AigcVideoExtraParam.new
|
|
7899
|
+
@ExtraParameters.deserialize(params['ExtraParameters'])
|
|
7900
|
+
end
|
|
7901
|
+
unless params['StoreCosParam'].nil?
|
|
7902
|
+
@StoreCosParam = AigcStoreCosParam.new
|
|
7903
|
+
@StoreCosParam.deserialize(params['StoreCosParam'])
|
|
7904
|
+
end
|
|
7905
|
+
@Operator = params['Operator']
|
|
7906
|
+
end
|
|
7907
|
+
end
|
|
7908
|
+
|
|
7909
|
+
# CreateAigcVideoTask返回参数结构体
|
|
7910
|
+
class CreateAigcVideoTaskResponse < TencentCloud::Common::AbstractModel
|
|
7911
|
+
# @param TaskId: 任务创建成功后,返回的任务ID。
|
|
7912
|
+
# 调用查询接口,轮询获取任务进度及生成结果。
|
|
7913
|
+
# @type TaskId: String
|
|
7914
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7915
|
+
# @type RequestId: String
|
|
7916
|
+
|
|
7917
|
+
attr_accessor :TaskId, :RequestId
|
|
7918
|
+
|
|
7919
|
+
def initialize(taskid=nil, requestid=nil)
|
|
7920
|
+
@TaskId = taskid
|
|
7921
|
+
@RequestId = requestid
|
|
7922
|
+
end
|
|
7923
|
+
|
|
7924
|
+
def deserialize(params)
|
|
7925
|
+
@TaskId = params['TaskId']
|
|
7926
|
+
@RequestId = params['RequestId']
|
|
7927
|
+
end
|
|
7928
|
+
end
|
|
7929
|
+
|
|
7540
7930
|
# CreateAnimatedGraphicsTemplate请求参数结构体
|
|
7541
7931
|
class CreateAnimatedGraphicsTemplateRequest < TencentCloud::Common::AbstractModel
|
|
7542
7932
|
# @param Fps: 帧率,取值范围:[1, 30],单位:Hz。
|
|
@@ -9314,7 +9704,6 @@ module TencentCloud
|
|
|
9314
9704
|
# `iw`:希伯来语
|
|
9315
9705
|
# `ja`:日语
|
|
9316
9706
|
# `jv`:爪哇语
|
|
9317
|
-
# `jw`:爪哇语
|
|
9318
9707
|
# `ka`:格鲁吉亚语
|
|
9319
9708
|
# `kk`:哈萨克语
|
|
9320
9709
|
# `km`:高棉语
|
|
@@ -9401,7 +9790,6 @@ module TencentCloud
|
|
|
9401
9790
|
# `th`:泰语
|
|
9402
9791
|
# `ti`:提格里尼亚语
|
|
9403
9792
|
# `tk`:土库曼语
|
|
9404
|
-
# `tl`:菲律宾语(塔加拉语)
|
|
9405
9793
|
# `tn`:茨瓦纳语
|
|
9406
9794
|
# `tr`:土耳其语
|
|
9407
9795
|
# `ts`:聪加语
|
|
@@ -9429,10 +9817,12 @@ module TencentCloud
|
|
|
9429
9817
|
|
|
9430
9818
|
# **注意**:不传的情况下默认类型为 ASR识别字幕
|
|
9431
9819
|
# @type ProcessType: Integer
|
|
9820
|
+
# @param SelectingSubtitleAreasConfig: 字幕OCR提取框选区域配置
|
|
9821
|
+
# @type SelectingSubtitleAreasConfig: :class:`Tencentcloud::Mps.v20190612.models.SelectingSubtitleAreasConfig`
|
|
9432
9822
|
|
|
9433
|
-
attr_accessor :Name, :VideoSrcLanguage, :SubtitleType, :Comment, :SubtitleFormat, :AsrHotWordsConfigure, :TranslateSwitch, :TranslateDstLanguage, :ProcessType
|
|
9823
|
+
attr_accessor :Name, :VideoSrcLanguage, :SubtitleType, :Comment, :SubtitleFormat, :AsrHotWordsConfigure, :TranslateSwitch, :TranslateDstLanguage, :ProcessType, :SelectingSubtitleAreasConfig
|
|
9434
9824
|
|
|
9435
|
-
def initialize(name=nil, videosrclanguage=nil, subtitletype=nil, comment=nil, subtitleformat=nil, asrhotwordsconfigure=nil, translateswitch=nil, translatedstlanguage=nil, processtype=nil)
|
|
9825
|
+
def initialize(name=nil, videosrclanguage=nil, subtitletype=nil, comment=nil, subtitleformat=nil, asrhotwordsconfigure=nil, translateswitch=nil, translatedstlanguage=nil, processtype=nil, selectingsubtitleareasconfig=nil)
|
|
9436
9826
|
@Name = name
|
|
9437
9827
|
@VideoSrcLanguage = videosrclanguage
|
|
9438
9828
|
@SubtitleType = subtitletype
|
|
@@ -9442,6 +9832,7 @@ module TencentCloud
|
|
|
9442
9832
|
@TranslateSwitch = translateswitch
|
|
9443
9833
|
@TranslateDstLanguage = translatedstlanguage
|
|
9444
9834
|
@ProcessType = processtype
|
|
9835
|
+
@SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
|
|
9445
9836
|
end
|
|
9446
9837
|
|
|
9447
9838
|
def deserialize(params)
|
|
@@ -9457,6 +9848,10 @@ module TencentCloud
|
|
|
9457
9848
|
@TranslateSwitch = params['TranslateSwitch']
|
|
9458
9849
|
@TranslateDstLanguage = params['TranslateDstLanguage']
|
|
9459
9850
|
@ProcessType = params['ProcessType']
|
|
9851
|
+
unless params['SelectingSubtitleAreasConfig'].nil?
|
|
9852
|
+
@SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
|
|
9853
|
+
@SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
|
|
9854
|
+
end
|
|
9460
9855
|
end
|
|
9461
9856
|
end
|
|
9462
9857
|
|
|
@@ -11238,6 +11633,98 @@ module TencentCloud
|
|
|
11238
11633
|
end
|
|
11239
11634
|
end
|
|
11240
11635
|
|
|
11636
|
+
# DescribeAigcImageTask请求参数结构体
|
|
11637
|
+
class DescribeAigcImageTaskRequest < TencentCloud::Common::AbstractModel
|
|
11638
|
+
# @param TaskId: 创建的AIGC生图片任务ID。
|
|
11639
|
+
# @type TaskId: String
|
|
11640
|
+
|
|
11641
|
+
attr_accessor :TaskId
|
|
11642
|
+
|
|
11643
|
+
def initialize(taskid=nil)
|
|
11644
|
+
@TaskId = taskid
|
|
11645
|
+
end
|
|
11646
|
+
|
|
11647
|
+
def deserialize(params)
|
|
11648
|
+
@TaskId = params['TaskId']
|
|
11649
|
+
end
|
|
11650
|
+
end
|
|
11651
|
+
|
|
11652
|
+
# DescribeAigcImageTask返回参数结构体
|
|
11653
|
+
class DescribeAigcImageTaskResponse < TencentCloud::Common::AbstractModel
|
|
11654
|
+
# @param Status: 任务当前状态。 WAIT:等待中, RUN:执行中, FAIL:任务失败, DONE:任务成功。
|
|
11655
|
+
# @type Status: String
|
|
11656
|
+
# @param ImageUrls: 当任务状态为 DONE时,返回的图片Url列表,图片存储12小时,请尽快取走使用。
|
|
11657
|
+
# @type ImageUrls: Array
|
|
11658
|
+
# @param Message: 当任务状态为 FAIL时,返回失败信息。
|
|
11659
|
+
# @type Message: String
|
|
11660
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11661
|
+
# @type RequestId: String
|
|
11662
|
+
|
|
11663
|
+
attr_accessor :Status, :ImageUrls, :Message, :RequestId
|
|
11664
|
+
|
|
11665
|
+
def initialize(status=nil, imageurls=nil, message=nil, requestid=nil)
|
|
11666
|
+
@Status = status
|
|
11667
|
+
@ImageUrls = imageurls
|
|
11668
|
+
@Message = message
|
|
11669
|
+
@RequestId = requestid
|
|
11670
|
+
end
|
|
11671
|
+
|
|
11672
|
+
def deserialize(params)
|
|
11673
|
+
@Status = params['Status']
|
|
11674
|
+
@ImageUrls = params['ImageUrls']
|
|
11675
|
+
@Message = params['Message']
|
|
11676
|
+
@RequestId = params['RequestId']
|
|
11677
|
+
end
|
|
11678
|
+
end
|
|
11679
|
+
|
|
11680
|
+
# DescribeAigcVideoTask请求参数结构体
|
|
11681
|
+
class DescribeAigcVideoTaskRequest < TencentCloud::Common::AbstractModel
|
|
11682
|
+
# @param TaskId: 创建AIGC生视频任务时,返回的任务ID。
|
|
11683
|
+
# @type TaskId: String
|
|
11684
|
+
|
|
11685
|
+
attr_accessor :TaskId
|
|
11686
|
+
|
|
11687
|
+
def initialize(taskid=nil)
|
|
11688
|
+
@TaskId = taskid
|
|
11689
|
+
end
|
|
11690
|
+
|
|
11691
|
+
def deserialize(params)
|
|
11692
|
+
@TaskId = params['TaskId']
|
|
11693
|
+
end
|
|
11694
|
+
end
|
|
11695
|
+
|
|
11696
|
+
# DescribeAigcVideoTask返回参数结构体
|
|
11697
|
+
class DescribeAigcVideoTaskResponse < TencentCloud::Common::AbstractModel
|
|
11698
|
+
# @param Status: 任务当前状态。 WAIT:等待中, RUN:执行中, FAIL:任务失败, DONE:任务成功。
|
|
11699
|
+
# @type Status: String
|
|
11700
|
+
# @param VideoUrls: 当任务状态为 DONE时,返回视频Url列表,视频存储12小时,请尽快取走使用。
|
|
11701
|
+
# @type VideoUrls: Array
|
|
11702
|
+
# @param Resolution: 输出视频的分辨率。示例:1080*720;
|
|
11703
|
+
# @type Resolution: String
|
|
11704
|
+
# @param Message: 当任务状态为 FAIL时,返回失败信息。
|
|
11705
|
+
# @type Message: String
|
|
11706
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11707
|
+
# @type RequestId: String
|
|
11708
|
+
|
|
11709
|
+
attr_accessor :Status, :VideoUrls, :Resolution, :Message, :RequestId
|
|
11710
|
+
|
|
11711
|
+
def initialize(status=nil, videourls=nil, resolution=nil, message=nil, requestid=nil)
|
|
11712
|
+
@Status = status
|
|
11713
|
+
@VideoUrls = videourls
|
|
11714
|
+
@Resolution = resolution
|
|
11715
|
+
@Message = message
|
|
11716
|
+
@RequestId = requestid
|
|
11717
|
+
end
|
|
11718
|
+
|
|
11719
|
+
def deserialize(params)
|
|
11720
|
+
@Status = params['Status']
|
|
11721
|
+
@VideoUrls = params['VideoUrls']
|
|
11722
|
+
@Resolution = params['Resolution']
|
|
11723
|
+
@Message = params['Message']
|
|
11724
|
+
@RequestId = params['RequestId']
|
|
11725
|
+
end
|
|
11726
|
+
end
|
|
11727
|
+
|
|
11241
11728
|
# DescribeAnimatedGraphicsTemplates请求参数结构体
|
|
11242
11729
|
class DescribeAnimatedGraphicsTemplatesRequest < TencentCloud::Common::AbstractModel
|
|
11243
11730
|
# @param Definitions: 转动图模板唯一标识过滤条件,数组长度限制:100。
|
|
@@ -22149,7 +22636,6 @@ module TencentCloud
|
|
|
22149
22636
|
# `iw`:希伯来语
|
|
22150
22637
|
# `ja`:日语
|
|
22151
22638
|
# `jv`:爪哇语
|
|
22152
|
-
# `jw`:爪哇语
|
|
22153
22639
|
# `ka`:格鲁吉亚语
|
|
22154
22640
|
# `kk`:哈萨克语
|
|
22155
22641
|
# `km`:高棉语
|
|
@@ -22236,7 +22722,6 @@ module TencentCloud
|
|
|
22236
22722
|
# `th`:泰语
|
|
22237
22723
|
# `ti`:提格里尼亚语
|
|
22238
22724
|
# `tk`:土库曼语
|
|
22239
|
-
# `tl`:菲律宾语(塔加拉语)
|
|
22240
22725
|
# `tn`:茨瓦纳语
|
|
22241
22726
|
# `tr`:土耳其语
|
|
22242
22727
|
# `ts`:聪加语
|
|
@@ -22264,10 +22749,12 @@ module TencentCloud
|
|
|
22264
22749
|
|
|
22265
22750
|
# **注意**:不传的情况下,默认是ASR方式
|
|
22266
22751
|
# @type ProcessType: Integer
|
|
22752
|
+
# @param SelectingSubtitleAreasConfig: 字幕OCR提取框选区域配置
|
|
22753
|
+
# @type SelectingSubtitleAreasConfig: :class:`Tencentcloud::Mps.v20190612.models.SelectingSubtitleAreasConfig`
|
|
22267
22754
|
|
|
22268
|
-
attr_accessor :Definition, :TranslateSwitch, :Name, :Comment, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :AsrHotWordsConfigure, :TranslateDstLanguage, :ProcessType
|
|
22755
|
+
attr_accessor :Definition, :TranslateSwitch, :Name, :Comment, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :AsrHotWordsConfigure, :TranslateDstLanguage, :ProcessType, :SelectingSubtitleAreasConfig
|
|
22269
22756
|
|
|
22270
|
-
def initialize(definition=nil, translateswitch=nil, name=nil, comment=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, asrhotwordsconfigure=nil, translatedstlanguage=nil, processtype=nil)
|
|
22757
|
+
def initialize(definition=nil, translateswitch=nil, name=nil, comment=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, asrhotwordsconfigure=nil, translatedstlanguage=nil, processtype=nil, selectingsubtitleareasconfig=nil)
|
|
22271
22758
|
@Definition = definition
|
|
22272
22759
|
@TranslateSwitch = translateswitch
|
|
22273
22760
|
@Name = name
|
|
@@ -22278,6 +22765,7 @@ module TencentCloud
|
|
|
22278
22765
|
@AsrHotWordsConfigure = asrhotwordsconfigure
|
|
22279
22766
|
@TranslateDstLanguage = translatedstlanguage
|
|
22280
22767
|
@ProcessType = processtype
|
|
22768
|
+
@SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
|
|
22281
22769
|
end
|
|
22282
22770
|
|
|
22283
22771
|
def deserialize(params)
|
|
@@ -22294,6 +22782,10 @@ module TencentCloud
|
|
|
22294
22782
|
end
|
|
22295
22783
|
@TranslateDstLanguage = params['TranslateDstLanguage']
|
|
22296
22784
|
@ProcessType = params['ProcessType']
|
|
22785
|
+
unless params['SelectingSubtitleAreasConfig'].nil?
|
|
22786
|
+
@SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
|
|
22787
|
+
@SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
|
|
22788
|
+
end
|
|
22297
22789
|
end
|
|
22298
22790
|
end
|
|
22299
22791
|
|
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.1193
|
|
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-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|