tencentcloud-sdk-vclm 3.0.1130 → 3.0.1171

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: f5d80d76af3b5ab5a6c7a9abcaead819d0da9e43
4
- data.tar.gz: b0e9ea1970370199cbf506cddfb9715e7079d324
3
+ metadata.gz: 8bbaae5b2672d2773d7e2398dd2fc3d473a2131f
4
+ data.tar.gz: 0dda2ce51f4e22d53359a97172310f53c048a376
5
5
  SHA512:
6
- metadata.gz: 4da157487747be22c9de4eae2141aa8567183642b579e1236ae55b32b0eb2e0e51701d34f7e118797245e90418bd5c33573f14ab7943ca710bb350be9ac6c5d2
7
- data.tar.gz: 6f66bc964c31016de15dca4f80ab9867e0177ed7922a0befbe53b62dc598dafffaf559b0a167eaae84d7bc6f06b03d891080645ad3b5ccea729ad75f527100e1
6
+ metadata.gz: e8bfc67e66bb204c11740f54bf9733c18008cd02f432e9efde25edda4323c425ec8052402c48a84d47d3f4714c0eb3008735168dd4c161cdb50a9a8281ded695
7
+ data.tar.gz: 9b09e2f40ae855ee22272793f669908307e7c0e2f2135f3d17bd3213253493ff9aabd9c202bc1323952c11d8298f1ae1f2029715339e92a701407e85ae1021d9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1130
1
+ 3.0.1171
@@ -53,6 +53,30 @@ module TencentCloud
53
53
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
54
  end
55
55
 
56
+ # 通过JobId提交请求,获取人像驱动任务的结果信息。
57
+
58
+ # @param request: Request instance for DescribeHumanActorJob.
59
+ # @type request: :class:`Tencentcloud::vclm::V20240523::DescribeHumanActorJobRequest`
60
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeHumanActorJobResponse`
61
+ def DescribeHumanActorJob(request)
62
+ body = send_request('DescribeHumanActorJob', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeHumanActorJobResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
56
80
  # 用于查询图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
57
81
 
58
82
  # @param request: Request instance for DescribeImageAnimateJob.
@@ -77,6 +101,30 @@ module TencentCloud
77
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
102
  end
79
103
 
104
+ # 查询图生视频通用能力任务接口
105
+
106
+ # @param request: Request instance for DescribeImageToVideoGeneralJob.
107
+ # @type request: :class:`Tencentcloud::vclm::V20240523::DescribeImageToVideoGeneralJobRequest`
108
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeImageToVideoGeneralJobResponse`
109
+ def DescribeImageToVideoGeneralJob(request)
110
+ body = send_request('DescribeImageToVideoGeneralJob', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeImageToVideoGeneralJobResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
80
128
  # 用于查询图片唱演任务。
81
129
  # 支持提交音频和图片生成唱演视频,满足社交娱乐、互动营销等场景的需求。
82
130
 
@@ -150,6 +198,31 @@ module TencentCloud
150
198
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
151
199
  end
152
200
 
201
+ # 用于提交人像驱动任务
202
+ # 支持提交音频和图文来生成对应视频,满足动态交互、内容生产等场景需求。
203
+
204
+ # @param request: Request instance for SubmitHumanActorJob.
205
+ # @type request: :class:`Tencentcloud::vclm::V20240523::SubmitHumanActorJobRequest`
206
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitHumanActorJobResponse`
207
+ def SubmitHumanActorJob(request)
208
+ body = send_request('SubmitHumanActorJob', request.serialize)
209
+ response = JSON.parse(body)
210
+ if response['Response'].key?('Error') == false
211
+ model = SubmitHumanActorJobResponse.new
212
+ model.deserialize(response['Response'])
213
+ model
214
+ else
215
+ code = response['Response']['Error']['Code']
216
+ message = response['Response']['Error']['Message']
217
+ reqid = response['Response']['RequestId']
218
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
219
+ end
220
+ rescue TencentCloud::Common::TencentCloudSDKException => e
221
+ raise e
222
+ rescue StandardError => e
223
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
224
+ end
225
+
153
226
  # 用于提交图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
154
227
 
155
228
  # @param request: Request instance for SubmitImageAnimateJob.
@@ -174,6 +247,30 @@ module TencentCloud
174
247
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
175
248
  end
176
249
 
250
+ # 图生视频通用能力接口
251
+
252
+ # @param request: Request instance for SubmitImageToVideoGeneralJob.
253
+ # @type request: :class:`Tencentcloud::vclm::V20240523::SubmitImageToVideoGeneralJobRequest`
254
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitImageToVideoGeneralJobResponse`
255
+ def SubmitImageToVideoGeneralJob(request)
256
+ body = send_request('SubmitImageToVideoGeneralJob', request.serialize)
257
+ response = JSON.parse(body)
258
+ if response['Response'].key?('Error') == false
259
+ model = SubmitImageToVideoGeneralJobResponse.new
260
+ model.deserialize(response['Response'])
261
+ model
262
+ else
263
+ code = response['Response']['Error']['Code']
264
+ message = response['Response']['Error']['Message']
265
+ reqid = response['Response']['RequestId']
266
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
267
+ end
268
+ rescue TencentCloud::Common::TencentCloudSDKException => e
269
+ raise e
270
+ rescue StandardError => e
271
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
272
+ end
273
+
177
274
  # 用于提交图片唱演任务。
178
275
  # 支持提交音频和图片生成唱演视频,满足社交娱乐、互动营销等场景的需求。
179
276
 
@@ -82,6 +82,54 @@ module TencentCloud
82
82
  end
83
83
  end
84
84
 
85
+ # DescribeHumanActorJob请求参数结构体
86
+ class DescribeHumanActorJobRequest < TencentCloud::Common::AbstractModel
87
+ # @param JobId: 任务ID。
88
+ # @type JobId: String
89
+
90
+ attr_accessor :JobId
91
+
92
+ def initialize(jobid=nil)
93
+ @JobId = jobid
94
+ end
95
+
96
+ def deserialize(params)
97
+ @JobId = params['JobId']
98
+ end
99
+ end
100
+
101
+ # DescribeHumanActorJob返回参数结构体
102
+ class DescribeHumanActorJobResponse < TencentCloud::Common::AbstractModel
103
+ # @param Status: 任务状态。 WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
104
+ # @type Status: String
105
+ # @param ResultVideoUrl: 结果视频URL。有效期 24 小时。
106
+ # @type ResultVideoUrl: String
107
+ # @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
108
+ # @type ErrorCode: String
109
+ # @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
110
+ # @type ErrorMessage: String
111
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
112
+ # @type RequestId: String
113
+
114
+ attr_accessor :Status, :ResultVideoUrl, :ErrorCode, :ErrorMessage, :RequestId
115
+
116
+ def initialize(status=nil, resultvideourl=nil, errorcode=nil, errormessage=nil, requestid=nil)
117
+ @Status = status
118
+ @ResultVideoUrl = resultvideourl
119
+ @ErrorCode = errorcode
120
+ @ErrorMessage = errormessage
121
+ @RequestId = requestid
122
+ end
123
+
124
+ def deserialize(params)
125
+ @Status = params['Status']
126
+ @ResultVideoUrl = params['ResultVideoUrl']
127
+ @ErrorCode = params['ErrorCode']
128
+ @ErrorMessage = params['ErrorMessage']
129
+ @RequestId = params['RequestId']
130
+ end
131
+ end
132
+
85
133
  # DescribeImageAnimateJob请求参数结构体
86
134
  class DescribeImageAnimateJobRequest < TencentCloud::Common::AbstractModel
87
135
  # @param JobId: 任务ID。
@@ -134,6 +182,54 @@ module TencentCloud
134
182
  end
135
183
  end
136
184
 
185
+ # DescribeImageToVideoGeneralJob请求参数结构体
186
+ class DescribeImageToVideoGeneralJobRequest < TencentCloud::Common::AbstractModel
187
+ # @param JobId: 任务ID
188
+ # @type JobId: String
189
+
190
+ attr_accessor :JobId
191
+
192
+ def initialize(jobid=nil)
193
+ @JobId = jobid
194
+ end
195
+
196
+ def deserialize(params)
197
+ @JobId = params['JobId']
198
+ end
199
+ end
200
+
201
+ # DescribeImageToVideoGeneralJob返回参数结构体
202
+ class DescribeImageToVideoGeneralJobResponse < TencentCloud::Common::AbstractModel
203
+ # @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
204
+ # @type Status: String
205
+ # @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
206
+ # @type ErrorCode: String
207
+ # @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
208
+ # @type ErrorMessage: String
209
+ # @param ResultVideoUrl: 结果视频 URL。有效期 24 小时。
210
+ # @type ResultVideoUrl: String
211
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
212
+ # @type RequestId: String
213
+
214
+ attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultVideoUrl, :RequestId
215
+
216
+ def initialize(status=nil, errorcode=nil, errormessage=nil, resultvideourl=nil, requestid=nil)
217
+ @Status = status
218
+ @ErrorCode = errorcode
219
+ @ErrorMessage = errormessage
220
+ @ResultVideoUrl = resultvideourl
221
+ @RequestId = requestid
222
+ end
223
+
224
+ def deserialize(params)
225
+ @Status = params['Status']
226
+ @ErrorCode = params['ErrorCode']
227
+ @ErrorMessage = params['ErrorMessage']
228
+ @ResultVideoUrl = params['ResultVideoUrl']
229
+ @RequestId = params['RequestId']
230
+ end
231
+ end
232
+
137
233
  # DescribePortraitSingJob请求参数结构体
138
234
  class DescribePortraitSingJobRequest < TencentCloud::Common::AbstractModel
139
235
  # @param JobId: 任务ID
@@ -300,6 +396,22 @@ module TencentCloud
300
396
  end
301
397
  end
302
398
 
399
+ # 扩展字段。
400
+ class ExtraParam < TencentCloud::Common::AbstractModel
401
+ # @param UserDesignatedUrl: 预签名的上传url,支持把视频直接传到客户指定的地址。
402
+ # @type UserDesignatedUrl: String
403
+
404
+ attr_accessor :UserDesignatedUrl
405
+
406
+ def initialize(userdesignatedurl=nil)
407
+ @UserDesignatedUrl = userdesignatedurl
408
+ end
409
+
410
+ def deserialize(params)
411
+ @UserDesignatedUrl = params['UserDesignatedUrl']
412
+ end
413
+ end
414
+
303
415
  # 图片
304
416
  class Image < TencentCloud::Common::AbstractModel
305
417
  # @param Base64: 图片Base64
@@ -375,6 +487,91 @@ module TencentCloud
375
487
  end
376
488
  end
377
489
 
490
+ # SubmitHumanActorJob请求参数结构体
491
+ class SubmitHumanActorJobRequest < TencentCloud::Common::AbstractModel
492
+ # @param Prompt: 文本提示词,不能超过5000字符。
493
+ # 提示词支持全局和局部控制:
494
+
495
+ # - 全局控制:正常输入提示词即可
496
+ # - 局部控制:可用双井号进行特定时间的提示词约束,例如: "画面中的人物正在对着镜头讲话,偶尔做些手势匹配说话的内容。镜头保持固定。#3#画面中的人物正在对着镜头讲话,同时做出单手做向左方引导的手势。镜头保持固定。"(意思是第三秒的时候让人物做出左方引导手势)
497
+ # -- 局部控制时间建议整数,最大可读小数点后两位。
498
+ # @type Prompt: String
499
+ # @param AudioUrl: 传入音频URL地址,音频要求:
500
+ # - 音频时长:2秒 - 60秒
501
+ # - 音频格式:mp3、wav
502
+ # - 音频大小:10M以内
503
+ # @type AudioUrl: String
504
+ # @param ImageUrl: 传入图片URL地址,图片要求:
505
+ # - 图片格式:jpg、jpeg、png、bmp、webp
506
+ # - 图片分辨率:192~4096
507
+ # - 图片大小:不超过10M
508
+ # - 图片宽高比:图片【宽:高】在1:4到4:1范围内
509
+ # - 图片内容:避免上传无人脸、无宠物脸或脸部过小、不完整、不清晰、偏转角度过大、嘴部被遮挡的图片。
510
+ # @type ImageUrl: String
511
+ # @param ImageBase64: 传入图片Base64编码,编码后请求体大小不超过10M。
512
+ # 图片Base64编码与URL地址必传其一,如果都传以ImageUrl为准。
513
+ # @type ImageBase64: String
514
+ # @param Resolution: 生成视频分辨率
515
+ # 枚举值:720p,1080p
516
+ # 默认1080p
517
+ # @type Resolution: String
518
+ # @param FrameRate: 生成视频帧数,单位fps。
519
+ # 枚举值:25,50
520
+ # 默认50帧
521
+ # @type FrameRate: Integer
522
+ # @param LogoAdd: 为生成视频添加标识的开关,默认为1。 1:添加标识。 0:不添加标识。 其他数值:默认按1处理。 建议您使用显著标识来提示,该视频是 AI 生成的视频。
523
+ # @type LogoAdd: Integer
524
+ # @param LogoParam: 标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
525
+ # @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
526
+
527
+ attr_accessor :Prompt, :AudioUrl, :ImageUrl, :ImageBase64, :Resolution, :FrameRate, :LogoAdd, :LogoParam
528
+
529
+ def initialize(prompt=nil, audiourl=nil, imageurl=nil, imagebase64=nil, resolution=nil, framerate=nil, logoadd=nil, logoparam=nil)
530
+ @Prompt = prompt
531
+ @AudioUrl = audiourl
532
+ @ImageUrl = imageurl
533
+ @ImageBase64 = imagebase64
534
+ @Resolution = resolution
535
+ @FrameRate = framerate
536
+ @LogoAdd = logoadd
537
+ @LogoParam = logoparam
538
+ end
539
+
540
+ def deserialize(params)
541
+ @Prompt = params['Prompt']
542
+ @AudioUrl = params['AudioUrl']
543
+ @ImageUrl = params['ImageUrl']
544
+ @ImageBase64 = params['ImageBase64']
545
+ @Resolution = params['Resolution']
546
+ @FrameRate = params['FrameRate']
547
+ @LogoAdd = params['LogoAdd']
548
+ unless params['LogoParam'].nil?
549
+ @LogoParam = LogoParam.new
550
+ @LogoParam.deserialize(params['LogoParam'])
551
+ end
552
+ end
553
+ end
554
+
555
+ # SubmitHumanActorJob返回参数结构体
556
+ class SubmitHumanActorJobResponse < TencentCloud::Common::AbstractModel
557
+ # @param JobId: 任务ID。
558
+ # @type JobId: String
559
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
560
+ # @type RequestId: String
561
+
562
+ attr_accessor :JobId, :RequestId
563
+
564
+ def initialize(jobid=nil, requestid=nil)
565
+ @JobId = jobid
566
+ @RequestId = requestid
567
+ end
568
+
569
+ def deserialize(params)
570
+ @JobId = params['JobId']
571
+ @RequestId = params['RequestId']
572
+ end
573
+ end
574
+
378
575
  # SubmitImageAnimateJob请求参数结构体
379
576
  class SubmitImageAnimateJobRequest < TencentCloud::Common::AbstractModel
380
577
  # @param ImageUrl: 图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
@@ -466,6 +663,64 @@ module TencentCloud
466
663
  end
467
664
  end
468
665
 
666
+ # SubmitImageToVideoGeneralJob请求参数结构体
667
+ class SubmitImageToVideoGeneralJobRequest < TencentCloud::Common::AbstractModel
668
+ # @param Image: 输入图片
669
+ # Base64 和 Url 必须提供一个,如果都提供以ImageUrl为准。
670
+ # 上传图url大小不超过 8M
671
+ # 支持jpg,png,jpeg,webp,bmp,tiff 格式
672
+ # 单边分辨率不超过5000,不小于50,长宽限制1:4 ~ 4:1
673
+ # @type Image: :class:`Tencentcloud::Vclm.v20240523.models.Image`
674
+ # @param Prompt: 视频内容的描述,中文正向提示词。最多支持200个 utf-8 字符(首尾空格不计入字符数)。
675
+ # @type Prompt: String
676
+ # @param LogoAdd: 为生成视频添加标识的开关,默认为1,0 需前往 控制台 申请开启显示标识自主完成方可生效。 1:添加标识; 0:不添加标识; 其他数值:默认按1处理。
677
+ # @type LogoAdd: Integer
678
+ # @param LogoParam: 默认在生成视频的右下角添加“ AI 生成”字样,如需替换为其他的标识图片,需前往 控制台 申请开启显示标识自主完成。
679
+ # @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
680
+
681
+ attr_accessor :Image, :Prompt, :LogoAdd, :LogoParam
682
+
683
+ def initialize(image=nil, prompt=nil, logoadd=nil, logoparam=nil)
684
+ @Image = image
685
+ @Prompt = prompt
686
+ @LogoAdd = logoadd
687
+ @LogoParam = logoparam
688
+ end
689
+
690
+ def deserialize(params)
691
+ unless params['Image'].nil?
692
+ @Image = Image.new
693
+ @Image.deserialize(params['Image'])
694
+ end
695
+ @Prompt = params['Prompt']
696
+ @LogoAdd = params['LogoAdd']
697
+ unless params['LogoParam'].nil?
698
+ @LogoParam = LogoParam.new
699
+ @LogoParam.deserialize(params['LogoParam'])
700
+ end
701
+ end
702
+ end
703
+
704
+ # SubmitImageToVideoGeneralJob返回参数结构体
705
+ class SubmitImageToVideoGeneralJobResponse < TencentCloud::Common::AbstractModel
706
+ # @param JobId: 任务ID
707
+ # @type JobId: String
708
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
709
+ # @type RequestId: String
710
+
711
+ attr_accessor :JobId, :RequestId
712
+
713
+ def initialize(jobid=nil, requestid=nil)
714
+ @JobId = jobid
715
+ @RequestId = requestid
716
+ end
717
+
718
+ def deserialize(params)
719
+ @JobId = params['JobId']
720
+ @RequestId = params['RequestId']
721
+ end
722
+ end
723
+
469
724
  # SubmitPortraitSingJob请求参数结构体
470
725
  class SubmitPortraitSingJobRequest < TencentCloud::Common::AbstractModel
471
726
  # @param AudioUrl: 传入音频URL地址,音频要求:
@@ -551,34 +806,37 @@ module TencentCloud
551
806
  class SubmitTemplateToVideoJobRequest < TencentCloud::Common::AbstractModel
552
807
  # @param Template: 特效模板名称。请在 [视频特效模板列表](https://cloud.tencent.com/document/product/1616/119194) 中选择想要生成的特效对应的 template 名称。
553
808
  # @type Template: String
554
- # @param Images: 参考图像,最多输入2张图。
809
+ # @param Images: 参考图像,不同特效输入图片的数量详见: [视频特效模板-图片要求说明](https://cloud.tencent.com/document/product/1616/119194)
555
810
  # - 支持传入图片Base64编码或图片URL(确保可访问)
556
811
  # - 图片格式:支持png、jpg、jpeg、webp、bmp、tiff
557
- # - 图片文件:大小不能超过10MB(base64后),图片分辨率不小于300\*300px,不大于4096\*4096,图片宽高比应在1:4 ~ 4:1之间
812
+ # - 图片文件:大小不能超过10MB(base64后),图片分辨率不小于300*300px,不大于4096*4096,图片宽高比应在1:4 ~ 4:1之间
558
813
  # @type Images: Array
559
- # @param LogoAdd: 为生成视频添加标识的开关,默认为1
560
- # 1:添加标识。
561
- # 0:不添加标识。
814
+ # @param LogoAdd: 为生成视频添加标识的开关,默认为1。传0 需前往 [控制台](https://console.cloud.tencent.com/vtc/setting) 申请开启显式标识自主完成后方可生效。
815
+ # 1:添加标识;
816
+ # 0:不添加标识;
562
817
  # 其他数值:默认按1处理。
563
818
  # 建议您使用显著标识来提示,该视频是 AI 生成的视频。
564
819
  # @type LogoAdd: Integer
565
820
  # @param LogoParam: 标识内容设置。
566
- # 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
821
+ # 默认在生成视频的右下角添加“ AI 生成”或“视频由 AI 生成”字样,如需替换为其他的标识图片,需前往 [控制台](https://console.cloud.tencent.com/vtc/setting) 申请开启显式标识自主完成。
567
822
  # @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
568
- # @param Resolution: 视频输出分辨率,默认值:360p - 枚举值: 720p 360p。
823
+ # @param Resolution: 视频输出分辨率,默认值:360p 。不同特效支持的清晰度及消耗积分数详见:[视频特效模板-单次调用消耗积分数列](https://cloud.tencent.com/document/product/1616/119194 )
569
824
  # @type Resolution: String
570
825
  # @param BGM: 是否为生成的视频添加背景音乐。默认:false, 传 true 时系统将从预设 BGM 库中自动挑选合适的音乐并添加;不传或为 false 则不添加 BGM。
571
826
  # @type BGM: Boolean
827
+ # @param ExtraParam: 扩展字段。
828
+ # @type ExtraParam: :class:`Tencentcloud::Vclm.v20240523.models.ExtraParam`
572
829
 
573
- attr_accessor :Template, :Images, :LogoAdd, :LogoParam, :Resolution, :BGM
830
+ attr_accessor :Template, :Images, :LogoAdd, :LogoParam, :Resolution, :BGM, :ExtraParam
574
831
 
575
- def initialize(template=nil, images=nil, logoadd=nil, logoparam=nil, resolution=nil, bgm=nil)
832
+ def initialize(template=nil, images=nil, logoadd=nil, logoparam=nil, resolution=nil, bgm=nil, extraparam=nil)
576
833
  @Template = template
577
834
  @Images = images
578
835
  @LogoAdd = logoadd
579
836
  @LogoParam = logoparam
580
837
  @Resolution = resolution
581
838
  @BGM = bgm
839
+ @ExtraParam = extraparam
582
840
  end
583
841
 
584
842
  def deserialize(params)
@@ -598,6 +856,10 @@ module TencentCloud
598
856
  end
599
857
  @Resolution = params['Resolution']
600
858
  @BGM = params['BGM']
859
+ unless params['ExtraParam'].nil?
860
+ @ExtraParam = ExtraParam.new
861
+ @ExtraParam.deserialize(params['ExtraParam'])
862
+ end
601
863
  end
602
864
  end
603
865
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-vclm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1130
4
+ version: 3.0.1171
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-08-26 00:00:00.000000000 Z
11
+ date: 2025-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
+ - lib/tencentcloud-sdk-vclm.rb
36
37
  - lib/v20240523/client.rb
37
38
  - lib/v20240523/models.rb
38
- - lib/tencentcloud-sdk-vclm.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: