tencentcloud-sdk-vclm 3.0.1159 → 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: e30866d879e09403dbc6ab891870dac46442a185
4
- data.tar.gz: 13fbdf499a9b06156cc66b755c3d8d09a6b62497
3
+ metadata.gz: 8bbaae5b2672d2773d7e2398dd2fc3d473a2131f
4
+ data.tar.gz: 0dda2ce51f4e22d53359a97172310f53c048a376
5
5
  SHA512:
6
- metadata.gz: 8469bbcd46aca88a4fbab4c3eeb1c1ba4336dee38a87e0ab8214e0d7a95f005325d6a212c65ff5bc2ae83218564f9f26b72e3f47fa0c6e9bcc3456362ccbe528
7
- data.tar.gz: 3c7e4a30719998da9d32561f2100eabe1ad00d3d2c66f5cbb8e204326e0f16037fd5a54cafdbca22163ae3eedd9cb48681850e547b57768ef3c64ddbd9b1e894
6
+ metadata.gz: e8bfc67e66bb204c11740f54bf9733c18008cd02f432e9efde25edda4323c425ec8052402c48a84d47d3f4714c0eb3008735168dd4c161cdb50a9a8281ded695
7
+ data.tar.gz: 9b09e2f40ae855ee22272793f669908307e7c0e2f2135f3d17bd3213253493ff9aabd9c202bc1323952c11d8298f1ae1f2029715339e92a701407e85ae1021d9
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1159
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.
@@ -174,6 +198,31 @@ module TencentCloud
174
198
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
175
199
  end
176
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
+
177
226
  # 用于提交图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
178
227
 
179
228
  # @param request: Request instance for SubmitImageAnimateJob.
@@ -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。
@@ -348,6 +396,22 @@ module TencentCloud
348
396
  end
349
397
  end
350
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
+
351
415
  # 图片
352
416
  class Image < TencentCloud::Common::AbstractModel
353
417
  # @param Base64: 图片Base64
@@ -423,6 +487,91 @@ module TencentCloud
423
487
  end
424
488
  end
425
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
+
426
575
  # SubmitImageAnimateJob请求参数结构体
427
576
  class SubmitImageAnimateJobRequest < TencentCloud::Common::AbstractModel
428
577
  # @param ImageUrl: 图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
@@ -657,34 +806,37 @@ module TencentCloud
657
806
  class SubmitTemplateToVideoJobRequest < TencentCloud::Common::AbstractModel
658
807
  # @param Template: 特效模板名称。请在 [视频特效模板列表](https://cloud.tencent.com/document/product/1616/119194) 中选择想要生成的特效对应的 template 名称。
659
808
  # @type Template: String
660
- # @param Images: 参考图像,最多输入2张图。
809
+ # @param Images: 参考图像,不同特效输入图片的数量详见: [视频特效模板-图片要求说明](https://cloud.tencent.com/document/product/1616/119194)
661
810
  # - 支持传入图片Base64编码或图片URL(确保可访问)
662
811
  # - 图片格式:支持png、jpg、jpeg、webp、bmp、tiff
663
- # - 图片文件:大小不能超过10MB(base64后),图片分辨率不小于300\*300px,不大于4096\*4096,图片宽高比应在1:4 ~ 4:1之间
812
+ # - 图片文件:大小不能超过10MB(base64后),图片分辨率不小于300*300px,不大于4096*4096,图片宽高比应在1:4 ~ 4:1之间
664
813
  # @type Images: Array
665
- # @param LogoAdd: 为生成视频添加标识的开关,默认为1
666
- # 1:添加标识。
667
- # 0:不添加标识。
814
+ # @param LogoAdd: 为生成视频添加标识的开关,默认为1。传0 需前往 [控制台](https://console.cloud.tencent.com/vtc/setting) 申请开启显式标识自主完成后方可生效。
815
+ # 1:添加标识;
816
+ # 0:不添加标识;
668
817
  # 其他数值:默认按1处理。
669
818
  # 建议您使用显著标识来提示,该视频是 AI 生成的视频。
670
819
  # @type LogoAdd: Integer
671
820
  # @param LogoParam: 标识内容设置。
672
- # 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
821
+ # 默认在生成视频的右下角添加“ AI 生成”或“视频由 AI 生成”字样,如需替换为其他的标识图片,需前往 [控制台](https://console.cloud.tencent.com/vtc/setting) 申请开启显式标识自主完成。
673
822
  # @type LogoParam: :class:`Tencentcloud::Vclm.v20240523.models.LogoParam`
674
- # @param Resolution: 视频输出分辨率,默认值:360p - 枚举值: 720p 360p。
823
+ # @param Resolution: 视频输出分辨率,默认值:360p 。不同特效支持的清晰度及消耗积分数详见:[视频特效模板-单次调用消耗积分数列](https://cloud.tencent.com/document/product/1616/119194 )
675
824
  # @type Resolution: String
676
825
  # @param BGM: 是否为生成的视频添加背景音乐。默认:false, 传 true 时系统将从预设 BGM 库中自动挑选合适的音乐并添加;不传或为 false 则不添加 BGM。
677
826
  # @type BGM: Boolean
827
+ # @param ExtraParam: 扩展字段。
828
+ # @type ExtraParam: :class:`Tencentcloud::Vclm.v20240523.models.ExtraParam`
678
829
 
679
- attr_accessor :Template, :Images, :LogoAdd, :LogoParam, :Resolution, :BGM
830
+ attr_accessor :Template, :Images, :LogoAdd, :LogoParam, :Resolution, :BGM, :ExtraParam
680
831
 
681
- 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)
682
833
  @Template = template
683
834
  @Images = images
684
835
  @LogoAdd = logoadd
685
836
  @LogoParam = logoparam
686
837
  @Resolution = resolution
687
838
  @BGM = bgm
839
+ @ExtraParam = extraparam
688
840
  end
689
841
 
690
842
  def deserialize(params)
@@ -704,6 +856,10 @@ module TencentCloud
704
856
  end
705
857
  @Resolution = params['Resolution']
706
858
  @BGM = params['BGM']
859
+ unless params['ExtraParam'].nil?
860
+ @ExtraParam = ExtraParam.new
861
+ @ExtraParam.deserialize(params['ExtraParam'])
862
+ end
707
863
  end
708
864
  end
709
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.1159
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-10-22 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/v20240523/models.rb
37
- - lib/v20240523/client.rb
38
36
  - lib/tencentcloud-sdk-vclm.rb
37
+ - lib/v20240523/client.rb
38
+ - lib/v20240523/models.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: