tencentcloud-sdk-vclm 3.0.1171 → 3.0.1178

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: 8bbaae5b2672d2773d7e2398dd2fc3d473a2131f
4
- data.tar.gz: 0dda2ce51f4e22d53359a97172310f53c048a376
3
+ metadata.gz: 928d3d13851812a41b422d1d5eeacba5a212a735
4
+ data.tar.gz: 224c8a73d95a74d223aab8ff30babb588776f43f
5
5
  SHA512:
6
- metadata.gz: e8bfc67e66bb204c11740f54bf9733c18008cd02f432e9efde25edda4323c425ec8052402c48a84d47d3f4714c0eb3008735168dd4c161cdb50a9a8281ded695
7
- data.tar.gz: 9b09e2f40ae855ee22272793f669908307e7c0e2f2135f3d17bd3213253493ff9aabd9c202bc1323952c11d8298f1ae1f2029715339e92a701407e85ae1021d9
6
+ metadata.gz: f68faaca0bc85b5388243a843025031fd8763493e21630fa5cd563302f7ac11a15a05b7d7bfbe147021ba3a6da66758486f240b10cded5a86c75d0ec37644ef1
7
+ data.tar.gz: b8aa4775ab499a49c5d36680a678397850cd0c19338f0798e393b18a9c04a24883caf03b52911f4944eec11a9742d89c9a13a7eb7b140414ae1ba751d9ad4ec2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1171
1
+ 3.0.1178
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 查询混元生视频任务
81
+
82
+ # @param request: Request instance for DescribeHunyuanToVideoJob.
83
+ # @type request: :class:`Tencentcloud::vclm::V20240523::DescribeHunyuanToVideoJobRequest`
84
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeHunyuanToVideoJobResponse`
85
+ def DescribeHunyuanToVideoJob(request)
86
+ body = send_request('DescribeHunyuanToVideoJob', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeHunyuanToVideoJobResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
  # 用于查询图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
81
105
 
82
106
  # @param request: Request instance for DescribeImageAnimateJob.
@@ -174,6 +198,30 @@ module TencentCloud
174
198
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
175
199
  end
176
200
 
201
+ # 查询视频人脸融合任务
202
+
203
+ # @param request: Request instance for DescribeVideoFaceFusionJob.
204
+ # @type request: :class:`Tencentcloud::vclm::V20240523::DescribeVideoFaceFusionJobRequest`
205
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeVideoFaceFusionJobResponse`
206
+ def DescribeVideoFaceFusionJob(request)
207
+ body = send_request('DescribeVideoFaceFusionJob', request.serialize)
208
+ response = JSON.parse(body)
209
+ if response['Response'].key?('Error') == false
210
+ model = DescribeVideoFaceFusionJobResponse.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
+
177
225
  # 用于查询视频风格化任务。视频风格化支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
178
226
 
179
227
  # @param request: Request instance for DescribeVideoStylizationJob.
@@ -198,6 +246,30 @@ module TencentCloud
198
246
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
199
247
  end
200
248
 
249
+ # 通过JobId提交请求,获取视频配音频任务的结果信息。
250
+
251
+ # @param request: Request instance for DescribeVideoVoiceJob.
252
+ # @type request: :class:`Tencentcloud::vclm::V20240523::DescribeVideoVoiceJobRequest`
253
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeVideoVoiceJobResponse`
254
+ def DescribeVideoVoiceJob(request)
255
+ body = send_request('DescribeVideoVoiceJob', request.serialize)
256
+ response = JSON.parse(body)
257
+ if response['Response'].key?('Error') == false
258
+ model = DescribeVideoVoiceJobResponse.new
259
+ model.deserialize(response['Response'])
260
+ model
261
+ else
262
+ code = response['Response']['Error']['Code']
263
+ message = response['Response']['Error']['Message']
264
+ reqid = response['Response']['RequestId']
265
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
266
+ end
267
+ rescue TencentCloud::Common::TencentCloudSDKException => e
268
+ raise e
269
+ rescue StandardError => e
270
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
271
+ end
272
+
201
273
  # 用于提交人像驱动任务
202
274
  # 支持提交音频和图文来生成对应视频,满足动态交互、内容生产等场景需求。
203
275
 
@@ -223,6 +295,32 @@ module TencentCloud
223
295
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
224
296
  end
225
297
 
298
+ # ●混元生视频接口,基于混元大模型,根据输入的文本或图片智能生成视频。
299
+
300
+ # ●默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
301
+
302
+ # @param request: Request instance for SubmitHunyuanToVideoJob.
303
+ # @type request: :class:`Tencentcloud::vclm::V20240523::SubmitHunyuanToVideoJobRequest`
304
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitHunyuanToVideoJobResponse`
305
+ def SubmitHunyuanToVideoJob(request)
306
+ body = send_request('SubmitHunyuanToVideoJob', request.serialize)
307
+ response = JSON.parse(body)
308
+ if response['Response'].key?('Error') == false
309
+ model = SubmitHunyuanToVideoJobResponse.new
310
+ model.deserialize(response['Response'])
311
+ model
312
+ else
313
+ code = response['Response']['Error']['Code']
314
+ message = response['Response']['Error']['Message']
315
+ reqid = response['Response']['RequestId']
316
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
317
+ end
318
+ rescue TencentCloud::Common::TencentCloudSDKException => e
319
+ raise e
320
+ rescue StandardError => e
321
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
322
+ end
323
+
226
324
  # 用于提交图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
227
325
 
228
326
  # @param request: Request instance for SubmitImageAnimateJob.
@@ -320,6 +418,30 @@ module TencentCloud
320
418
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
321
419
  end
322
420
 
421
+ # 提交视频人脸融合任务
422
+
423
+ # @param request: Request instance for SubmitVideoFaceFusionJob.
424
+ # @type request: :class:`Tencentcloud::vclm::V20240523::SubmitVideoFaceFusionJobRequest`
425
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitVideoFaceFusionJobResponse`
426
+ def SubmitVideoFaceFusionJob(request)
427
+ body = send_request('SubmitVideoFaceFusionJob', request.serialize)
428
+ response = JSON.parse(body)
429
+ if response['Response'].key?('Error') == false
430
+ model = SubmitVideoFaceFusionJobResponse.new
431
+ model.deserialize(response['Response'])
432
+ model
433
+ else
434
+ code = response['Response']['Error']['Code']
435
+ message = response['Response']['Error']['Message']
436
+ reqid = response['Response']['RequestId']
437
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
438
+ end
439
+ rescue TencentCloud::Common::TencentCloudSDKException => e
440
+ raise e
441
+ rescue StandardError => e
442
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
443
+ end
444
+
323
445
  # 用于提交视频风格化任务。支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
324
446
 
325
447
  # @param request: Request instance for SubmitVideoStylizationJob.
@@ -344,6 +466,30 @@ module TencentCloud
344
466
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
345
467
  end
346
468
 
469
+ # 提交视频配音效任务,输入视频后提交请求,会返回一个JobId,用于查询视频配音效的处理进度。
470
+
471
+ # @param request: Request instance for SubmitVideoVoiceJob.
472
+ # @type request: :class:`Tencentcloud::vclm::V20240523::SubmitVideoVoiceJobRequest`
473
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitVideoVoiceJobResponse`
474
+ def SubmitVideoVoiceJob(request)
475
+ body = send_request('SubmitVideoVoiceJob', request.serialize)
476
+ response = JSON.parse(body)
477
+ if response['Response'].key?('Error') == false
478
+ model = SubmitVideoVoiceJobResponse.new
479
+ model.deserialize(response['Response'])
480
+ model
481
+ else
482
+ code = response['Response']['Error']['Code']
483
+ message = response['Response']['Error']['Message']
484
+ reqid = response['Response']['RequestId']
485
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
486
+ end
487
+ rescue TencentCloud::Common::TencentCloudSDKException => e
488
+ raise e
489
+ rescue StandardError => e
490
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
491
+ end
492
+
347
493
 
348
494
  end
349
495
  end
@@ -130,6 +130,54 @@ module TencentCloud
130
130
  end
131
131
  end
132
132
 
133
+ # DescribeHunyuanToVideoJob请求参数结构体
134
+ class DescribeHunyuanToVideoJobRequest < TencentCloud::Common::AbstractModel
135
+ # @param JobId: 任务ID
136
+ # @type JobId: String
137
+
138
+ attr_accessor :JobId
139
+
140
+ def initialize(jobid=nil)
141
+ @JobId = jobid
142
+ end
143
+
144
+ def deserialize(params)
145
+ @JobId = params['JobId']
146
+ end
147
+ end
148
+
149
+ # DescribeHunyuanToVideoJob返回参数结构体
150
+ class DescribeHunyuanToVideoJobResponse < TencentCloud::Common::AbstractModel
151
+ # @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
152
+ # @type Status: String
153
+ # @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
154
+ # @type ErrorCode: String
155
+ # @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
156
+ # @type ErrorMessage: String
157
+ # @param ResultVideoUrl: 结果视频 URL。有效期 24 小时。
158
+ # @type ResultVideoUrl: String
159
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
160
+ # @type RequestId: String
161
+
162
+ attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultVideoUrl, :RequestId
163
+
164
+ def initialize(status=nil, errorcode=nil, errormessage=nil, resultvideourl=nil, requestid=nil)
165
+ @Status = status
166
+ @ErrorCode = errorcode
167
+ @ErrorMessage = errormessage
168
+ @ResultVideoUrl = resultvideourl
169
+ @RequestId = requestid
170
+ end
171
+
172
+ def deserialize(params)
173
+ @Status = params['Status']
174
+ @ErrorCode = params['ErrorCode']
175
+ @ErrorMessage = params['ErrorMessage']
176
+ @ResultVideoUrl = params['ResultVideoUrl']
177
+ @RequestId = params['RequestId']
178
+ end
179
+ end
180
+
133
181
  # DescribeImageAnimateJob请求参数结构体
134
182
  class DescribeImageAnimateJobRequest < TencentCloud::Common::AbstractModel
135
183
  # @param JobId: 任务ID。
@@ -338,6 +386,54 @@ module TencentCloud
338
386
  end
339
387
  end
340
388
 
389
+ # DescribeVideoFaceFusionJob请求参数结构体
390
+ class DescribeVideoFaceFusionJobRequest < TencentCloud::Common::AbstractModel
391
+ # @param JobId: 任务ID
392
+ # @type JobId: String
393
+
394
+ attr_accessor :JobId
395
+
396
+ def initialize(jobid=nil)
397
+ @JobId = jobid
398
+ end
399
+
400
+ def deserialize(params)
401
+ @JobId = params['JobId']
402
+ end
403
+ end
404
+
405
+ # DescribeVideoFaceFusionJob返回参数结构体
406
+ class DescribeVideoFaceFusionJobResponse < TencentCloud::Common::AbstractModel
407
+ # @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
408
+ # @type Status: String
409
+ # @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
410
+ # @type ErrorCode: String
411
+ # @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
412
+ # @type ErrorMessage: String
413
+ # @param ResultVideoUrl: 结果视频 URL。有效期 24 小时。
414
+ # @type ResultVideoUrl: String
415
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
416
+ # @type RequestId: String
417
+
418
+ attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultVideoUrl, :RequestId
419
+
420
+ def initialize(status=nil, errorcode=nil, errormessage=nil, resultvideourl=nil, requestid=nil)
421
+ @Status = status
422
+ @ErrorCode = errorcode
423
+ @ErrorMessage = errormessage
424
+ @ResultVideoUrl = resultvideourl
425
+ @RequestId = requestid
426
+ end
427
+
428
+ def deserialize(params)
429
+ @Status = params['Status']
430
+ @ErrorCode = params['ErrorCode']
431
+ @ErrorMessage = params['ErrorMessage']
432
+ @ResultVideoUrl = params['ResultVideoUrl']
433
+ @RequestId = params['RequestId']
434
+ end
435
+ end
436
+
341
437
  # DescribeVideoStylizationJob请求参数结构体
342
438
  class DescribeVideoStylizationJobRequest < TencentCloud::Common::AbstractModel
343
439
  # @param JobId: 任务ID
@@ -396,6 +492,54 @@ module TencentCloud
396
492
  end
397
493
  end
398
494
 
495
+ # DescribeVideoVoiceJob请求参数结构体
496
+ class DescribeVideoVoiceJobRequest < TencentCloud::Common::AbstractModel
497
+ # @param JobId: 任务ID。
498
+ # @type JobId: String
499
+
500
+ attr_accessor :JobId
501
+
502
+ def initialize(jobid=nil)
503
+ @JobId = jobid
504
+ end
505
+
506
+ def deserialize(params)
507
+ @JobId = params['JobId']
508
+ end
509
+ end
510
+
511
+ # DescribeVideoVoiceJob返回参数结构体
512
+ class DescribeVideoVoiceJobResponse < TencentCloud::Common::AbstractModel
513
+ # @param Status: 任务状态。 WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
514
+ # @type Status: String
515
+ # @param ResultVideoUrl: 结果视频URL。有效期 24 小时。
516
+ # @type ResultVideoUrl: String
517
+ # @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
518
+ # @type ErrorCode: String
519
+ # @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
520
+ # @type ErrorMessage: String
521
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
522
+ # @type RequestId: String
523
+
524
+ attr_accessor :Status, :ResultVideoUrl, :ErrorCode, :ErrorMessage, :RequestId
525
+
526
+ def initialize(status=nil, resultvideourl=nil, errorcode=nil, errormessage=nil, requestid=nil)
527
+ @Status = status
528
+ @ResultVideoUrl = resultvideourl
529
+ @ErrorCode = errorcode
530
+ @ErrorMessage = errormessage
531
+ @RequestId = requestid
532
+ end
533
+
534
+ def deserialize(params)
535
+ @Status = params['Status']
536
+ @ResultVideoUrl = params['ResultVideoUrl']
537
+ @ErrorCode = params['ErrorCode']
538
+ @ErrorMessage = params['ErrorMessage']
539
+ @RequestId = params['RequestId']
540
+ end
541
+ end
542
+
399
543
  # 扩展字段。
400
544
  class ExtraParam < TencentCloud::Common::AbstractModel
401
545
  # @param UserDesignatedUrl: 预签名的上传url,支持把视频直接传到客户指定的地址。
@@ -412,6 +556,95 @@ module TencentCloud
412
556
  end
413
557
  end
414
558
 
559
+ # 人脸图片和待被融合的素材模板图的人脸位置信息。
560
+ class FaceMergeInfo < TencentCloud::Common::AbstractModel
561
+ # @param MergeFaceImage: 融合图片
562
+ # @type MergeFaceImage: :class:`Tencentcloud::Vclm.v20240523.models.Image`
563
+ # @param MergeFaceRect: 上传的图片人脸位置信息(人脸框)
564
+ # Width、Height >= 30。
565
+ # @type MergeFaceRect: :class:`Tencentcloud::Vclm.v20240523.models.FaceRect`
566
+ # @param TemplateFaceID: 素材人脸ID,不填默认取上传图片中最大人脸。
567
+ # @type TemplateFaceID: String
568
+
569
+ attr_accessor :MergeFaceImage, :MergeFaceRect, :TemplateFaceID
570
+
571
+ def initialize(mergefaceimage=nil, mergefacerect=nil, templatefaceid=nil)
572
+ @MergeFaceImage = mergefaceimage
573
+ @MergeFaceRect = mergefacerect
574
+ @TemplateFaceID = templatefaceid
575
+ end
576
+
577
+ def deserialize(params)
578
+ unless params['MergeFaceImage'].nil?
579
+ @MergeFaceImage = Image.new
580
+ @MergeFaceImage.deserialize(params['MergeFaceImage'])
581
+ end
582
+ unless params['MergeFaceRect'].nil?
583
+ @MergeFaceRect = FaceRect.new
584
+ @MergeFaceRect.deserialize(params['MergeFaceRect'])
585
+ end
586
+ @TemplateFaceID = params['TemplateFaceID']
587
+ end
588
+ end
589
+
590
+ # 人脸框信息。
591
+ class FaceRect < TencentCloud::Common::AbstractModel
592
+ # @param X: 人脸框左上角横坐标。
593
+ # @type X: Integer
594
+ # @param Y: 人脸框左上角纵坐标。
595
+ # @type Y: Integer
596
+ # @param Width: 人脸框宽度。
597
+ # @type Width: Integer
598
+ # @param Height: 人脸框高度。
599
+ # @type Height: Integer
600
+
601
+ attr_accessor :X, :Y, :Width, :Height
602
+
603
+ def initialize(x=nil, y=nil, width=nil, height=nil)
604
+ @X = x
605
+ @Y = y
606
+ @Width = width
607
+ @Height = height
608
+ end
609
+
610
+ def deserialize(params)
611
+ @X = params['X']
612
+ @Y = params['Y']
613
+ @Width = params['Width']
614
+ @Height = params['Height']
615
+ end
616
+ end
617
+
618
+ # 模板信息
619
+ class FaceTemplateInfo < TencentCloud::Common::AbstractModel
620
+ # @param TemplateFaceID: 角色ID。需要与MergeInfos中的TemplateFaceID依次对应。需要填数字,建议填"0"、"1",依次累加。
621
+ # @type TemplateFaceID: String
622
+ # @param TemplateFaceImage: 视频模板中要替换的人脸图片
623
+ # @type TemplateFaceImage: :class:`Tencentcloud::Vclm.v20240523.models.Image`
624
+ # @param TemplateFaceRect: 视频模板中要替换的人脸图片的人脸框。不填默认取要替换的人脸图片中最大人脸。
625
+ # @type TemplateFaceRect: :class:`Tencentcloud::Vclm.v20240523.models.FaceRect`
626
+
627
+ attr_accessor :TemplateFaceID, :TemplateFaceImage, :TemplateFaceRect
628
+
629
+ def initialize(templatefaceid=nil, templatefaceimage=nil, templatefacerect=nil)
630
+ @TemplateFaceID = templatefaceid
631
+ @TemplateFaceImage = templatefaceimage
632
+ @TemplateFaceRect = templatefacerect
633
+ end
634
+
635
+ def deserialize(params)
636
+ @TemplateFaceID = params['TemplateFaceID']
637
+ unless params['TemplateFaceImage'].nil?
638
+ @TemplateFaceImage = Image.new
639
+ @TemplateFaceImage.deserialize(params['TemplateFaceImage'])
640
+ end
641
+ unless params['TemplateFaceRect'].nil?
642
+ @TemplateFaceRect = FaceRect.new
643
+ @TemplateFaceRect.deserialize(params['TemplateFaceRect'])
644
+ end
645
+ end
646
+ end
647
+
415
648
  # 图片
416
649
  class Image < TencentCloud::Common::AbstractModel
417
650
  # @param Base64: 图片Base64
@@ -572,6 +805,68 @@ module TencentCloud
572
805
  end
573
806
  end
574
807
 
808
+ # SubmitHunyuanToVideoJob请求参数结构体
809
+ class SubmitHunyuanToVideoJobRequest < TencentCloud::Common::AbstractModel
810
+ # @param Prompt: 视频内容的描述,中文正向提示词。最多支持200个 utf-8 字符(首尾空格不计入字符数)。 示例值:一只猫在草原上奔跑,写实风格
811
+ # @type Prompt: String
812
+ # @param Image: 输入图片
813
+ # 上传图url大小不超过 10M,base64不超过8M。
814
+ # 支持jpg,png,jpeg,webp,bmp,tiff 格式
815
+ # 单边分辨率不超过5000,不小于50,长宽限制1:4 ~ 4:1
816
+ # @type Image: :class:`Tencentcloud::Vclm.v20240523.models.Image`
817
+ # @param Resolution: 目前仅支持720p视频分辨率,默认720p。
818
+ # @type Resolution: String
819
+ # @param LogoAdd: 为生成视频添加标识的开关,默认为1,0 需前往 控制台 申请开启显示标识自主完成方可生效。
820
+ # 1:添加标识; 0:不添加标识; 其他数值:默认按1处理。
821
+ # @type LogoAdd: Integer
822
+ # @param LogoParam: 默认在生成视频的右下角添加“ AI 生成”字样,如需替换为其他的标识图片,需前往 控制台 申请开启显示标识自主完成。
823
+ # @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
824
+
825
+ attr_accessor :Prompt, :Image, :Resolution, :LogoAdd, :LogoParam
826
+
827
+ def initialize(prompt=nil, image=nil, resolution=nil, logoadd=nil, logoparam=nil)
828
+ @Prompt = prompt
829
+ @Image = image
830
+ @Resolution = resolution
831
+ @LogoAdd = logoadd
832
+ @LogoParam = logoparam
833
+ end
834
+
835
+ def deserialize(params)
836
+ @Prompt = params['Prompt']
837
+ unless params['Image'].nil?
838
+ @Image = Image.new
839
+ @Image.deserialize(params['Image'])
840
+ end
841
+ @Resolution = params['Resolution']
842
+ @LogoAdd = params['LogoAdd']
843
+ unless params['LogoParam'].nil?
844
+ @LogoParam = LogoParam.new
845
+ @LogoParam.deserialize(params['LogoParam'])
846
+ end
847
+ end
848
+ end
849
+
850
+ # SubmitHunyuanToVideoJob返回参数结构体
851
+ class SubmitHunyuanToVideoJobResponse < TencentCloud::Common::AbstractModel
852
+ # @param JobId: 任务ID
853
+ # @type JobId: String
854
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
855
+ # @type RequestId: String
856
+
857
+ attr_accessor :JobId, :RequestId
858
+
859
+ def initialize(jobid=nil, requestid=nil)
860
+ @JobId = jobid
861
+ @RequestId = requestid
862
+ end
863
+
864
+ def deserialize(params)
865
+ @JobId = params['JobId']
866
+ @RequestId = params['RequestId']
867
+ end
868
+ end
869
+
575
870
  # SubmitImageAnimateJob请求参数结构体
576
871
  class SubmitImageAnimateJobRequest < TencentCloud::Common::AbstractModel
577
872
  # @param ImageUrl: 图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
@@ -883,6 +1178,97 @@ module TencentCloud
883
1178
  end
884
1179
  end
885
1180
 
