tencentcloud-sdk-vclm 3.0.1177 → 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: 915b9bf1baac85dfa23e53888b5882e1bca10a82
4
- data.tar.gz: 2b1ea71a86cb2c1a6500d0c0c5472099f9d5496a
3
+ metadata.gz: 928d3d13851812a41b422d1d5eeacba5a212a735
4
+ data.tar.gz: 224c8a73d95a74d223aab8ff30babb588776f43f
5
5
  SHA512:
6
- metadata.gz: 7aab90ac20ece39376943afea122ff16ad7019f403da8ab113ce4b65db941d2a4e38638783290841639c1d9c22c9c44f243ab94b431d664d981d45b3fb4f0bb7
7
- data.tar.gz: ff92d40ed297b61804af24c30b40169410307057bae787a3ea7c9c36b98ad5c6f17092b5493d3efef5b260f4b73810afdce86690052d9f6c87f18665262b2e2f
6
+ metadata.gz: f68faaca0bc85b5388243a843025031fd8763493e21630fa5cd563302f7ac11a15a05b7d7bfbe147021ba3a6da66758486f240b10cded5a86c75d0ec37644ef1
7
+ data.tar.gz: b8aa4775ab499a49c5d36680a678397850cd0c19338f0798e393b18a9c04a24883caf03b52911f4944eec11a9742d89c9a13a7eb7b140414ae1ba751d9ad4ec2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1177
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.
@@ -222,6 +246,30 @@ module TencentCloud
222
246
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
223
247
  end
224
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
+
225
273
  # 用于提交人像驱动任务
226
274
  # 支持提交音频和图文来生成对应视频,满足动态交互、内容生产等场景需求。
227
275
 
@@ -247,6 +295,32 @@ module TencentCloud
247
295
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
248
296
  end
249
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
+
250
324
  # 用于提交图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
251
325
 
252
326
  # @param request: Request instance for SubmitImageAnimateJob.
@@ -392,6 +466,30 @@ module TencentCloud
392
466
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
393
467
  end
394
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
+
395
493
 
396
494
  end
397
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。
@@ -444,6 +492,54 @@ module TencentCloud
444
492
  end
445
493
  end
446
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
+
447
543
  # 扩展字段。
448
544
  class ExtraParam < TencentCloud::Common::AbstractModel
449
545
  # @param UserDesignatedUrl: 预签名的上传url,支持把视频直接传到客户指定的地址。
@@ -709,6 +805,68 @@ module TencentCloud
709
805
  end
710
806
  end
711
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
+
712
870
  # SubmitImageAnimateJob请求参数结构体
713
871
  class SubmitImageAnimateJobRequest < TencentCloud::Common::AbstractModel
714
872
  # @param ImageUrl: 图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
@@ -1168,6 +1326,61 @@ module TencentCloud
1168
1326
  end
1169
1327
  end
1170
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
+
1171
1384
  end
1172
1385
  end
1173
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.1177
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-12-04 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,8 +33,8 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20240523/client.rb
37
36
  - lib/v20240523/models.rb
37
+ - lib/v20240523/client.rb
38
38
  - lib/tencentcloud-sdk-vclm.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby