tencentcloud-sdk-vclm 3.0.873 → 3.0.875

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab705f3f32e8df626410c65e615a7c9efbd5b258
4
- data.tar.gz: 2439646948e235d7774671664d24aa6c6464b22b
3
+ metadata.gz: 5fe6e45f90de31f9d97347f02281bba41dffee22
4
+ data.tar.gz: 3081a4e22c7eb523bc54ab23bd4ba19d1e35f880
5
5
  SHA512:
6
- metadata.gz: b11736fe7a5a7174513b64fdd9e5d0bd2dd25167389877df780309a7d3e3db943dbe6aebcea77112dd69be62eb22607bd7f2b3571768f53fc706afc5ce684025
7
- data.tar.gz: 5a7f20cf1a71dc959b43ed7c1924f085df5a728708c3eefd46a713e26955a08e4146f7fc5155696b7c53838e28f0d5c682c62e9fc2ff1b2e190d92d002afd020
6
+ metadata.gz: b99ba6cc6b0c7734a96d9fdc72a81789dec1ba25059cac953c38c63ed44af3b94038c99d311e6d04d8ac8d36f7dde3706f39e3775dec2c3f7cedf764a4802f4c
7
+ data.tar.gz: c9148dd2f42835254e511b98457ebfa5b8e779678da9a10d06f68c128a3bed69990681bf4cbe1aea34aba6bef8db09da9ba13035a1b0d4765a9940a09c471e65
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.873
1
+ 3.0.875
@@ -77,6 +77,31 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 用于查询图片唱演任务。
81
+ # 支持提交音频和图片生成唱演视频,满足社交娱乐、互动营销等场景的需求。
82
+
83
+ # @param request: Request instance for DescribePortraitSingJob.
84
+ # @type request: :class:`Tencentcloud::vclm::V20240523::DescribePortraitSingJobRequest`
85
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::DescribePortraitSingJobResponse`
86
+ def DescribePortraitSingJob(request)
87
+ body = send_request('DescribePortraitSingJob', request.serialize)
88
+ response = JSON.parse(body)
89
+ if response['Response'].key?('Error') == false
90
+ model = DescribePortraitSingJobResponse.new
91
+ model.deserialize(response['Response'])
92
+ model
93
+ else
94
+ code = response['Response']['Error']['Code']
95
+ message = response['Response']['Error']['Message']
96
+ reqid = response['Response']['RequestId']
97
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
98
+ end
99
+ rescue TencentCloud::Common::TencentCloudSDKException => e
100
+ raise e
101
+ rescue StandardError => e
102
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
103
+ end
104
+
80
105
  # 用于查询视频风格化任务。视频风格化支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
81
106
 
82
107
  # @param request: Request instance for DescribeVideoStylizationJob.
@@ -149,6 +174,31 @@ module TencentCloud
149
174
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
175
  end
151
176
 
177
+ # 用于提交图片唱演任务。
178
+ # 支持提交音频和图片生成唱演视频,满足社交娱乐、互动营销等场景的需求。
179
+
180
+ # @param request: Request instance for SubmitPortraitSingJob.
181
+ # @type request: :class:`Tencentcloud::vclm::V20240523::SubmitPortraitSingJobRequest`
182
+ # @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitPortraitSingJobResponse`
183
+ def SubmitPortraitSingJob(request)
184
+ body = send_request('SubmitPortraitSingJob', request.serialize)
185
+ response = JSON.parse(body)
186
+ if response['Response'].key?('Error') == false
187
+ model = SubmitPortraitSingJobResponse.new
188
+ model.deserialize(response['Response'])
189
+ model
190
+ else
191
+ code = response['Response']['Error']['Code']
192
+ message = response['Response']['Error']['Message']
193
+ reqid = response['Response']['RequestId']
194
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
195
+ end
196
+ rescue TencentCloud::Common::TencentCloudSDKException => e
197
+ raise e
198
+ rescue StandardError => e
199
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
200
+ end
201
+
152
202
  # 用于提交视频风格化任务。支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
153
203
 
154
204
  # @param request: Request instance for SubmitVideoStylizationJob.
@@ -155,6 +155,59 @@ module TencentCloud
155
155
  end
156
156
  end
157
157
 
158
+ # DescribePortraitSingJob请求参数结构体
159
+ class DescribePortraitSingJobRequest < TencentCloud::Common::AbstractModel
160
+ # @param JobId: 任务ID
161
+ # @type JobId: String
162
+
163
+ attr_accessor :JobId
164
+
165
+ def initialize(jobid=nil)
166
+ @JobId = jobid
167
+ end
168
+
169
+ def deserialize(params)
170
+ @JobId = params['JobId']
171
+ end
172
+ end
173
+
174
+ # DescribePortraitSingJob返回参数结构体
175
+ class DescribePortraitSingJobResponse < TencentCloud::Common::AbstractModel
176
+ # @param JobId: 任务ID
177
+ # @type JobId: String
178
+ # @param StatusCode: 任务状态码
179
+ # —RUN:处理中
180
+ # —FAIL:处理失败
181
+ # —STOP:处理终止
182
+ # —DONE:处理完成
183
+ # @type StatusCode: String
184
+ # @param StatusMsg: 任务状态信息
185
+ # @type StatusMsg: String
186
+ # @param ResultVideoUrl: 生成视频的URL地址
187
+ # 有效期24小时
188
+ # @type ResultVideoUrl: String
189
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
190
+ # @type RequestId: String
191
+
192
+ attr_accessor :JobId, :StatusCode, :StatusMsg, :ResultVideoUrl, :RequestId
193
+
194
+ def initialize(jobid=nil, statuscode=nil, statusmsg=nil, resultvideourl=nil, requestid=nil)
195
+ @JobId = jobid
196
+ @StatusCode = statuscode
197
+ @StatusMsg = statusmsg
198
+ @ResultVideoUrl = resultvideourl
199
+ @RequestId = requestid
200
+ end
201
+
202
+ def deserialize(params)
203
+ @JobId = params['JobId']
204
+ @StatusCode = params['StatusCode']
205
+ @StatusMsg = params['StatusMsg']
206
+ @ResultVideoUrl = params['ResultVideoUrl']
207
+ @RequestId = params['RequestId']
208
+ end
209
+ end
210
+
158
211
  # DescribeVideoStylizationJob请求参数结构体
159
212
  class DescribeVideoStylizationJobRequest < TencentCloud::Common::AbstractModel
160
213
  # @param JobId: 任务ID
@@ -357,6 +410,57 @@ module TencentCloud
357
410
  end
358
411
  end
359
412
 
413
+ # SubmitPortraitSingJob请求参数结构体
414
+ class SubmitPortraitSingJobRequest < TencentCloud::Common::AbstractModel
415
+ # @param AudioUrl: 传入音频URL地址。音频要求:
416
+ # —音频时长:不超过60秒
417
+ # —音频格式:mp3、wav、m4a
418
+ # @type AudioUrl: String
419
+ # @param ImageUrl: 传入图片URL地址,图片要求:
420
+ # —图片格式:jpg、jpeg、png
421
+ # —图片分辨率:长边不超过2560
422
+ # —图片大小:不超过6M
423
+ # —图片宽高比:图片【宽:高】在1:2到2:1范围内
424
+ # @type ImageUrl: String
425
+ # @param ImageBase64: 传入图片Base64编码。
426
+ # —图片Base64编码与URL地址必传其一
427
+ # @type ImageBase64: String
428
+
429
+ attr_accessor :AudioUrl, :ImageUrl, :ImageBase64
430
+
431
+ def initialize(audiourl=nil, imageurl=nil, imagebase64=nil)
432
+ @AudioUrl = audiourl
433
+ @ImageUrl = imageurl
434
+ @ImageBase64 = imagebase64
435
+ end
436
+
437
+ def deserialize(params)
438
+ @AudioUrl = params['AudioUrl']
439
+ @ImageUrl = params['ImageUrl']
440
+ @ImageBase64 = params['ImageBase64']
441
+ end
442
+ end
443
+
444
+ # SubmitPortraitSingJob返回参数结构体
445
+ class SubmitPortraitSingJobResponse < TencentCloud::Common::AbstractModel
446
+ # @param JobId: 任务ID
447
+ # @type JobId: String
448
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
449
+ # @type RequestId: String
450
+
451
+ attr_accessor :JobId, :RequestId
452
+
453
+ def initialize(jobid=nil, requestid=nil)
454
+ @JobId = jobid
455
+ @RequestId = requestid
456
+ end
457
+
458
+ def deserialize(params)
459
+ @JobId = params['JobId']
460
+ @RequestId = params['RequestId']
461
+ end
462
+ end
463
+
360
464
  # SubmitVideoStylizationJob请求参数结构体
361
465
  class SubmitVideoStylizationJobRequest < TencentCloud::Common::AbstractModel
362
466
  # @param StyleId: 风格ID,取值说明:2d_anime 2D动漫;3d_cartoon 3D卡通;3d_china 3D国潮;pixel_art 像素风。
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.873
4
+ version: 3.0.875
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-25 00:00:00.000000000 Z
11
+ date: 2024-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common