tencentcloud-sdk-vclm 3.0.999 → 3.0.1001
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20240523/client.rb +0 -107
- data/lib/v20240523/models.rb +0 -324
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdff8638e8422285b4a376b68be7648a8325d38f
|
4
|
+
data.tar.gz: cc6d72934a577a938387aa83b4e97cc6cfeb7e87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e82b5ee25e5991a27868eefea34aad11352461805551bedcab2e0535ef8d87b17bb16acd10187e22f355b391714ec343f15d1b8e1b5168b5cb819d22a87c5f3c
|
7
|
+
data.tar.gz: e08bb3cea94767490f7124ac7dbf19eed21f5e698f8e3f6ebfab9a93523fc98c2ccffc6cfed85207ed0c05d2fd001ffcacf06bb51f4115b828c53fe9796db01e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1001
|
data/lib/v20240523/client.rb
CHANGED
@@ -53,30 +53,6 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
-
# 确认视频转译结果
|
57
|
-
|
58
|
-
# @param request: Request instance for ConfirmVideoTranslateJob.
|
59
|
-
# @type request: :class:`Tencentcloud::vclm::V20240523::ConfirmVideoTranslateJobRequest`
|
60
|
-
# @rtype: :class:`Tencentcloud::vclm::V20240523::ConfirmVideoTranslateJobResponse`
|
61
|
-
def ConfirmVideoTranslateJob(request)
|
62
|
-
body = send_request('ConfirmVideoTranslateJob', request.serialize)
|
63
|
-
response = JSON.parse(body)
|
64
|
-
if response['Response'].key?('Error') == false
|
65
|
-
model = ConfirmVideoTranslateJobResponse.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
|
-
|
80
56
|
# 用于查询图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
|
81
57
|
|
82
58
|
# @param request: Request instance for DescribeImageAnimateJob.
|
@@ -150,30 +126,6 @@ module TencentCloud
|
|
150
126
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
151
127
|
end
|
152
128
|
|
153
|
-
# 查询视频转译任务
|
154
|
-
|
155
|
-
# @param request: Request instance for DescribeVideoTranslateJob.
|
156
|
-
# @type request: :class:`Tencentcloud::vclm::V20240523::DescribeVideoTranslateJobRequest`
|
157
|
-
# @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeVideoTranslateJobResponse`
|
158
|
-
def DescribeVideoTranslateJob(request)
|
159
|
-
body = send_request('DescribeVideoTranslateJob', request.serialize)
|
160
|
-
response = JSON.parse(body)
|
161
|
-
if response['Response'].key?('Error') == false
|
162
|
-
model = DescribeVideoTranslateJobResponse.new
|
163
|
-
model.deserialize(response['Response'])
|
164
|
-
model
|
165
|
-
else
|
166
|
-
code = response['Response']['Error']['Code']
|
167
|
-
message = response['Response']['Error']['Message']
|
168
|
-
reqid = response['Response']['RequestId']
|
169
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
170
|
-
end
|
171
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
172
|
-
raise e
|
173
|
-
rescue StandardError => e
|
174
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
175
|
-
end
|
176
|
-
|
177
129
|
# 用于提交图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
|
178
130
|
|
179
131
|
# @param request: Request instance for SubmitImageAnimateJob.
|
@@ -247,65 +199,6 @@ module TencentCloud
|
|
247
199
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
248
200
|
end
|
249
201
|
|
250
|
-
# ### 支持音色种别列表。
|
251
|
-
# 每个音色都支持:英语(美国)、阿拉伯语、德语、西班牙语、法语、印尼语、意大利语、日语、韩语、马来语、葡萄牙语、俄语、泰语、土耳其语、越南语。
|
252
|
-
|
253
|
-
# | 音色名称 | 性别 | 音色ID |
|
254
|
-
# | ----------- | ---- | ------ |
|
255
|
-
# | Seraphina | 女 | 701002 |
|
256
|
-
# | Ada | 女 | 701003 |
|
257
|
-
# | Emma | 女 | 701007 |
|
258
|
-
# | Brian | 男 | 701008 |
|
259
|
-
# | Amanda | 女 | 701013 |
|
260
|
-
# | Brandon | 男 | 701014 |
|
261
|
-
# | Christopher | 男 | 701015 |
|
262
|
-
# | Davis | 男 | 701017 |
|
263
|
-
# | Derek | 男 | 701018 |
|
264
|
-
# | Dustin | 男 | 701019 |
|
265
|
-
# | Evelyn | 女 | 701020 |
|
266
|
-
# | Lewis | 男 | 701021 |
|
267
|
-
# | Lola | 女 | 701022 |
|
268
|
-
# | Samuel | 男 | 701026 |
|
269
|
-
# | Steffan | 男 | 701028 |
|
270
|
-
# | Arabella | 女 | 701029 |
|
271
|
-
# | Isidora | 女 | 701030 |
|
272
|
-
# | Tristan | 男 | 701031 |
|
273
|
-
# | Vivienne | 女 | 701034 |
|
274
|
-
# | Lucien | 男 | 701035 |
|
275
|
-
# | Alessio | 男 | 701036 |
|
276
|
-
# | Giuseppe | 男 | 701037 |
|
277
|
-
# | Isabella | 女 | 701038 |
|
278
|
-
# | Marcello | 男 | 701039 |
|
279
|
-
# | Masaru | 男 | 701040 |
|
280
|
-
# | Macerio | 男 | 701042 |
|
281
|
-
# | Thalita | 女 | 701043 |
|
282
|
-
# | 晓晓 | 女 | 701045 |
|
283
|
-
# | 晓宇 | 女 | 701046 |
|
284
|
-
# | 云逸 | 男 | 701047 |
|
285
|
-
# | Yunfan | 男 | 701048 |
|
286
|
-
|
287
|
-
# @param request: Request instance for SubmitVideoTranslateJob.
|
288
|
-
# @type request: :class:`Tencentcloud::vclm::V20240523::SubmitVideoTranslateJobRequest`
|
289
|
-
# @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitVideoTranslateJobResponse`
|
290
|
-
def SubmitVideoTranslateJob(request)
|
291
|
-
body = send_request('SubmitVideoTranslateJob', request.serialize)
|
292
|
-
response = JSON.parse(body)
|
293
|
-
if response['Response'].key?('Error') == false
|
294
|
-
model = SubmitVideoTranslateJobResponse.new
|
295
|
-
model.deserialize(response['Response'])
|
296
|
-
model
|
297
|
-
else
|
298
|
-
code = response['Response']['Error']['Code']
|
299
|
-
message = response['Response']['Error']['Message']
|
300
|
-
reqid = response['Response']['RequestId']
|
301
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
302
|
-
end
|
303
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
304
|
-
raise e
|
305
|
-
rescue StandardError => e
|
306
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
307
|
-
end
|
308
|
-
|
309
202
|
|
310
203
|
end
|
311
204
|
end
|
data/lib/v20240523/models.rb
CHANGED
@@ -17,33 +17,6 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Vclm
|
19
19
|
module V20240523
|
20
|
-
# 文本片段及其时间戳
|
21
|
-
class AsrTimestamps < TencentCloud::Common::AbstractModel
|
22
|
-
# @param Text: 文本片段
|
23
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
24
|
-
# @type Text: String
|
25
|
-
# @param StartMs: 开始时间
|
26
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
27
|
-
# @type StartMs: Integer
|
28
|
-
# @param EndMs: 结束时间
|
29
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
30
|
-
# @type EndMs: Integer
|
31
|
-
|
32
|
-
attr_accessor :Text, :StartMs, :EndMs
|
33
|
-
|
34
|
-
def initialize(text=nil, startms=nil, endms=nil)
|
35
|
-
@Text = text
|
36
|
-
@StartMs = startms
|
37
|
-
@EndMs = endms
|
38
|
-
end
|
39
|
-
|
40
|
-
def deserialize(params)
|
41
|
-
@Text = params['Text']
|
42
|
-
@StartMs = params['StartMs']
|
43
|
-
@EndMs = params['EndMs']
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
20
|
# CheckAnimateImageJob请求参数结构体
|
48
21
|
class CheckAnimateImageJobRequest < TencentCloud::Common::AbstractModel
|
49
22
|
# @param TemplateId: 动作模板ID。
|
@@ -99,83 +72,6 @@ module TencentCloud
|
|
99
72
|
end
|
100
73
|
end
|
101
74
|
|
102
|
-
# ConfirmVideoTranslateJob请求参数结构体
|
103
|
-
class ConfirmVideoTranslateJobRequest < TencentCloud::Common::AbstractModel
|
104
|
-
# @param JobId: 视频转译任务 ID
|
105
|
-
# @type JobId: String
|
106
|
-
# @param TranslateResults: 待确认文本。
|
107
|
-
# 如果文本中含有数字,支持将数字配置为SSML语言
|
108
|
-
# @type TranslateResults: Array
|
109
|
-
|
110
|
-
attr_accessor :JobId, :TranslateResults
|
111
|
-
|
112
|
-
def initialize(jobid=nil, translateresults=nil)
|
113
|
-
@JobId = jobid
|
114
|
-
@TranslateResults = translateresults
|
115
|
-
end
|
116
|
-
|
117
|
-
def deserialize(params)
|
118
|
-
@JobId = params['JobId']
|
119
|
-
unless params['TranslateResults'].nil?
|
120
|
-
@TranslateResults = []
|
121
|
-
params['TranslateResults'].each do |i|
|
122
|
-
translateresult_tmp = TranslateResult.new
|
123
|
-
translateresult_tmp.deserialize(i)
|
124
|
-
@TranslateResults << translateresult_tmp
|
125
|
-
end
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|
129
|
-
|
130
|
-
# ConfirmVideoTranslateJob返回参数结构体
|
131
|
-
class ConfirmVideoTranslateJobResponse < TencentCloud::Common::AbstractModel
|
132
|
-
# @param JobId: 视频转译任务 ID。
|
133
|
-
# @type JobId: String
|
134
|
-
# @param TaskId: 音频转译任务 ID。
|
135
|
-
# @type TaskId: String
|
136
|
-
# @param SessionId: 音频转译结果确认 session。
|
137
|
-
# @type SessionId: String
|
138
|
-
# @param Status: 任务状态。0:任务初始化。1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
|
139
|
-
# @type Status: Integer
|
140
|
-
# @param Message: 视频转译任务信息。
|
141
|
-
# @type Message: String
|
142
|
-
# @param JobStatus: 任务状态。0:任务初始化。1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
|
143
|
-
# @type JobStatus: Integer
|
144
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
145
|
-
# @type RequestId: String
|
146
|
-
|
147
|
-
attr_accessor :JobId, :TaskId, :SessionId, :Status, :Message, :JobStatus, :RequestId
|
148
|
-
extend Gem::Deprecate
|
149
|
-
deprecate :TaskId, :none, 2025, 1
|
150
|
-
deprecate :TaskId=, :none, 2025, 1
|
151
|
-
deprecate :SessionId, :none, 2025, 1
|
152
|
-
deprecate :SessionId=, :none, 2025, 1
|
153
|
-
deprecate :Status, :none, 2025, 1
|
154
|
-
deprecate :Status=, :none, 2025, 1
|
155
|
-
deprecate :Message, :none, 2025, 1
|
156
|
-
deprecate :Message=, :none, 2025, 1
|
157
|
-
|
158
|
-
def initialize(jobid=nil, taskid=nil, sessionid=nil, status=nil, message=nil, jobstatus=nil, requestid=nil)
|
159
|
-
@JobId = jobid
|
160
|
-
@TaskId = taskid
|
161
|
-
@SessionId = sessionid
|
162
|
-
@Status = status
|
163
|
-
@Message = message
|
164
|
-
@JobStatus = jobstatus
|
165
|
-
@RequestId = requestid
|
166
|
-
end
|
167
|
-
|
168
|
-
def deserialize(params)
|
169
|
-
@JobId = params['JobId']
|
170
|
-
@TaskId = params['TaskId']
|
171
|
-
@SessionId = params['SessionId']
|
172
|
-
@Status = params['Status']
|
173
|
-
@Message = params['Message']
|
174
|
-
@JobStatus = params['JobStatus']
|
175
|
-
@RequestId = params['RequestId']
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
179
75
|
# DescribeImageAnimateJob请求参数结构体
|
180
76
|
class DescribeImageAnimateJobRequest < TencentCloud::Common::AbstractModel
|
181
77
|
# @param JobId: 任务ID。
|
@@ -346,120 +242,6 @@ module TencentCloud
|
|
346
242
|
end
|
347
243
|
end
|
348
244
|
|
349
|
-
# DescribeVideoTranslateJob请求参数结构体
|
350
|
-
class DescribeVideoTranslateJobRequest < TencentCloud::Common::AbstractModel
|
351
|
-
# @param JobId: 视频转译任务 ID
|
352
|
-
# @type JobId: String
|
353
|
-
|
354
|
-
attr_accessor :JobId
|
355
|
-
|
356
|
-
def initialize(jobid=nil)
|
357
|
-
@JobId = jobid
|
358
|
-
end
|
359
|
-
|
360
|
-
def deserialize(params)
|
361
|
-
@JobId = params['JobId']
|
362
|
-
end
|
363
|
-
end
|
364
|
-
|
365
|
-
# DescribeVideoTranslateJob返回参数结构体
|
366
|
-
class DescribeVideoTranslateJobResponse < TencentCloud::Common::AbstractModel
|
367
|
-
# @param JobStatus: 任务状态。0: 任务初始化。 1:音频转译中。 2:音频转译失败。 3:音频转译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频转译中。 7:视频转译失败。 8:视频转译成功。
|
368
|
-
# @type JobStatus: Integer
|
369
|
-
# @param JobErrorCode: 本次任务出错的错误码,用来定位问题原因。
|
370
|
-
# @type JobErrorCode: String
|
371
|
-
# @param JobErrorMsg: 任务错误信息,错误码出现的原因。
|
372
|
-
# @type JobErrorMsg: String
|
373
|
-
# @param ResultVideoUrl: 视频转译生成结果视频url,有效期1天。当JobStatus为8时,该字段返回视频Url。
|
374
|
-
# @type ResultVideoUrl: String
|
375
|
-
# @param TranslateResults: 音频转译后分句翻译内容,包含分句起始时间、源识别文本以及翻译后文本。
|
376
|
-
# 当JobStatus为3、4时,该字段返回分句翻译数据。
|
377
|
-
# @type TranslateResults: Array
|
378
|
-
# @param JobConfirm: 是否需要确认翻译结果。0:不需要,1:需要。
|
379
|
-
# @type JobConfirm: Integer
|
380
|
-
# @param JobAudioTaskId: 音频任务 ID。
|
381
|
-
# @type JobAudioTaskId: String
|
382
|
-
# @param JobVideoModerationId: 视频审核任务ID。
|
383
|
-
# @type JobVideoModerationId: String
|
384
|
-
# @param JobAudioModerationId: 音频审核任务 ID。
|
385
|
-
# @type JobAudioModerationId: String
|
386
|
-
# @param JobVideoId: 口型驱动任务 ID。
|
387
|
-
# @type JobVideoId: String
|
388
|
-
# @param OriginalVideoUrl: 视频素材原始 URL。
|
389
|
-
# @type OriginalVideoUrl: String
|
390
|
-
# @param AsrTimestamps: 文本片段及其时间戳。
|
391
|
-
# @type AsrTimestamps: Array
|
392
|
-
# @param JobSubmitReqId: 提交视频转译任务时的 requestId。
|
393
|
-
# @type JobSubmitReqId: String
|
394
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
395
|
-
# @type RequestId: String
|
396
|
-
|
397
|
-
attr_accessor :JobStatus, :JobErrorCode, :JobErrorMsg, :ResultVideoUrl, :TranslateResults, :JobConfirm, :JobAudioTaskId, :JobVideoModerationId, :JobAudioModerationId, :JobVideoId, :OriginalVideoUrl, :AsrTimestamps, :JobSubmitReqId, :RequestId
|
398
|
-
extend Gem::Deprecate
|
399
|
-
deprecate :JobConfirm, :none, 2025, 1
|
400
|
-
deprecate :JobConfirm=, :none, 2025, 1
|
401
|
-
deprecate :JobAudioTaskId, :none, 2025, 1
|
402
|
-
deprecate :JobAudioTaskId=, :none, 2025, 1
|
403
|
-
deprecate :JobVideoModerationId, :none, 2025, 1
|
404
|
-
deprecate :JobVideoModerationId=, :none, 2025, 1
|
405
|
-
deprecate :JobAudioModerationId, :none, 2025, 1
|
406
|
-
deprecate :JobAudioModerationId=, :none, 2025, 1
|
407
|
-
deprecate :JobVideoId, :none, 2025, 1
|
408
|
-
deprecate :JobVideoId=, :none, 2025, 1
|
409
|
-
deprecate :OriginalVideoUrl, :none, 2025, 1
|
410
|
-
deprecate :OriginalVideoUrl=, :none, 2025, 1
|
411
|
-
deprecate :JobSubmitReqId, :none, 2025, 1
|
412
|
-
deprecate :JobSubmitReqId=, :none, 2025, 1
|
413
|
-
|
414
|
-
def initialize(jobstatus=nil, joberrorcode=nil, joberrormsg=nil, resultvideourl=nil, translateresults=nil, jobconfirm=nil, jobaudiotaskid=nil, jobvideomoderationid=nil, jobaudiomoderationid=nil, jobvideoid=nil, originalvideourl=nil, asrtimestamps=nil, jobsubmitreqid=nil, requestid=nil)
|
415
|
-
@JobStatus = jobstatus
|
416
|
-
@JobErrorCode = joberrorcode
|
417
|
-
@JobErrorMsg = joberrormsg
|
418
|
-
@ResultVideoUrl = resultvideourl
|
419
|
-
@TranslateResults = translateresults
|
420
|
-
@JobConfirm = jobconfirm
|
421
|
-
@JobAudioTaskId = jobaudiotaskid
|
422
|
-
@JobVideoModerationId = jobvideomoderationid
|
423
|
-
@JobAudioModerationId = jobaudiomoderationid
|
424
|
-
@JobVideoId = jobvideoid
|
425
|
-
@OriginalVideoUrl = originalvideourl
|
426
|
-
@AsrTimestamps = asrtimestamps
|
427
|
-
@JobSubmitReqId = jobsubmitreqid
|
428
|
-
@RequestId = requestid
|
429
|
-
end
|
430
|
-
|
431
|
-
def deserialize(params)
|
432
|
-
@JobStatus = params['JobStatus']
|
433
|
-
@JobErrorCode = params['JobErrorCode']
|
434
|
-
@JobErrorMsg = params['JobErrorMsg']
|
435
|
-
@ResultVideoUrl = params['ResultVideoUrl']
|
436
|
-
unless params['TranslateResults'].nil?
|
437
|
-
@TranslateResults = []
|
438
|
-
params['TranslateResults'].each do |i|
|
439
|
-
translateresult_tmp = TranslateResult.new
|
440
|
-
translateresult_tmp.deserialize(i)
|
441
|
-
@TranslateResults << translateresult_tmp
|
442
|
-
end
|
443
|
-
end
|
444
|
-
@JobConfirm = params['JobConfirm']
|
445
|
-
@JobAudioTaskId = params['JobAudioTaskId']
|
446
|
-
@JobVideoModerationId = params['JobVideoModerationId']
|
447
|
-
@JobAudioModerationId = params['JobAudioModerationId']
|
448
|
-
@JobVideoId = params['JobVideoId']
|
449
|
-
@OriginalVideoUrl = params['OriginalVideoUrl']
|
450
|
-
unless params['AsrTimestamps'].nil?
|
451
|
-
@AsrTimestamps = []
|
452
|
-
params['AsrTimestamps'].each do |i|
|
453
|
-
asrtimestamps_tmp = AsrTimestamps.new
|
454
|
-
asrtimestamps_tmp.deserialize(i)
|
455
|
-
@AsrTimestamps << asrtimestamps_tmp
|
456
|
-
end
|
457
|
-
end
|
458
|
-
@JobSubmitReqId = params['JobSubmitReqId']
|
459
|
-
@RequestId = params['RequestId']
|
460
|
-
end
|
461
|
-
end
|
462
|
-
|
463
245
|
# logo参数
|
464
246
|
class LogoParam < TencentCloud::Common::AbstractModel
|
465
247
|
# @param LogoUrl: 水印 Url
|
@@ -734,112 +516,6 @@ module TencentCloud
|
|
734
516
|
end
|
735
517
|
end
|
736
518
|
|
737
|
-
# SubmitVideoTranslateJob请求参数结构体
|
738
|
-
class SubmitVideoTranslateJobRequest < TencentCloud::Common::AbstractModel
|
739
|
-
# @param VideoUrl: 视频地址URL。
|
740
|
-
# 格式要求:支持 mp4、mov、avi 。
|
741
|
-
# 时长要求:【5-600】秒。
|
742
|
-
# fps 要求:【15-60】fps
|
743
|
-
# 分辨率要求:单边像素要求在 【360~4096】 之间。
|
744
|
-
# 大小要求:不超过500MB
|
745
|
-
# 请保证文件的下载速度,否则会下载失败。
|
746
|
-
# @type VideoUrl: String
|
747
|
-
# @param SrcLang: 输入视频中音频语种
|
748
|
-
# 目前支持语种范围:zh(中文), en(英文)
|
749
|
-
# @type SrcLang: String
|
750
|
-
# @param AudioUrl: 当音频 URL 不为空时,不经过语音AI处理,直接以视频为素材用音频内容做视频口型驱动。
|
751
|
-
# 格式要求:支持 mp3、m4a、aac、wav 格式。
|
752
|
-
# 时长要求:【5~600】秒,音频时长要匹配视频时长。
|
753
|
-
# 大小要求:不超过 100MB。
|
754
|
-
# 请保证文件的下载速度,否则会下载失败。
|
755
|
-
# @type AudioUrl: String
|
756
|
-
# @param DstLang: 输出视频中翻译语种。默认是en(英语)。
|
757
|
-
# 目前支持语种范围:zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、id(印尼语)、it(意大利语)、ja(日语)、ko(韩语)、ms(马来语)、pt(葡萄牙语)、ru(俄语)、th(泰语)、tr(土耳其语)、vi(越南语)
|
758
|
-
# @type DstLang: String
|
759
|
-
# @param VoiceType: 翻译语种匹配音色种别,其他说明如下:
|
760
|
-
# 1)默认不填代表克隆输入视频中音频音色;
|
761
|
-
# 2)翻译语种非中英(即zh、en),该项必填;
|
762
|
-
|
763
|
-
# 具体音色种别详见说明“支持音色种别列表”,每个音色都支持 15 个目标语种。
|
764
|
-
# @type VoiceType: String
|
765
|
-
# @param Confirm: 是否需要纠正视频中音频识别与翻译内容,取值范围:0-不需要,1-需要,默认0。
|
766
|
-
# @type Confirm: Integer
|
767
|
-
# @param RemoveVocal: 是否需要去除VideoUrl或AudioUrl中背景音,取值范围:0-不需要,1-需要,默认0 。
|
768
|
-
# @type RemoveVocal: Integer
|
769
|
-
# @param LipSync: 是否开启口型驱动,0-不开启,1-开启。默认0。
|
770
|
-
# @type LipSync: Integer
|
771
|
-
# @param VideoLoop: 当 AudioUrl 字段有输入音频时,如果输入音频时长大于输入视频时长,会拼接视频( 0-正向拼接、1-反向拼接 )对齐音频时长。默认 0。
|
772
|
-
# @type VideoLoop: Integer
|
773
|
-
|
774
|
-
attr_accessor :VideoUrl, :SrcLang, :AudioUrl, :DstLang, :VoiceType, :Confirm, :RemoveVocal, :LipSync, :VideoLoop
|
775
|
-
|
776
|
-
def initialize(videourl=nil, srclang=nil, audiourl=nil, dstlang=nil, voicetype=nil, confirm=nil, removevocal=nil, lipsync=nil, videoloop=nil)
|
777
|
-
@VideoUrl = videourl
|
778
|
-
@SrcLang = srclang
|
779
|
-
@AudioUrl = audiourl
|
780
|
-
@DstLang = dstlang
|
781
|
-
@VoiceType = voicetype
|
782
|
-
@Confirm = confirm
|
783
|
-
@RemoveVocal = removevocal
|
784
|
-
@LipSync = lipsync
|
785
|
-
@VideoLoop = videoloop
|
786
|
-
end
|
787
|
-
|
788
|
-
def deserialize(params)
|
789
|
-
@VideoUrl = params['VideoUrl']
|
790
|
-
@SrcLang = params['SrcLang']
|
791
|
-
@AudioUrl = params['AudioUrl']
|
792
|
-
@DstLang = params['DstLang']
|
793
|
-
@VoiceType = params['VoiceType']
|
794
|
-
@Confirm = params['Confirm']
|
795
|
-
@RemoveVocal = params['RemoveVocal']
|
796
|
-
@LipSync = params['LipSync']
|
797
|
-
@VideoLoop = params['VideoLoop']
|
798
|
-
end
|
799
|
-
end
|
800
|
-
|
801
|
-
# SubmitVideoTranslateJob返回参数结构体
|
802
|
-
class SubmitVideoTranslateJobResponse < TencentCloud::Common::AbstractModel
|
803
|
-
# @param JobId: 视频转译任务的ID
|
804
|
-
# @type JobId: String
|
805
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
806
|
-
# @type RequestId: String
|
807
|
-
|
808
|
-
attr_accessor :JobId, :RequestId
|
809
|
-
|
810
|
-
def initialize(jobid=nil, requestid=nil)
|
811
|
-
@JobId = jobid
|
812
|
-
@RequestId = requestid
|
813
|
-
end
|
814
|
-
|
815
|
-
def deserialize(params)
|
816
|
-
@JobId = params['JobId']
|
817
|
-
@RequestId = params['RequestId']
|
818
|
-
end
|
819
|
-
end
|
820
|
-
|
821
|
-
# 音频翻译结果
|
822
|
-
class TranslateResult < TencentCloud::Common::AbstractModel
|
823
|
-
# @param SourceText: 翻译源文字
|
824
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
825
|
-
# @type SourceText: String
|
826
|
-
# @param TargetText: 翻译后文字。
|
827
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
828
|
-
# @type TargetText: String
|
829
|
-
|
830
|
-
attr_accessor :SourceText, :TargetText
|
831
|
-
|
832
|
-
def initialize(sourcetext=nil, targettext=nil)
|
833
|
-
@SourceText = sourcetext
|
834
|
-
@TargetText = targettext
|
835
|
-
end
|
836
|
-
|
837
|
-
def deserialize(params)
|
838
|
-
@SourceText = params['SourceText']
|
839
|
-
@TargetText = params['TargetText']
|
840
|
-
end
|
841
|
-
end
|
842
|
-
|
843
519
|
end
|
844
520
|
end
|
845
521
|
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.
|
4
|
+
version: 3.0.1001
|
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-02-
|
11
|
+
date: 2025-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|