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,331 @@
1
+ /**
2
+ * 文本片段及其时间戳
3
+ */
4
+ export interface AsrTimestamps {
5
+ /**
6
+ * 文本片段
7
+ 注意:此字段可能返回 null,表示取不到有效值。
8
+ */
9
+ Text?: string;
10
+ /**
11
+ * 开始时间
12
+ 注意:此字段可能返回 null,表示取不到有效值。
13
+ */
14
+ StartMs?: number;
15
+ /**
16
+ * 结束时间
17
+ 注意:此字段可能返回 null,表示取不到有效值。
18
+ */
19
+ EndMs?: number;
20
+ }
21
+ /**
22
+ * SubmitVideoStylizationJob请求参数结构体
23
+ */
24
+ export interface SubmitVideoStylizationJobRequest {
25
+ /**
26
+ * 风格ID,取值说明:2d_anime 2D动漫;3d_cartoon 3D卡通;3d_china 3D国潮;pixel_art 像素风。
27
+ */
28
+ StyleId: string;
29
+ /**
30
+ * 输入视频URL。视频要求:
31
+ - 视频格式:mp4、mov;
32
+ - 视频时长:1~60秒;
33
+ - 视频分辨率:540P~2056P,即长宽像素数均在540px~2056px范围内;
34
+ - 视频大小:不超过200M;
35
+ - 视频FPS:15~60fps。
36
+ */
37
+ VideoUrl: string;
38
+ }
39
+ /**
40
+ * ConfirmVideoTranslateJob请求参数结构体
41
+ */
42
+ export interface ConfirmVideoTranslateJobRequest {
43
+ /**
44
+ * 视频翻译任务 ID
45
+ */
46
+ JobId: string;
47
+ /**
48
+ * 待确认文本
49
+ */
50
+ TranslateResults: Array<TranslateResult>;
51
+ }
52
+ /**
53
+ * DescribeVideoStylizationJob请求参数结构体
54
+ */
55
+ export interface DescribeVideoStylizationJobRequest {
56
+ /**
57
+ * 任务ID
58
+ */
59
+ JobId: string;
60
+ }
61
+ /**
62
+ * DescribeImageAnimateJob返回参数结构体
63
+ */
64
+ export interface DescribeImageAnimateJobResponse {
65
+ /**
66
+ * 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
67
+ */
68
+ Status?: string;
69
+ /**
70
+ * 错误码。
71
+ */
72
+ ErrorCode?: string;
73
+ /**
74
+ * 错误信息。
75
+ */
76
+ ErrorMessage?: string;
77
+ /**
78
+ * 结果视频URL。有效期 24 小时。
79
+ */
80
+ ResultVideoUrl?: string;
81
+ /**
82
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
83
+ */
84
+ RequestId?: string;
85
+ }
86
+ /**
87
+ * SubmitImageAnimateJob返回参数结构体
88
+ */
89
+ export interface SubmitImageAnimateJobResponse {
90
+ /**
91
+ * 任务ID。
92
+ */
93
+ JobId?: string;
94
+ /**
95
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
96
+ */
97
+ RequestId?: string;
98
+ }
99
+ /**
100
+ * ConfirmVideoTranslateJob返回参数结构体
101
+ */
102
+ export interface ConfirmVideoTranslateJobResponse {
103
+ /**
104
+ * 视频翻译任务 ID
105
+ */
106
+ JobId?: string;
107
+ /**
108
+ * 音频转换任务 ID
109
+ */
110
+ TaskId?: string;
111
+ /**
112
+ * 音频翻译结果确认 session
113
+ */
114
+ SessionId?: string;
115
+ /**
116
+ * 视频转译任务状态
117
+ */
118
+ Status?: number;
119
+ /**
120
+ * 视频转译任务信息
121
+ */
122
+ Message?: string;
123
+ /**
124
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
125
+ */
126
+ RequestId?: string;
127
+ }
128
+ /**
129
+ * SubmitVideoTranslateJob返回参数结构体
130
+ */
131
+ export interface SubmitVideoTranslateJobResponse {
132
+ /**
133
+ * 任务ID。
134
+ */
135
+ JobId?: string;
136
+ /**
137
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
138
+ */
139
+ RequestId?: string;
140
+ }
141
+ /**
142
+ * DescribeVideoTranslateJob请求参数结构体
143
+ */
144
+ export interface DescribeVideoTranslateJobRequest {
145
+ /**
146
+ * 视频转译任务 ID
147
+ */
148
+ JobId: string;
149
+ }
150
+ /**
151
+ * DescribeVideoStylizationJob返回参数结构体
152
+ */
153
+ export interface DescribeVideoStylizationJobResponse {
154
+ /**
155
+ * 任务ID。
156
+ */
157
+ JobId?: string;
158
+ /**
159
+ * 任务状态码:
160
+ JobInit: "初始化中"
161
+ JobModerationFailed: "审核失败",
162
+ JobRunning: "处理中",
163
+ JobFailed: "处理失败",
164
+ JobSuccess: "处理完成"。
165
+ */
166
+ StatusCode?: string;
167
+ /**
168
+ * 任务状态描述。
169
+ */
170
+ StatusMsg?: string;
171
+ /**
172
+ * 处理结果视频Url。URL有效期为24小时。
173
+ */
174
+ ResultVideoUrl?: string;
175
+ /**
176
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
177
+ */
178
+ RequestId?: string;
179
+ }
180
+ /**
181
+ * SubmitImageAnimateJob请求参数结构体
182
+ */
183
+ export interface SubmitImageAnimateJobRequest {
184
+ /**
185
+ * 图片格式:支持PNG、JPG、JPEG格式;
186
+ 图片分辨率:长边分辨率不超过2056;
187
+ 图片大小:不超过10M;
188
+ 图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
189
+ */
190
+ ImageUrl?: string;
191
+ /**
192
+ * 图片base64数据。图片格式:支持PNG、JPG、JPEG格式;图片分辨率:长边分辨率不超过2056;图片大小:不超过10M;图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
193
+ */
194
+ ImageBase64?: string;
195
+ /**
196
+ * 动作模板ID。取值说明:ke3 科目三;tuziwu 兔子舞;huajiangwu 划桨舞。
197
+
198
+ */
199
+ TemplateId?: string;
200
+ /**
201
+ * 结果视频是否保留模板音频。默认为true
202
+ */
203
+ EnableAudio?: boolean;
204
+ }
205
+ /**
206
+ * DescribeImageAnimateJob请求参数结构体
207
+ */
208
+ export interface DescribeImageAnimateJobRequest {
209
+ /**
210
+ * 任务ID。
211
+ */
212
+ JobId?: string;
213
+ }
214
+ /**
215
+ * SubmitVideoStylizationJob返回参数结构体
216
+ */
217
+ export interface SubmitVideoStylizationJobResponse {
218
+ /**
219
+ * 任务ID
220
+ */
221
+ JobId?: string;
222
+ /**
223
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
224
+ */
225
+ RequestId?: string;
226
+ }
227
+ /**
228
+ * SubmitVideoTranslateJob请求参数结构体
229
+ */
230
+ export interface SubmitVideoTranslateJobRequest {
231
+ /**
232
+ * 视频地址URL。
233
+ */
234
+ VideoUrl: string;
235
+ /**
236
+ * 源语言:zh, en
237
+ */
238
+ SrcLang: string;
239
+ /**
240
+ * 目标语言:zh, en
241
+ */
242
+ DstLang?: string;
243
+ /**
244
+ * 当音频 URL 不为空时,默认以音频驱动视频任务口型
245
+ */
246
+ AudioUrl?: string;
247
+ /**
248
+ * 是否需要确认翻译结果0:不需要,1:需要
249
+ */
250
+ Confirm?: number;
251
+ /**
252
+ * 是否开启口型驱动,0:不开启,1:开启。默认开启。
253
+ */
254
+ LipSync?: number;
255
+ }
256
+ /**
257
+ * 音频翻译结果
258
+ */
259
+ export interface TranslateResult {
260
+ /**
261
+ * 翻译源文字
262
+ 注意:此字段可能返回 null,表示取不到有效值。
263
+ */
264
+ SourceText?: string;
265
+ /**
266
+ * 翻译后文字。
267
+ 注意:此字段可能返回 null,表示取不到有效值。
268
+ */
269
+ TargetText?: string;
270
+ }
271
+ /**
272
+ * DescribeVideoTranslateJob返回参数结构体
273
+ */
274
+ export interface DescribeVideoTranslateJobResponse {
275
+ /**
276
+ * 任务状态。 1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
277
+ */
278
+ JobStatus?: number;
279
+ /**
280
+ * 任务错误码。
281
+ */
282
+ JobErrorCode?: string;
283
+ /**
284
+ * 任务错误信息。
285
+ */
286
+ JobErrorMsg?: string;
287
+ /**
288
+ * 视频翻译结果。
289
+ */
290
+ ResultVideoUrl?: string;
291
+ /**
292
+ * 音频翻译结果。
293
+ */
294
+ TranslateResults?: Array<TranslateResult>;
295
+ /**
296
+ * 是否需要确认翻译结果。0:不需要,1:需要
297
+ */
298
+ JobConfirm?: number;
299
+ /**
300
+ * 音频任务 ID
301
+ */
302
+ JobAudioTaskId?: string;
303
+ /**
304
+ * 视频审核任务ID
305
+ */
306
+ JobVideoModerationId?: string;
307
+ /**
308
+ * 音频审核任务 ID
309
+ */
310
+ JobAudioModerationId?: string;
311
+ /**
312
+ * 口型驱动任务 ID
313
+ */
314
+ JobVideoId?: string;
315
+ /**
316
+ * 视频素材原始 URL
317
+ */
318
+ OriginalVideoUrl?: string;
319
+ /**
320
+ * 文本片段及其时间戳
321
+ */
322
+ AsrTimestamps?: Array<AsrTimestamps>;
323
+ /**
324
+ * 提交视频翻译任务时的 requestId
325
+ */
326
+ JobSubmitReqId?: string;
327
+ /**
328
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
329
+ */
330
+ RequestId?: string;
331
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 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,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
package/tsconfig.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "compilerOptions": {
3
+ // "incremental": true, /* 增量编译 提高编译速度*/
4
+ "target": "ES2019" /* 编译目标ES版本*/,
5
+ "module": "commonjs" /* 编译目标模块系统*/,
6
+ // "lib": [], /* 编译过程中需要引入的库文件列表*/
7
+ "declaration": true /* 编译时创建声明文件 */,
8
+ "outDir": "tencentcloud" /* ts编译输出目录 */,
9
+ "rootDir": "src" /* ts编译根目录. */,
10
+ "importHelpers": true /* 从tslib导入辅助工具函数(如__importDefault)*/,
11
+ "strict": true /* 严格模式开关 等价于noImplicitAny、strictNullChecks、strictFunctionTypes、strictBindCallApply等设置true */,
12
+ "strictNullChecks": false,
13
+ "noUnusedLocals": false /* 未使用局部变量报错*/,
14
+ "noUnusedParameters": false /* 未使用参数报错*/,
15
+ "noImplicitReturns": true /* 有代码路径没有返回值时报错*/,
16
+ "noFallthroughCasesInSwitch": true /* 不允许switch的case语句贯穿*/,
17
+ "moduleResolution": "node" /* 模块解析策略 */,
18
+ "typeRoots": [
19
+ /* 要包含的类型声明文件路径列表*/
20
+ "./typings",
21
+ "./node_modules/@types"
22
+ ],
23
+ "allowSyntheticDefaultImports": true /* 允许从没有设置默认导出的模块中默认导入,仅用于提示,不影响编译结果*/,
24
+ "esModuleInterop": false /* 允许编译生成文件时,在代码中注入工具类(__importDefault、__importStar)对ESM与commonjs混用情况做兼容处理*/,
25
+ "sourceMap": false
26
+ },
27
+ "include": [
28
+ /* 需要编译的文件 */
29
+ "src/**/*.ts",
30
+ "typings/**/*.ts"
31
+ ],
32
+ "exclude": []
33
+ }
@@ -0,0 +1,2 @@
1
+ declare module "get-stream"
2
+ declare module "is-stream"