tencentcloud-sdk-nodejs-vclm 4.0.886

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.
@@ -0,0 +1,363 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+
18
+ /**
19
+ * 文本片段及其时间戳
20
+ */
21
+ export interface AsrTimestamps {
22
+ /**
23
+ * 文本片段
24
+ 注意:此字段可能返回 null,表示取不到有效值。
25
+ */
26
+ Text?: string
27
+ /**
28
+ * 开始时间
29
+ 注意:此字段可能返回 null,表示取不到有效值。
30
+ */
31
+ StartMs?: number
32
+ /**
33
+ * 结束时间
34
+ 注意:此字段可能返回 null,表示取不到有效值。
35
+ */
36
+ EndMs?: number
37
+ }
38
+
39
+ /**
40
+ * SubmitVideoStylizationJob请求参数结构体
41
+ */
42
+ export interface SubmitVideoStylizationJobRequest {
43
+ /**
44
+ * 风格ID,取值说明:2d_anime 2D动漫;3d_cartoon 3D卡通;3d_china 3D国潮;pixel_art 像素风。
45
+ */
46
+ StyleId: string
47
+ /**
48
+ * 输入视频URL。视频要求:
49
+ - 视频格式:mp4、mov;
50
+ - 视频时长:1~60秒;
51
+ - 视频分辨率:540P~2056P,即长宽像素数均在540px~2056px范围内;
52
+ - 视频大小:不超过200M;
53
+ - 视频FPS:15~60fps。
54
+ */
55
+ VideoUrl: string
56
+ }
57
+
58
+ /**
59
+ * ConfirmVideoTranslateJob请求参数结构体
60
+ */
61
+ export interface ConfirmVideoTranslateJobRequest {
62
+ /**
63
+ * 视频翻译任务 ID
64
+ */
65
+ JobId: string
66
+ /**
67
+ * 待确认文本
68
+ */
69
+ TranslateResults: Array<TranslateResult>
70
+ }
71
+
72
+ /**
73
+ * DescribeVideoStylizationJob请求参数结构体
74
+ */
75
+ export interface DescribeVideoStylizationJobRequest {
76
+ /**
77
+ * 任务ID
78
+ */
79
+ JobId: string
80
+ }
81
+
82
+ /**
83
+ * DescribeImageAnimateJob返回参数结构体
84
+ */
85
+ export interface DescribeImageAnimateJobResponse {
86
+ /**
87
+ * 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
88
+ */
89
+ Status?: string
90
+ /**
91
+ * 错误码。
92
+ */
93
+ ErrorCode?: string
94
+ /**
95
+ * 错误信息。
96
+ */
97
+ ErrorMessage?: string
98
+ /**
99
+ * 结果视频URL。有效期 24 小时。
100
+ */
101
+ ResultVideoUrl?: string
102
+ /**
103
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
104
+ */
105
+ RequestId?: string
106
+ }
107
+
108
+ /**
109
+ * SubmitImageAnimateJob返回参数结构体
110
+ */
111
+ export interface SubmitImageAnimateJobResponse {
112
+ /**
113
+ * 任务ID。
114
+ */
115
+ JobId?: string
116
+ /**
117
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
118
+ */
119
+ RequestId?: string
120
+ }
121
+
122
+ /**
123
+ * ConfirmVideoTranslateJob返回参数结构体
124
+ */
125
+ export interface ConfirmVideoTranslateJobResponse {
126
+ /**
127
+ * 视频翻译任务 ID
128
+ */
129
+ JobId?: string
130
+ /**
131
+ * 音频转换任务 ID
132
+ */
133
+ TaskId?: string
134
+ /**
135
+ * 音频翻译结果确认 session
136
+ */
137
+ SessionId?: string
138
+ /**
139
+ * 视频转译任务状态
140
+ */
141
+ Status?: number
142
+ /**
143
+ * 视频转译任务信息
144
+ */
145
+ Message?: string
146
+ /**
147
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
148
+ */
149
+ RequestId?: string
150
+ }
151
+
152
+ /**
153
+ * SubmitVideoTranslateJob返回参数结构体
154
+ */
155
+ export interface SubmitVideoTranslateJobResponse {
156
+ /**
157
+ * 任务ID。
158
+ */
159
+ JobId?: string
160
+ /**
161
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
162
+ */
163
+ RequestId?: string
164
+ }
165
+
166
+ /**
167
+ * DescribeVideoTranslateJob请求参数结构体
168
+ */
169
+ export interface DescribeVideoTranslateJobRequest {
170
+ /**
171
+ * 视频转译任务 ID
172
+ */
173
+ JobId: string
174
+ }
175
+
176
+ /**
177
+ * DescribeVideoStylizationJob返回参数结构体
178
+ */
179
+ export interface DescribeVideoStylizationJobResponse {
180
+ /**
181
+ * 任务ID。
182
+ */
183
+ JobId?: string
184
+ /**
185
+ * 任务状态码:
186
+ JobInit: "初始化中"
187
+ JobModerationFailed: "审核失败",
188
+ JobRunning: "处理中",
189
+ JobFailed: "处理失败",
190
+ JobSuccess: "处理完成"。
191
+ */
192
+ StatusCode?: string
193
+ /**
194
+ * 任务状态描述。
195
+ */
196
+ StatusMsg?: string
197
+ /**
198
+ * 处理结果视频Url。URL有效期为24小时。
199
+ */
200
+ ResultVideoUrl?: string
201
+ /**
202
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
203
+ */
204
+ RequestId?: string
205
+ }
206
+
207
+ /**
208
+ * SubmitImageAnimateJob请求参数结构体
209
+ */
210
+ export interface SubmitImageAnimateJobRequest {
211
+ /**
212
+ * 图片格式:支持PNG、JPG、JPEG格式;
213
+ 图片分辨率:长边分辨率不超过2056;
214
+ 图片大小:不超过10M;
215
+ 图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
216
+ */
217
+ ImageUrl?: string
218
+ /**
219
+ * 图片base64数据。图片格式:支持PNG、JPG、JPEG格式;图片分辨率:长边分辨率不超过2056;图片大小:不超过10M;图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
220
+ */
221
+ ImageBase64?: string
222
+ /**
223
+ * 动作模板ID。取值说明:ke3 科目三;tuziwu 兔子舞;huajiangwu 划桨舞。
224
+
225
+ */
226
+ TemplateId?: string
227
+ /**
228
+ * 结果视频是否保留模板音频。默认为true
229
+ */
230
+ EnableAudio?: boolean
231
+ }
232
+
233
+ /**
234
+ * DescribeImageAnimateJob请求参数结构体
235
+ */
236
+ export interface DescribeImageAnimateJobRequest {
237
+ /**
238
+ * 任务ID。
239
+ */
240
+ JobId?: string
241
+ }
242
+
243
+ /**
244
+ * SubmitVideoStylizationJob返回参数结构体
245
+ */
246
+ export interface SubmitVideoStylizationJobResponse {
247
+ /**
248
+ * 任务ID
249
+ */
250
+ JobId?: string
251
+ /**
252
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
253
+ */
254
+ RequestId?: string
255
+ }
256
+
257
+ /**
258
+ * SubmitVideoTranslateJob请求参数结构体
259
+ */
260
+ export interface SubmitVideoTranslateJobRequest {
261
+ /**
262
+ * 视频地址URL。
263
+ */
264
+ VideoUrl: string
265
+ /**
266
+ * 源语言:zh, en
267
+ */
268
+ SrcLang: string
269
+ /**
270
+ * 目标语言:zh, en
271
+ */
272
+ DstLang?: string
273
+ /**
274
+ * 当音频 URL 不为空时,默认以音频驱动视频任务口型
275
+ */
276
+ AudioUrl?: string
277
+ /**
278
+ * 是否需要确认翻译结果0:不需要,1:需要
279
+ */
280
+ Confirm?: number
281
+ /**
282
+ * 是否开启口型驱动,0:不开启,1:开启。默认开启。
283
+ */
284
+ LipSync?: number
285
+ }
286
+
287
+ /**
288
+ * 音频翻译结果
289
+ */
290
+ export interface TranslateResult {
291
+ /**
292
+ * 翻译源文字
293
+ 注意:此字段可能返回 null,表示取不到有效值。
294
+ */
295
+ SourceText?: string
296
+ /**
297
+ * 翻译后文字。
298
+ 注意:此字段可能返回 null,表示取不到有效值。
299
+ */
300
+ TargetText?: string
301
+ }
302
+
303
+ /**
304
+ * DescribeVideoTranslateJob返回参数结构体
305
+ */
306
+ export interface DescribeVideoTranslateJobResponse {
307
+ /**
308
+ * 任务状态。 1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
309
+ */
310
+ JobStatus?: number
311
+ /**
312
+ * 任务错误码。
313
+ */
314
+ JobErrorCode?: string
315
+ /**
316
+ * 任务错误信息。
317
+ */
318
+ JobErrorMsg?: string
319
+ /**
320
+ * 视频翻译结果。
321
+ */
322
+ ResultVideoUrl?: string
323
+ /**
324
+ * 音频翻译结果。
325
+ */
326
+ TranslateResults?: Array<TranslateResult>
327
+ /**
328
+ * 是否需要确认翻译结果。0:不需要,1:需要
329
+ */
330
+ JobConfirm?: number
331
+ /**
332
+ * 音频任务 ID
333
+ */
334
+ JobAudioTaskId?: string
335
+ /**
336
+ * 视频审核任务ID
337
+ */
338
+ JobVideoModerationId?: string
339
+ /**
340
+ * 音频审核任务 ID
341
+ */
342
+ JobAudioModerationId?: string
343
+ /**
344
+ * 口型驱动任务 ID
345
+ */
346
+ JobVideoId?: string
347
+ /**
348
+ * 视频素材原始 URL
349
+ */
350
+ OriginalVideoUrl?: string
351
+ /**
352
+ * 文本片段及其时间戳
353
+ */
354
+ AsrTimestamps?: Array<AsrTimestamps>
355
+ /**
356
+ * 提交视频翻译任务时的 requestId
357
+ */
358
+ JobSubmitReqId?: string
359
+ /**
360
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
361
+ */
362
+ RequestId?: string
363
+ }
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./services"), exports);
@@ -0,0 +1 @@
1
+ export { vclm } from "./vclm";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var vclm_1 = require("./vclm");
4
+ Object.defineProperty(exports, "vclm", { enumerable: true, get: function () { return vclm_1.vclm; } });
@@ -0,0 +1,6 @@
1
+ export declare const vclm: {
2
+ v20240523: {
3
+ Client: typeof import("./v20240523/vclm_client").Client;
4
+ Models: typeof import("./v20240523/vclm_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.vclm = void 0;
4
+ const v20240523_1 = require("./v20240523");
5
+ exports.vclm = {
6
+ v20240523: v20240523_1.v20240523,
7
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./vclm_models";
2
+ import { Client } from "./vclm_client";
3
+ export declare const v20240523: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20240523 = void 0;
4
+ const Models = require("./vclm_models");
5
+ const vclm_client_1 = require("./vclm_client");
6
+ exports.v20240523 = {
7
+ Client: vclm_client_1.Client,
8
+ Models: Models,
9
+ };
@@ -0,0 +1,37 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ import { SubmitVideoStylizationJobRequest, ConfirmVideoTranslateJobRequest, DescribeVideoStylizationJobRequest, DescribeImageAnimateJobResponse, SubmitImageAnimateJobResponse, ConfirmVideoTranslateJobResponse, SubmitVideoTranslateJobResponse, DescribeVideoTranslateJobRequest, DescribeVideoStylizationJobResponse, SubmitImageAnimateJobRequest, DescribeImageAnimateJobRequest, SubmitVideoStylizationJobResponse, SubmitVideoTranslateJobRequest, DescribeVideoTranslateJobResponse } from "./vclm_models";
3
+ /**
4
+ * vclm client
5
+ * @class
6
+ */
7
+ export declare class Client extends TencentCloudCommon.AbstractClient {
8
+ constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * 提交视频转译任务
11
+ */
12
+ SubmitVideoTranslateJob(req: SubmitVideoTranslateJobRequest, cb?: (error: string, rep: SubmitVideoTranslateJobResponse) => void): Promise<SubmitVideoTranslateJobResponse>;
13
+ /**
14
+ * 查询视频翻译任务
15
+ */
16
+ DescribeVideoTranslateJob(req: DescribeVideoTranslateJobRequest, cb?: (error: string, rep: DescribeVideoTranslateJobResponse) => void): Promise<DescribeVideoTranslateJobResponse>;
17
+ /**
18
+ * 用于提交视频风格化任务。支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
19
+ */
20
+ SubmitVideoStylizationJob(req: SubmitVideoStylizationJobRequest, cb?: (error: string, rep: SubmitVideoStylizationJobResponse) => void): Promise<SubmitVideoStylizationJobResponse>;
21
+ /**
22
+ * 确认视频转译结果
23
+ */
24
+ ConfirmVideoTranslateJob(req: ConfirmVideoTranslateJobRequest, cb?: (error: string, rep: ConfirmVideoTranslateJobResponse) => void): Promise<ConfirmVideoTranslateJobResponse>;
25
+ /**
26
+ * 用于查询图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
27
+ */
28
+ DescribeImageAnimateJob(req: DescribeImageAnimateJobRequest, cb?: (error: string, rep: DescribeImageAnimateJobResponse) => void): Promise<DescribeImageAnimateJobResponse>;
29
+ /**
30
+ * 用于提交图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
31
+ */
32
+ SubmitImageAnimateJob(req: SubmitImageAnimateJobRequest, cb?: (error: string, rep: SubmitImageAnimateJobResponse) => void): Promise<SubmitImageAnimateJobResponse>;
33
+ /**
34
+ * 用于查询视频风格化任务。视频风格化支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
35
+ */
36
+ DescribeVideoStylizationJob(req: DescribeVideoStylizationJobRequest, cb?: (error: string, rep: DescribeVideoStylizationJobResponse) => void): Promise<DescribeVideoStylizationJobResponse>;
37
+ }
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ /**
23
+ * vclm client
24
+ * @class
25
+ */
26
+ class Client extends TencentCloudCommon.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("vclm.tencentcloudapi.com", "2024-05-23", clientConfig);
29
+ }
30
+ /**
31
+ * 提交视频转译任务
32
+ */
33
+ async SubmitVideoTranslateJob(req, cb) {
34
+ return this.request("SubmitVideoTranslateJob", req, cb);
35
+ }
36
+ /**
37
+ * 查询视频翻译任务
38
+ */
39
+ async DescribeVideoTranslateJob(req, cb) {
40
+ return this.request("DescribeVideoTranslateJob", req, cb);
41
+ }
42
+ /**
43
+ * 用于提交视频风格化任务。支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
44
+ */
45
+ async SubmitVideoStylizationJob(req, cb) {
46
+ return this.request("SubmitVideoStylizationJob", req, cb);
47
+ }
48
+ /**
49
+ * 确认视频转译结果
50
+ */
51
+ async ConfirmVideoTranslateJob(req, cb) {
52
+ return this.request("ConfirmVideoTranslateJob", req, cb);
53
+ }
54
+ /**
55
+ * 用于查询图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
56
+ */
57
+ async DescribeImageAnimateJob(req, cb) {
58
+ return this.request("DescribeImageAnimateJob", req, cb);
59
+ }
60
+ /**
61
+ * 用于提交图片跳舞任务。图片跳舞能力支持舞蹈动作结合图片生成跳舞视频,满足社交娱乐、互动营销等场景的需求。
62
+ */
63
+ async SubmitImageAnimateJob(req, cb) {
64
+ return this.request("SubmitImageAnimateJob", req, cb);
65
+ }
66
+ /**
67
+ * 用于查询视频风格化任务。视频风格化支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
68
+ */
69
+ async DescribeVideoStylizationJob(req, cb) {
70
+ return this.request("DescribeVideoStylizationJob", req, cb);
71
+ }
72
+ }
73
+ exports.Client = Client;