tencentcloud-sdk-vclm 3.0.853
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-vclm.rb +11 -0
- data/lib/v20240523/client.rb +204 -0
- data/lib/v20240523/models.rb +486 -0
- metadata +66 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 9f41e084df4c95718310e218207d66a123b15954
|
|
4
|
+
data.tar.gz: 7a6f0e09e28f5230c05de79b6f0b0ed007d96100
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: db2418444947fb6e040a3bb00713dbcc295a00b77b0400acfe6f2ef1f783b5dc08e07489ac56b6e1b199ecc2048e53c4b179b16f6b70e94aa5a7dd7e6dd2e725
|
|
7
|
+
data.tar.gz: c2e46ae36404df71f54afa9651a3a02ab04b704ac18b1a7f6c6f6d7460b1f1462e639e592fa978a61cc60df53f545202a2da9bb0b2355b3a3e24c6983080eb07
|
data/lib/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.853
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
require 'json'
|
|
18
|
+
|
|
19
|
+
module TencentCloud
|
|
20
|
+
module Vclm
|
|
21
|
+
module V20240523
|
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
|
23
|
+
|
|
24
|
+
def initialize(credential, region, profile = nil)
|
|
25
|
+
api_version = '2024-05-23'
|
|
26
|
+
api_endpoint = 'vclm.tencentcloudapi.com'
|
|
27
|
+
sdk_version = 'VCLM_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# 确认视频转译结果
|
|
33
|
+
|
|
34
|
+
# @param request: Request instance for ConfirmVideoTranslateJob.
|
|
35
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::ConfirmVideoTranslateJobRequest`
|
|
36
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::ConfirmVideoTranslateJobResponse`
|
|
37
|
+
def ConfirmVideoTranslateJob(request)
|
|
38
|
+
body = send_request('ConfirmVideoTranslateJob', request.serialize)
|
|
39
|
+
response = JSON.parse(body)
|
|
40
|
+
if response['Response'].key?('Error') == false
|
|
41
|
+
model = ConfirmVideoTranslateJobResponse.new
|
|
42
|
+
model.deserialize(response['Response'])
|
|
43
|
+
model
|
|
44
|
+
else
|
|
45
|
+
code = response['Response']['Error']['Code']
|
|
46
|
+
message = response['Response']['Error']['Message']
|
|
47
|
+
reqid = response['Response']['RequestId']
|
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
49
|
+
end
|
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
51
|
+
raise e
|
|
52
|
+
rescue StandardError => e
|
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# 用于查询图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
|
|
57
|
+
|
|
58
|
+
# @param request: Request instance for DescribeImageAnimateJob.
|
|
59
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::DescribeImageAnimateJobRequest`
|
|
60
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeImageAnimateJobResponse`
|
|
61
|
+
def DescribeImageAnimateJob(request)
|
|
62
|
+
body = send_request('DescribeImageAnimateJob', request.serialize)
|
|
63
|
+
response = JSON.parse(body)
|
|
64
|
+
if response['Response'].key?('Error') == false
|
|
65
|
+
model = DescribeImageAnimateJobResponse.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
|
+
# 用于查询视频风格化任务。视频风格化支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
|
|
81
|
+
|
|
82
|
+
# @param request: Request instance for DescribeVideoStylizationJob.
|
|
83
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::DescribeVideoStylizationJobRequest`
|
|
84
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeVideoStylizationJobResponse`
|
|
85
|
+
def DescribeVideoStylizationJob(request)
|
|
86
|
+
body = send_request('DescribeVideoStylizationJob', request.serialize)
|
|
87
|
+
response = JSON.parse(body)
|
|
88
|
+
if response['Response'].key?('Error') == false
|
|
89
|
+
model = DescribeVideoStylizationJobResponse.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
|
+
|
|
104
|
+
# 查询视频翻译任务
|
|
105
|
+
|
|
106
|
+
# @param request: Request instance for DescribeVideoTranslateJob.
|
|
107
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::DescribeVideoTranslateJobRequest`
|
|
108
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::DescribeVideoTranslateJobResponse`
|
|
109
|
+
def DescribeVideoTranslateJob(request)
|
|
110
|
+
body = send_request('DescribeVideoTranslateJob', request.serialize)
|
|
111
|
+
response = JSON.parse(body)
|
|
112
|
+
if response['Response'].key?('Error') == false
|
|
113
|
+
model = DescribeVideoTranslateJobResponse.new
|
|
114
|
+
model.deserialize(response['Response'])
|
|
115
|
+
model
|
|
116
|
+
else
|
|
117
|
+
code = response['Response']['Error']['Code']
|
|
118
|
+
message = response['Response']['Error']['Message']
|
|
119
|
+
reqid = response['Response']['RequestId']
|
|
120
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
121
|
+
end
|
|
122
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
123
|
+
raise e
|
|
124
|
+
rescue StandardError => e
|
|
125
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# 用于提交图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
|
|
129
|
+
|
|
130
|
+
# @param request: Request instance for SubmitImageAnimateJob.
|
|
131
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::SubmitImageAnimateJobRequest`
|
|
132
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitImageAnimateJobResponse`
|
|
133
|
+
def SubmitImageAnimateJob(request)
|
|
134
|
+
body = send_request('SubmitImageAnimateJob', request.serialize)
|
|
135
|
+
response = JSON.parse(body)
|
|
136
|
+
if response['Response'].key?('Error') == false
|
|
137
|
+
model = SubmitImageAnimateJobResponse.new
|
|
138
|
+
model.deserialize(response['Response'])
|
|
139
|
+
model
|
|
140
|
+
else
|
|
141
|
+
code = response['Response']['Error']['Code']
|
|
142
|
+
message = response['Response']['Error']['Message']
|
|
143
|
+
reqid = response['Response']['RequestId']
|
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
145
|
+
end
|
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
147
|
+
raise e
|
|
148
|
+
rescue StandardError => e
|
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# 用于提交视频风格化任务。支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
|
|
153
|
+
|
|
154
|
+
# @param request: Request instance for SubmitVideoStylizationJob.
|
|
155
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::SubmitVideoStylizationJobRequest`
|
|
156
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitVideoStylizationJobResponse`
|
|
157
|
+
def SubmitVideoStylizationJob(request)
|
|
158
|
+
body = send_request('SubmitVideoStylizationJob', request.serialize)
|
|
159
|
+
response = JSON.parse(body)
|
|
160
|
+
if response['Response'].key?('Error') == false
|
|
161
|
+
model = SubmitVideoStylizationJobResponse.new
|
|
162
|
+
model.deserialize(response['Response'])
|
|
163
|
+
model
|
|
164
|
+
else
|
|
165
|
+
code = response['Response']['Error']['Code']
|
|
166
|
+
message = response['Response']['Error']['Message']
|
|
167
|
+
reqid = response['Response']['RequestId']
|
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
169
|
+
end
|
|
170
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
171
|
+
raise e
|
|
172
|
+
rescue StandardError => e
|
|
173
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# 提交视频转译任务
|
|
177
|
+
|
|
178
|
+
# @param request: Request instance for SubmitVideoTranslateJob.
|
|
179
|
+
# @type request: :class:`Tencentcloud::vclm::V20240523::SubmitVideoTranslateJobRequest`
|
|
180
|
+
# @rtype: :class:`Tencentcloud::vclm::V20240523::SubmitVideoTranslateJobResponse`
|
|
181
|
+
def SubmitVideoTranslateJob(request)
|
|
182
|
+
body = send_request('SubmitVideoTranslateJob', request.serialize)
|
|
183
|
+
response = JSON.parse(body)
|
|
184
|
+
if response['Response'].key?('Error') == false
|
|
185
|
+
model = SubmitVideoTranslateJobResponse.new
|
|
186
|
+
model.deserialize(response['Response'])
|
|
187
|
+
model
|
|
188
|
+
else
|
|
189
|
+
code = response['Response']['Error']['Code']
|
|
190
|
+
message = response['Response']['Error']['Message']
|
|
191
|
+
reqid = response['Response']['RequestId']
|
|
192
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
193
|
+
end
|
|
194
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
195
|
+
raise e
|
|
196
|
+
rescue StandardError => e
|
|
197
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
end
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
end
|
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
module TencentCloud
|
|
18
|
+
module Vclm
|
|
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
|
+
# ConfirmVideoTranslateJob请求参数结构体
|
|
48
|
+
class ConfirmVideoTranslateJobRequest < TencentCloud::Common::AbstractModel
|
|
49
|
+
# @param JobId: 视频翻译任务 ID
|
|
50
|
+
# @type JobId: String
|
|
51
|
+
# @param TranslateResults: 待确认文本
|
|
52
|
+
# @type TranslateResults: Array
|
|
53
|
+
|
|
54
|
+
attr_accessor :JobId, :TranslateResults
|
|
55
|
+
|
|
56
|
+
def initialize(jobid=nil, translateresults=nil)
|
|
57
|
+
@JobId = jobid
|
|
58
|
+
@TranslateResults = translateresults
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def deserialize(params)
|
|
62
|
+
@JobId = params['JobId']
|
|
63
|
+
unless params['TranslateResults'].nil?
|
|
64
|
+
@TranslateResults = []
|
|
65
|
+
params['TranslateResults'].each do |i|
|
|
66
|
+
translateresult_tmp = TranslateResult.new
|
|
67
|
+
translateresult_tmp.deserialize(i)
|
|
68
|
+
@TranslateResults << translateresult_tmp
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# ConfirmVideoTranslateJob返回参数结构体
|
|
75
|
+
class ConfirmVideoTranslateJobResponse < TencentCloud::Common::AbstractModel
|
|
76
|
+
# @param JobId: 视频翻译任务 ID
|
|
77
|
+
# @type JobId: String
|
|
78
|
+
# @param TaskId: 音频转换任务 ID
|
|
79
|
+
# @type TaskId: String
|
|
80
|
+
# @param SessionId: 音频翻译结果确认 session
|
|
81
|
+
# @type SessionId: String
|
|
82
|
+
# @param Status: 视频转译任务状态
|
|
83
|
+
# @type Status: Integer
|
|
84
|
+
# @param Message: 视频转译任务信息
|
|
85
|
+
# @type Message: String
|
|
86
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
87
|
+
# @type RequestId: String
|
|
88
|
+
|
|
89
|
+
attr_accessor :JobId, :TaskId, :SessionId, :Status, :Message, :RequestId
|
|
90
|
+
|
|
91
|
+
def initialize(jobid=nil, taskid=nil, sessionid=nil, status=nil, message=nil, requestid=nil)
|
|
92
|
+
@JobId = jobid
|
|
93
|
+
@TaskId = taskid
|
|
94
|
+
@SessionId = sessionid
|
|
95
|
+
@Status = status
|
|
96
|
+
@Message = message
|
|
97
|
+
@RequestId = requestid
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
def deserialize(params)
|
|
101
|
+
@JobId = params['JobId']
|
|
102
|
+
@TaskId = params['TaskId']
|
|
103
|
+
@SessionId = params['SessionId']
|
|
104
|
+
@Status = params['Status']
|
|
105
|
+
@Message = params['Message']
|
|
106
|
+
@RequestId = params['RequestId']
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# DescribeImageAnimateJob请求参数结构体
|
|
111
|
+
class DescribeImageAnimateJobRequest < TencentCloud::Common::AbstractModel
|
|
112
|
+
# @param JobId: 任务ID。
|
|
113
|
+
# @type JobId: String
|
|
114
|
+
|
|
115
|
+
attr_accessor :JobId
|
|
116
|
+
|
|
117
|
+
def initialize(jobid=nil)
|
|
118
|
+
@JobId = jobid
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
def deserialize(params)
|
|
122
|
+
@JobId = params['JobId']
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# DescribeImageAnimateJob返回参数结构体
|
|
127
|
+
class DescribeImageAnimateJobResponse < TencentCloud::Common::AbstractModel
|
|
128
|
+
# @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
|
129
|
+
# @type Status: String
|
|
130
|
+
# @param ErrorCode: 错误码。
|
|
131
|
+
# @type ErrorCode: String
|
|
132
|
+
# @param ErrorMessage: 错误信息。
|
|
133
|
+
# @type ErrorMessage: String
|
|
134
|
+
# @param ResultVideoUrl: 结果视频URL。有效期 24 小时。
|
|
135
|
+
# @type ResultVideoUrl: String
|
|
136
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
137
|
+
# @type RequestId: String
|
|
138
|
+
|
|
139
|
+
attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultVideoUrl, :RequestId
|
|
140
|
+
|
|
141
|
+
def initialize(status=nil, errorcode=nil, errormessage=nil, resultvideourl=nil, requestid=nil)
|
|
142
|
+
@Status = status
|
|
143
|
+
@ErrorCode = errorcode
|
|
144
|
+
@ErrorMessage = errormessage
|
|
145
|
+
@ResultVideoUrl = resultvideourl
|
|
146
|
+
@RequestId = requestid
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
def deserialize(params)
|
|
150
|
+
@Status = params['Status']
|
|
151
|
+
@ErrorCode = params['ErrorCode']
|
|
152
|
+
@ErrorMessage = params['ErrorMessage']
|
|
153
|
+
@ResultVideoUrl = params['ResultVideoUrl']
|
|
154
|
+
@RequestId = params['RequestId']
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# DescribeVideoStylizationJob请求参数结构体
|
|
159
|
+
class DescribeVideoStylizationJobRequest < 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
|
+
# DescribeVideoStylizationJob返回参数结构体
|
|
175
|
+
class DescribeVideoStylizationJobResponse < TencentCloud::Common::AbstractModel
|
|
176
|
+
# @param JobId: 任务ID。
|
|
177
|
+
# @type JobId: String
|
|
178
|
+
# @param StatusCode: 任务状态码:
|
|
179
|
+
# JobInit: "初始化中"
|
|
180
|
+
# JobModerationFailed: "审核失败",
|
|
181
|
+
# JobRunning: "处理中",
|
|
182
|
+
# JobFailed: "处理失败",
|
|
183
|
+
# JobSuccess: "处理完成"。
|
|
184
|
+
# @type StatusCode: String
|
|
185
|
+
# @param StatusMsg: 任务状态描述。
|
|
186
|
+
# @type StatusMsg: String
|
|
187
|
+
# @param ResultVideoUrl: 处理结果视频Url。URL有效期为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
|
+
|
|
211
|
+
# DescribeVideoTranslateJob请求参数结构体
|
|
212
|
+
class DescribeVideoTranslateJobRequest < TencentCloud::Common::AbstractModel
|
|
213
|
+
# @param JobId: 视频转译任务 ID
|
|
214
|
+
# @type JobId: String
|
|
215
|
+
|
|
216
|
+
attr_accessor :JobId
|
|
217
|
+
|
|
218
|
+
def initialize(jobid=nil)
|
|
219
|
+
@JobId = jobid
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
def deserialize(params)
|
|
223
|
+
@JobId = params['JobId']
|
|
224
|
+
end
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# DescribeVideoTranslateJob返回参数结构体
|
|
228
|
+
class DescribeVideoTranslateJobResponse < TencentCloud::Common::AbstractModel
|
|
229
|
+
# @param JobStatus: 任务状态。 1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
|
|
230
|
+
# @type JobStatus: Integer
|
|
231
|
+
# @param JobErrorCode: 任务错误码。
|
|
232
|
+
# @type JobErrorCode: String
|
|
233
|
+
# @param JobErrorMsg: 任务错误信息。
|
|
234
|
+
# @type JobErrorMsg: String
|
|
235
|
+
# @param ResultVideoUrl: 视频翻译结果。
|
|
236
|
+
# @type ResultVideoUrl: String
|
|
237
|
+
# @param TranslateResults: 音频翻译结果。
|
|
238
|
+
# @type TranslateResults: Array
|
|
239
|
+
# @param JobConfirm: 是否需要确认翻译结果。0:不需要,1:需要
|
|
240
|
+
# @type JobConfirm: Integer
|
|
241
|
+
# @param JobAudioTaskId: 音频任务 ID
|
|
242
|
+
# @type JobAudioTaskId: String
|
|
243
|
+
# @param JobVideoModerationId: 视频审核任务ID
|
|
244
|
+
# @type JobVideoModerationId: String
|
|
245
|
+
# @param JobAudioModerationId: 音频审核任务 ID
|
|
246
|
+
# @type JobAudioModerationId: String
|
|
247
|
+
# @param JobVideoId: 口型驱动任务 ID
|
|
248
|
+
# @type JobVideoId: String
|
|
249
|
+
# @param OriginalVideoUrl: 视频素材原始 URL
|
|
250
|
+
# @type OriginalVideoUrl: String
|
|
251
|
+
# @param AsrTimestamps: 文本片段及其时间戳
|
|
252
|
+
# @type AsrTimestamps: Array
|
|
253
|
+
# @param JobSubmitReqId: 提交视频翻译任务时的 requestId
|
|
254
|
+
# @type JobSubmitReqId: String
|
|
255
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
256
|
+
# @type RequestId: String
|
|
257
|
+
|
|
258
|
+
attr_accessor :JobStatus, :JobErrorCode, :JobErrorMsg, :ResultVideoUrl, :TranslateResults, :JobConfirm, :JobAudioTaskId, :JobVideoModerationId, :JobAudioModerationId, :JobVideoId, :OriginalVideoUrl, :AsrTimestamps, :JobSubmitReqId, :RequestId
|
|
259
|
+
|
|
260
|
+
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)
|
|
261
|
+
@JobStatus = jobstatus
|
|
262
|
+
@JobErrorCode = joberrorcode
|
|
263
|
+
@JobErrorMsg = joberrormsg
|
|
264
|
+
@ResultVideoUrl = resultvideourl
|
|
265
|
+
@TranslateResults = translateresults
|
|
266
|
+
@JobConfirm = jobconfirm
|
|
267
|
+
@JobAudioTaskId = jobaudiotaskid
|
|
268
|
+
@JobVideoModerationId = jobvideomoderationid
|
|
269
|
+
@JobAudioModerationId = jobaudiomoderationid
|
|
270
|
+
@JobVideoId = jobvideoid
|
|
271
|
+
@OriginalVideoUrl = originalvideourl
|
|
272
|
+
@AsrTimestamps = asrtimestamps
|
|
273
|
+
@JobSubmitReqId = jobsubmitreqid
|
|
274
|
+
@RequestId = requestid
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
def deserialize(params)
|
|
278
|
+
@JobStatus = params['JobStatus']
|
|
279
|
+
@JobErrorCode = params['JobErrorCode']
|
|
280
|
+
@JobErrorMsg = params['JobErrorMsg']
|
|
281
|
+
@ResultVideoUrl = params['ResultVideoUrl']
|
|
282
|
+
unless params['TranslateResults'].nil?
|
|
283
|
+
@TranslateResults = []
|
|
284
|
+
params['TranslateResults'].each do |i|
|
|
285
|
+
translateresult_tmp = TranslateResult.new
|
|
286
|
+
translateresult_tmp.deserialize(i)
|
|
287
|
+
@TranslateResults << translateresult_tmp
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
@JobConfirm = params['JobConfirm']
|
|
291
|
+
@JobAudioTaskId = params['JobAudioTaskId']
|
|
292
|
+
@JobVideoModerationId = params['JobVideoModerationId']
|
|
293
|
+
@JobAudioModerationId = params['JobAudioModerationId']
|
|
294
|
+
@JobVideoId = params['JobVideoId']
|
|
295
|
+
@OriginalVideoUrl = params['OriginalVideoUrl']
|
|
296
|
+
unless params['AsrTimestamps'].nil?
|
|
297
|
+
@AsrTimestamps = []
|
|
298
|
+
params['AsrTimestamps'].each do |i|
|
|
299
|
+
asrtimestamps_tmp = AsrTimestamps.new
|
|
300
|
+
asrtimestamps_tmp.deserialize(i)
|
|
301
|
+
@AsrTimestamps << asrtimestamps_tmp
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
@JobSubmitReqId = params['JobSubmitReqId']
|
|
305
|
+
@RequestId = params['RequestId']
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# SubmitImageAnimateJob请求参数结构体
|
|
310
|
+
class SubmitImageAnimateJobRequest < TencentCloud::Common::AbstractModel
|
|
311
|
+
# @param ImageUrl: 图片格式:支持PNG、JPG、JPEG格式;
|
|
312
|
+
# 图片分辨率:长边分辨率不超过2056;
|
|
313
|
+
# 图片大小:不超过10M;
|
|
314
|
+
# 图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
|
315
|
+
# @type ImageUrl: String
|
|
316
|
+
# @param ImageBase64: 图片base64数据。图片格式:支持PNG、JPG、JPEG格式;图片分辨率:长边分辨率不超过2056;图片大小:不超过10M;图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
|
317
|
+
# @type ImageBase64: String
|
|
318
|
+
# @param TemplateId: 动作模板ID。取值说明:ke3 科目三;tuziwu 兔子舞;huajiangwu 划桨舞。
|
|
319
|
+
# @type TemplateId: String
|
|
320
|
+
# @param EnableAudio: 结果视频是否保留模板音频。默认为true
|
|
321
|
+
# @type EnableAudio: Boolean
|
|
322
|
+
|
|
323
|
+
attr_accessor :ImageUrl, :ImageBase64, :TemplateId, :EnableAudio
|
|
324
|
+
|
|
325
|
+
def initialize(imageurl=nil, imagebase64=nil, templateid=nil, enableaudio=nil)
|
|
326
|
+
@ImageUrl = imageurl
|
|
327
|
+
@ImageBase64 = imagebase64
|
|
328
|
+
@TemplateId = templateid
|
|
329
|
+
@EnableAudio = enableaudio
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
def deserialize(params)
|
|
333
|
+
@ImageUrl = params['ImageUrl']
|
|
334
|
+
@ImageBase64 = params['ImageBase64']
|
|
335
|
+
@TemplateId = params['TemplateId']
|
|
336
|
+
@EnableAudio = params['EnableAudio']
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# SubmitImageAnimateJob返回参数结构体
|
|
341
|
+
class SubmitImageAnimateJobResponse < TencentCloud::Common::AbstractModel
|
|
342
|
+
# @param JobId: 任务ID。
|
|
343
|
+
# @type JobId: String
|
|
344
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
345
|
+
# @type RequestId: String
|
|
346
|
+
|
|
347
|
+
attr_accessor :JobId, :RequestId
|
|
348
|
+
|
|
349
|
+
def initialize(jobid=nil, requestid=nil)
|
|
350
|
+
@JobId = jobid
|
|
351
|
+
@RequestId = requestid
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
def deserialize(params)
|
|
355
|
+
@JobId = params['JobId']
|
|
356
|
+
@RequestId = params['RequestId']
|
|
357
|
+
end
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# SubmitVideoStylizationJob请求参数结构体
|
|
361
|
+
class SubmitVideoStylizationJobRequest < TencentCloud::Common::AbstractModel
|
|
362
|
+
# @param StyleId: 风格ID,取值说明:2d_anime 2D动漫;3d_cartoon 3D卡通;3d_china 3D国潮;pixel_art 像素风。
|
|
363
|
+
# @type StyleId: String
|
|
364
|
+
# @param VideoUrl: 输入视频URL。视频要求:
|
|
365
|
+
# - 视频格式:mp4、mov;
|
|
366
|
+
# - 视频时长:1~60秒;
|
|
367
|
+
# - 视频分辨率:540P~2056P,即长宽像素数均在540px~2056px范围内;
|
|
368
|
+
# - 视频大小:不超过200M;
|
|
369
|
+
# - 视频FPS:15~60fps。
|
|
370
|
+
# @type VideoUrl: String
|
|
371
|
+
|
|
372
|
+
attr_accessor :StyleId, :VideoUrl
|
|
373
|
+
|
|
374
|
+
def initialize(styleid=nil, videourl=nil)
|
|
375
|
+
@StyleId = styleid
|
|
376
|
+
@VideoUrl = videourl
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
def deserialize(params)
|
|
380
|
+
@StyleId = params['StyleId']
|
|
381
|
+
@VideoUrl = params['VideoUrl']
|
|
382
|
+
end
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
# SubmitVideoStylizationJob返回参数结构体
|
|
386
|
+
class SubmitVideoStylizationJobResponse < TencentCloud::Common::AbstractModel
|
|
387
|
+
# @param JobId: 任务ID
|
|
388
|
+
# @type JobId: String
|
|
389
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
390
|
+
# @type RequestId: String
|
|
391
|
+
|
|
392
|
+
attr_accessor :JobId, :RequestId
|
|
393
|
+
|
|
394
|
+
def initialize(jobid=nil, requestid=nil)
|
|
395
|
+
@JobId = jobid
|
|
396
|
+
@RequestId = requestid
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
def deserialize(params)
|
|
400
|
+
@JobId = params['JobId']
|
|
401
|
+
@RequestId = params['RequestId']
|
|
402
|
+
end
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
# SubmitVideoTranslateJob请求参数结构体
|
|
406
|
+
class SubmitVideoTranslateJobRequest < TencentCloud::Common::AbstractModel
|
|
407
|
+
# @param VideoUrl: 视频地址URL。
|
|
408
|
+
# @type VideoUrl: String
|
|
409
|
+
# @param SrcLang: 源语言:zh, en
|
|
410
|
+
# @type SrcLang: String
|
|
411
|
+
# @param DstLang: 目标语言:zh, en
|
|
412
|
+
# @type DstLang: String
|
|
413
|
+
# @param AudioUrl: 当音频 URL 不为空时,默认以音频驱动视频任务口型
|
|
414
|
+
# @type AudioUrl: String
|
|
415
|
+
# @param Confirm: 是否需要确认翻译结果0:不需要,1:需要
|
|
416
|
+
# @type Confirm: Integer
|
|
417
|
+
# @param LipSync: 是否开启口型驱动,0:不开启,1:开启。默认开启。
|
|
418
|
+
# @type LipSync: Integer
|
|
419
|
+
|
|
420
|
+
attr_accessor :VideoUrl, :SrcLang, :DstLang, :AudioUrl, :Confirm, :LipSync
|
|
421
|
+
|
|
422
|
+
def initialize(videourl=nil, srclang=nil, dstlang=nil, audiourl=nil, confirm=nil, lipsync=nil)
|
|
423
|
+
@VideoUrl = videourl
|
|
424
|
+
@SrcLang = srclang
|
|
425
|
+
@DstLang = dstlang
|
|
426
|
+
@AudioUrl = audiourl
|
|
427
|
+
@Confirm = confirm
|
|
428
|
+
@LipSync = lipsync
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
def deserialize(params)
|
|
432
|
+
@VideoUrl = params['VideoUrl']
|
|
433
|
+
@SrcLang = params['SrcLang']
|
|
434
|
+
@DstLang = params['DstLang']
|
|
435
|
+
@AudioUrl = params['AudioUrl']
|
|
436
|
+
@Confirm = params['Confirm']
|
|
437
|
+
@LipSync = params['LipSync']
|
|
438
|
+
end
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
# SubmitVideoTranslateJob返回参数结构体
|
|
442
|
+
class SubmitVideoTranslateJobResponse < TencentCloud::Common::AbstractModel
|
|
443
|
+
# @param JobId: 任务ID。
|
|
444
|
+
# @type JobId: String
|
|
445
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
446
|
+
# @type RequestId: String
|
|
447
|
+
|
|
448
|
+
attr_accessor :JobId, :RequestId
|
|
449
|
+
|
|
450
|
+
def initialize(jobid=nil, requestid=nil)
|
|
451
|
+
@JobId = jobid
|
|
452
|
+
@RequestId = requestid
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
def deserialize(params)
|
|
456
|
+
@JobId = params['JobId']
|
|
457
|
+
@RequestId = params['RequestId']
|
|
458
|
+
end
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# 音频翻译结果
|
|
462
|
+
class TranslateResult < TencentCloud::Common::AbstractModel
|
|
463
|
+
# @param SourceText: 翻译源文字
|
|
464
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
465
|
+
# @type SourceText: String
|
|
466
|
+
# @param TargetText: 翻译后文字。
|
|
467
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
468
|
+
# @type TargetText: String
|
|
469
|
+
|
|
470
|
+
attr_accessor :SourceText, :TargetText
|
|
471
|
+
|
|
472
|
+
def initialize(sourcetext=nil, targettext=nil)
|
|
473
|
+
@SourceText = sourcetext
|
|
474
|
+
@TargetText = targettext
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
def deserialize(params)
|
|
478
|
+
@SourceText = params['SourceText']
|
|
479
|
+
@TargetText = params['TargetText']
|
|
480
|
+
end
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
end
|
|
484
|
+
end
|
|
485
|
+
end
|
|
486
|
+
|
metadata
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: tencentcloud-sdk-vclm
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 3.0.853
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Tencent Cloud
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2024-06-27 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: tencentcloud-sdk-common
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ~>
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '3.0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ~>
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '3.0'
|
|
27
|
+
description: Tencent Cloud Ruby SDK is the official software development kit, which
|
|
28
|
+
allows Ruby developers to write software that makes use of Tencent Cloud service
|
|
29
|
+
VCLM.
|
|
30
|
+
email:
|
|
31
|
+
- tencentcloudapi@tencent.com
|
|
32
|
+
executables: []
|
|
33
|
+
extensions: []
|
|
34
|
+
extra_rdoc_files: []
|
|
35
|
+
files:
|
|
36
|
+
- lib/v20240523/models.rb
|
|
37
|
+
- lib/v20240523/client.rb
|
|
38
|
+
- lib/tencentcloud-sdk-vclm.rb
|
|
39
|
+
- lib/VERSION
|
|
40
|
+
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
41
|
+
licenses:
|
|
42
|
+
- Apache-2.0
|
|
43
|
+
metadata:
|
|
44
|
+
source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-vclm
|
|
45
|
+
changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
|
|
46
|
+
post_install_message:
|
|
47
|
+
rdoc_options: []
|
|
48
|
+
require_paths:
|
|
49
|
+
- lib
|
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
|
+
requirements:
|
|
57
|
+
- - '>='
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '0'
|
|
60
|
+
requirements: []
|
|
61
|
+
rubyforge_project:
|
|
62
|
+
rubygems_version: 2.0.14
|
|
63
|
+
signing_key:
|
|
64
|
+
specification_version: 4
|
|
65
|
+
summary: Tencent Cloud SDK for Ruby - VCLM
|
|
66
|
+
test_files: []
|