1181
+ # SubmitVideoFaceFusionJob请求参数结构体
1182
+ class SubmitVideoFaceFusionJobRequest < TencentCloud::Common::AbstractModel
1183
+ # @param VideoUrl: 视频素材下载地址。用户自定义模版视频下载地址,使用前需要先调用视频审核接口进行内容审核。视频限制:分辨率≤4k,fps≤25,视频大小≤1G,时长≤20 秒,支持格式mp4。
1184
+
1185
+ # 输入视频建议:
1186
+ # 姿态:人脸相对镜头水平方向角度转动不超过 90°,垂直方向角度转动不超过 20°。遮挡:脸部遮挡面积不超过 50%,不要完全遮挡五官,不要有半透明遮挡(强光,玻璃,透明眼镜等)、以及细碎离散的脸部遮挡(如飘落的花瓣)。妆容及光照:避免浓妆、复杂妆容,避免复杂光照、闪烁,这些属性无法完全恢复,并对稳定性有影响。针对特殊表情和微表情,针对局部肌肉控制下的微表情,以及过于夸张的特殊表情等不保证表情效果完全恢复。
1187
+ # @type VideoUrl: String
1188
+ # @param TemplateInfos: 视频素材模板的人脸位置信息。
1189
+ # 目前最多支持融合视频素材中的 6 张人脸
1190
+ # 输入图片要求:
1191
+ # 1、用户图限制大小不超过 10MB
1192
+ # 2、图片最大分辨率不超过 4k,建议最小为 128, 人脸框最小为 68
1193
+ # 3、支持格式 jpg,png
1194
+ # 4、如果用户图中未指定人脸且有多张人脸, 默认融合最大人脸
1195
+ # 输入图片建议: 包含上述视频中出现的人物的单人照,并且正面、清晰、无遮挡
1196
+ # @type TemplateInfos: Array
1197
+ # @param MergeInfos: 用户人脸图片位置信息。
1198
+ # 输入图片要求:
1199
+ # 1、用户图限制大小不超过 10MB
1200
+ # 2、图片最大分辨率不超过 4k,建议最小为 128,人脸框最小为 68
1201
+ # 3、支持格式 jpg,png
1202
+ # 4、如果未指定人脸且用户图中有多张人脸,
1203
+ # 默认融合最大人脸
1204
+ # 输入图建议:
1205
+ # 正脸无遮挡
1206
+ # @type MergeInfos: Array
1207
+ # @param LogoAdd: 为生成视频添加标识的开关,默认为1。
1208
+ # 1:添加标识。 0:不添加标识。 其他数值:默认按1处理。
1209
+ # 建议您使用显著标识来提示,该视频是 AI 生成的视频。
1210
+ # @type LogoAdd: Integer
1211
+ # @param LogoParam: 视频水印Logo参数标识内容设置。
1212
+ # 默认在融合结果图右下角添加“AI生成”类似字样,您可根据自身需要替换为其他的Logo图片。
1213
+ # 输入建议:输入水印图片宽高需小于视频宽高
1214
+ # @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
1215
+
1216
+ attr_accessor :VideoUrl, :TemplateInfos, :MergeInfos, :LogoAdd, :LogoParam
1217
+
1218
+ def initialize(videourl=nil, templateinfos=nil, mergeinfos=nil, logoadd=nil, logoparam=nil)
1219
+ @VideoUrl = videourl
1220
+ @TemplateInfos = templateinfos
1221
+ @MergeInfos = mergeinfos
1222
+ @LogoAdd = logoadd
1223
+ @LogoParam = logoparam
1224
+ end
1225
+
1226
+ def deserialize(params)
1227
+ @VideoUrl = params['VideoUrl']
1228
+ unless params['TemplateInfos'].nil?
1229
+ @TemplateInfos = []
1230
+ params['TemplateInfos'].each do |i|
1231
+ facetemplateinfo_tmp = FaceTemplateInfo.new
1232
+ facetemplateinfo_tmp.deserialize(i)
1233
+ @TemplateInfos << facetemplateinfo_tmp
1234
+ end
1235
+ end
1236
+ unless params['MergeInfos'].nil?
1237
+ @MergeInfos = []
1238
+ params['MergeInfos'].each do |i|
1239
+ facemergeinfo_tmp = FaceMergeInfo.new
1240
+ facemergeinfo_tmp.deserialize(i)
1241
+ @MergeInfos << facemergeinfo_tmp
1242
+ end
1243
+ end
1244
+ @LogoAdd = params['LogoAdd']
1245
+ unless params['LogoParam'].nil?
1246
+ @LogoParam = LogoParam.new
1247
+ @LogoParam.deserialize(params['LogoParam'])
1248
+ end
1249
+ end
1250
+ end
1251
+
1252
+ # SubmitVideoFaceFusionJob返回参数结构体
1253
+ class SubmitVideoFaceFusionJobResponse < TencentCloud::Common::AbstractModel
1254
+ # @param JobId: 视频人脸融合任务的job id(job有效期24小时)
1255
+ # @type JobId: String
1256
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1257
+ # @type RequestId: String
1258
+
1259
+ attr_accessor :JobId, :RequestId
1260
+
1261
+ def initialize(jobid=nil, requestid=nil)
1262
+ @JobId = jobid
1263
+ @RequestId = requestid
1264
+ end
1265
+
1266
+ def deserialize(params)
1267
+ @JobId = params['JobId']
1268
+ @RequestId = params['RequestId']
1269
+ end
1270
+ end
1271
+
886
1272
  # SubmitVideoStylizationJob请求参数结构体
887
1273
  class SubmitVideoStylizationJobRequest < TencentCloud::Common::AbstractModel
888
1274
  # @param StyleId: 风格ID。取值说明:
@@ -940,6 +1326,61 @@ module TencentCloud
940
1326
  end
941
1327
  end
942
1328
 
1329
+ # SubmitVideoVoiceJob请求参数结构体
1330
+ class SubmitVideoVoiceJobRequest < TencentCloud::Common::AbstractModel
1331
+ # @param VideoUrl: 输入视频的Url 上传视频时长限制:1-15s 视频格式:MP4,MOV 视频大小:不超过1 GB URL地址中不能包含中文字符。
1332
+ # @type VideoUrl: String
1333
+ # @param Prompt: 描述音效内容的正向提示词。输入上限50个字符。
1334
+ # @type Prompt: String
1335
+ # @param NegativePrompt: 音效内容的原始负向提示词。输入上限50个字符。
1336
+ # @type NegativePrompt: String
1337
+ # @param LogoAdd: 为生成视频添加标识的开关,默认为1。 1:添加标识。 0:不添加标识。 其他数值:默认按1处理。 建议您使用显著标识来提示,该视频是 AI 生成的视频。
1338
+ # @type LogoAdd: Integer
1339
+ # @param LogoParam: 标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
1340
+ # @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
1341
+
1342
+ attr_accessor :VideoUrl, :Prompt, :NegativePrompt, :LogoAdd, :LogoParam
1343
+
1344
+ def initialize(videourl=nil, prompt=nil, negativeprompt=nil, logoadd=nil, logoparam=nil)
1345
+ @VideoUrl = videourl
1346
+ @Prompt = prompt
1347
+ @NegativePrompt = negativeprompt
1348
+ @LogoAdd = logoadd
1349
+ @LogoParam = logoparam
1350
+ end
1351
+
1352
+ def deserialize(params)
1353
+ @VideoUrl = params['VideoUrl']
1354
+ @Prompt = params['Prompt']
1355
+ @NegativePrompt = params['NegativePrompt']
1356
+ @LogoAdd = params['LogoAdd']
1357
+ unless params['LogoParam'].nil?
1358
+ @LogoParam = LogoParam.new
1359
+ @LogoParam.deserialize(params['LogoParam'])
1360
+ end
1361
+ end
1362
+ end
1363
+
1364
+ # SubmitVideoVoiceJob返回参数结构体
1365
+ class SubmitVideoVoiceJobResponse < TencentCloud::Common::AbstractModel
1366
+ # @param JobId: 任务ID。
1367
+ # @type JobId: String
1368
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1369
+ # @type RequestId: String
1370
+
1371
+ attr_accessor :JobId, :RequestId
1372
+
1373
+ def initialize(jobid=nil, requestid=nil)
1374
+ @JobId = jobid
1375
+ @RequestId = requestid
1376
+ end
1377
+
1378
+ def deserialize(params)
1379
+ @JobId = params['JobId']
1380
+ @RequestId = params['RequestId']
1381
+ end
1382
+ end
1383
+
943
1384
  end
944
1385
  end
945
1386
  end
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.1171
4
+ version: 3.0.1178
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-11-20 00:00:00.000000000 Z
11
+ date: 2025-12-08 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
37
- - lib/v20240523/client.rb
38
36
  - lib/v20240523/models.rb
37
+ - lib/v20240523/client.rb
38
+ - lib/tencentcloud-sdk-vclm.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: