tencentcloud-sdk-python-vclm 3.0.1257__py2.py3-none-any.whl → 3.0.1278__py2.py3-none-any.whl
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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/vclm/v20240523/models.py +872 -84
- tencentcloud/vclm/v20240523/vclm_client.py +60 -54
- {tencentcloud_sdk_python_vclm-3.0.1257.dist-info → tencentcloud_sdk_python_vclm-3.0.1278.dist-info}/METADATA +3 -3
- tencentcloud_sdk_python_vclm-3.0.1278.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_vclm-3.0.1257.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_vclm-3.0.1257.dist-info → tencentcloud_sdk_python_vclm-3.0.1278.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_vclm-3.0.1257.dist-info → tencentcloud_sdk_python_vclm-3.0.1278.dist-info}/top_level.txt +0 -0
@@ -41,6 +41,10 @@ class AsrTimestamps(AbstractModel):
|
|
41
41
|
|
42
42
|
@property
|
43
43
|
def Text(self):
|
44
|
+
"""文本片段
|
45
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
46
|
+
:rtype: str
|
47
|
+
"""
|
44
48
|
return self._Text
|
45
49
|
|
46
50
|
@Text.setter
|
@@ -49,6 +53,10 @@ class AsrTimestamps(AbstractModel):
|
|
49
53
|
|
50
54
|
@property
|
51
55
|
def StartMs(self):
|
56
|
+
"""开始时间
|
57
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
58
|
+
:rtype: int
|
59
|
+
"""
|
52
60
|
return self._StartMs
|
53
61
|
|
54
62
|
@StartMs.setter
|
@@ -57,6 +65,10 @@ class AsrTimestamps(AbstractModel):
|
|
57
65
|
|
58
66
|
@property
|
59
67
|
def EndMs(self):
|
68
|
+
"""结束时间
|
69
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
70
|
+
:rtype: int
|
71
|
+
"""
|
60
72
|
return self._EndMs
|
61
73
|
|
62
74
|
@EndMs.setter
|
@@ -78,6 +90,144 @@ class AsrTimestamps(AbstractModel):
|
|
78
90
|
|
79
91
|
|
80
92
|
|
93
|
+
class CheckAnimateImageJobRequest(AbstractModel):
|
94
|
+
"""CheckAnimateImageJob请求参数结构体
|
95
|
+
|
96
|
+
"""
|
97
|
+
|
98
|
+
def __init__(self):
|
99
|
+
r"""
|
100
|
+
:param _TemplateId: 动作模板ID。
|
101
|
+
:type TemplateId: str
|
102
|
+
:param _ImageUrl: 图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
103
|
+
图片分辨率:长边分辨率范围【192,4096】;
|
104
|
+
图片大小:不超过10M;
|
105
|
+
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
106
|
+
:type ImageUrl: str
|
107
|
+
:param _ImageBase64: 图片base64数据。
|
108
|
+
图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
109
|
+
图片分辨率:长边分辨率范围【192,4096】;
|
110
|
+
图片大小:不超过10M;
|
111
|
+
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
112
|
+
:type ImageBase64: str
|
113
|
+
:param _EnableBodyJoins: 是否检测输入图人体12个身体部位(头部、颈部、右肩、右肘、右腕、左肩、左肘、左腕、右髋、左髋,、左膝、右膝)。默认不检测。
|
114
|
+
:type EnableBodyJoins: bool
|
115
|
+
"""
|
116
|
+
self._TemplateId = None
|
117
|
+
self._ImageUrl = None
|
118
|
+
self._ImageBase64 = None
|
119
|
+
self._EnableBodyJoins = None
|
120
|
+
|
121
|
+
@property
|
122
|
+
def TemplateId(self):
|
123
|
+
"""动作模板ID。
|
124
|
+
:rtype: str
|
125
|
+
"""
|
126
|
+
return self._TemplateId
|
127
|
+
|
128
|
+
@TemplateId.setter
|
129
|
+
def TemplateId(self, TemplateId):
|
130
|
+
self._TemplateId = TemplateId
|
131
|
+
|
132
|
+
@property
|
133
|
+
def ImageUrl(self):
|
134
|
+
"""图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
135
|
+
图片分辨率:长边分辨率范围【192,4096】;
|
136
|
+
图片大小:不超过10M;
|
137
|
+
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._ImageUrl
|
141
|
+
|
142
|
+
@ImageUrl.setter
|
143
|
+
def ImageUrl(self, ImageUrl):
|
144
|
+
self._ImageUrl = ImageUrl
|
145
|
+
|
146
|
+
@property
|
147
|
+
def ImageBase64(self):
|
148
|
+
"""图片base64数据。
|
149
|
+
图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
150
|
+
图片分辨率:长边分辨率范围【192,4096】;
|
151
|
+
图片大小:不超过10M;
|
152
|
+
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
153
|
+
:rtype: str
|
154
|
+
"""
|
155
|
+
return self._ImageBase64
|
156
|
+
|
157
|
+
@ImageBase64.setter
|
158
|
+
def ImageBase64(self, ImageBase64):
|
159
|
+
self._ImageBase64 = ImageBase64
|
160
|
+
|
161
|
+
@property
|
162
|
+
def EnableBodyJoins(self):
|
163
|
+
"""是否检测输入图人体12个身体部位(头部、颈部、右肩、右肘、右腕、左肩、左肘、左腕、右髋、左髋,、左膝、右膝)。默认不检测。
|
164
|
+
:rtype: bool
|
165
|
+
"""
|
166
|
+
return self._EnableBodyJoins
|
167
|
+
|
168
|
+
@EnableBodyJoins.setter
|
169
|
+
def EnableBodyJoins(self, EnableBodyJoins):
|
170
|
+
self._EnableBodyJoins = EnableBodyJoins
|
171
|
+
|
172
|
+
|
173
|
+
def _deserialize(self, params):
|
174
|
+
self._TemplateId = params.get("TemplateId")
|
175
|
+
self._ImageUrl = params.get("ImageUrl")
|
176
|
+
self._ImageBase64 = params.get("ImageBase64")
|
177
|
+
self._EnableBodyJoins = params.get("EnableBodyJoins")
|
178
|
+
memeber_set = set(params.keys())
|
179
|
+
for name, value in vars(self).items():
|
180
|
+
property_name = name[1:]
|
181
|
+
if property_name in memeber_set:
|
182
|
+
memeber_set.remove(property_name)
|
183
|
+
if len(memeber_set) > 0:
|
184
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
class CheckAnimateImageJobResponse(AbstractModel):
|
189
|
+
"""CheckAnimateImageJob返回参数结构体
|
190
|
+
|
191
|
+
"""
|
192
|
+
|
193
|
+
def __init__(self):
|
194
|
+
r"""
|
195
|
+
:param _CheckPass: 输入图是否通过校验。
|
196
|
+
:type CheckPass: bool
|
197
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
198
|
+
:type RequestId: str
|
199
|
+
"""
|
200
|
+
self._CheckPass = None
|
201
|
+
self._RequestId = None
|
202
|
+
|
203
|
+
@property
|
204
|
+
def CheckPass(self):
|
205
|
+
"""输入图是否通过校验。
|
206
|
+
:rtype: bool
|
207
|
+
"""
|
208
|
+
return self._CheckPass
|
209
|
+
|
210
|
+
@CheckPass.setter
|
211
|
+
def CheckPass(self, CheckPass):
|
212
|
+
self._CheckPass = CheckPass
|
213
|
+
|
214
|
+
@property
|
215
|
+
def RequestId(self):
|
216
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
217
|
+
:rtype: str
|
218
|
+
"""
|
219
|
+
return self._RequestId
|
220
|
+
|
221
|
+
@RequestId.setter
|
222
|
+
def RequestId(self, RequestId):
|
223
|
+
self._RequestId = RequestId
|
224
|
+
|
225
|
+
|
226
|
+
def _deserialize(self, params):
|
227
|
+
self._CheckPass = params.get("CheckPass")
|
228
|
+
self._RequestId = params.get("RequestId")
|
229
|
+
|
230
|
+
|
81
231
|
class ConfirmVideoTranslateJobRequest(AbstractModel):
|
82
232
|
"""ConfirmVideoTranslateJob请求参数结构体
|
83
233
|
|
@@ -85,7 +235,7 @@ class ConfirmVideoTranslateJobRequest(AbstractModel):
|
|
85
235
|
|
86
236
|
def __init__(self):
|
87
237
|
r"""
|
88
|
-
:param _JobId:
|
238
|
+
:param _JobId: 视频转译任务 ID
|
89
239
|
:type JobId: str
|
90
240
|
:param _TranslateResults: 待确认文本
|
91
241
|
:type TranslateResults: list of TranslateResult
|
@@ -95,6 +245,9 @@ class ConfirmVideoTranslateJobRequest(AbstractModel):
|
|
95
245
|
|
96
246
|
@property
|
97
247
|
def JobId(self):
|
248
|
+
"""视频转译任务 ID
|
249
|
+
:rtype: str
|
250
|
+
"""
|
98
251
|
return self._JobId
|
99
252
|
|
100
253
|
@JobId.setter
|
@@ -103,6 +256,9 @@ class ConfirmVideoTranslateJobRequest(AbstractModel):
|
|
103
256
|
|
104
257
|
@property
|
105
258
|
def TranslateResults(self):
|
259
|
+
"""待确认文本
|
260
|
+
:rtype: list of TranslateResult
|
261
|
+
"""
|
106
262
|
return self._TranslateResults
|
107
263
|
|
108
264
|
@TranslateResults.setter
|
@@ -135,16 +291,18 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
135
291
|
|
136
292
|
def __init__(self):
|
137
293
|
r"""
|
138
|
-
:param _JobId:
|
294
|
+
:param _JobId: 视频转译任务 ID。
|
139
295
|
:type JobId: str
|
140
|
-
:param _TaskId:
|
296
|
+
:param _TaskId: 音频转译任务 ID。
|
141
297
|
:type TaskId: str
|
142
|
-
:param _SessionId:
|
298
|
+
:param _SessionId: 音频转译结果确认 session。
|
143
299
|
:type SessionId: str
|
144
|
-
:param _Status:
|
300
|
+
:param _Status: 任务状态。0:任务初始化。1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
|
145
301
|
:type Status: int
|
146
|
-
:param _Message:
|
302
|
+
:param _Message: 视频转译任务信息。
|
147
303
|
:type Message: str
|
304
|
+
:param _JobStatus: 任务状态。0:任务初始化。1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
|
305
|
+
:type JobStatus: int
|
148
306
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
149
307
|
:type RequestId: str
|
150
308
|
"""
|
@@ -153,10 +311,14 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
153
311
|
self._SessionId = None
|
154
312
|
self._Status = None
|
155
313
|
self._Message = None
|
314
|
+
self._JobStatus = None
|
156
315
|
self._RequestId = None
|
157
316
|
|
158
317
|
@property
|
159
318
|
def JobId(self):
|
319
|
+
"""视频转译任务 ID。
|
320
|
+
:rtype: str
|
321
|
+
"""
|
160
322
|
return self._JobId
|
161
323
|
|
162
324
|
@JobId.setter
|
@@ -165,38 +327,80 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
165
327
|
|
166
328
|
@property
|
167
329
|
def TaskId(self):
|
330
|
+
warnings.warn("parameter `TaskId` is deprecated", DeprecationWarning)
|
331
|
+
|
332
|
+
"""音频转译任务 ID。
|
333
|
+
:rtype: str
|
334
|
+
"""
|
168
335
|
return self._TaskId
|
169
336
|
|
170
337
|
@TaskId.setter
|
171
338
|
def TaskId(self, TaskId):
|
339
|
+
warnings.warn("parameter `TaskId` is deprecated", DeprecationWarning)
|
340
|
+
|
172
341
|
self._TaskId = TaskId
|
173
342
|
|
174
343
|
@property
|
175
344
|
def SessionId(self):
|
345
|
+
warnings.warn("parameter `SessionId` is deprecated", DeprecationWarning)
|
346
|
+
|
347
|
+
"""音频转译结果确认 session。
|
348
|
+
:rtype: str
|
349
|
+
"""
|
176
350
|
return self._SessionId
|
177
351
|
|
178
352
|
@SessionId.setter
|
179
353
|
def SessionId(self, SessionId):
|
354
|
+
warnings.warn("parameter `SessionId` is deprecated", DeprecationWarning)
|
355
|
+
|
180
356
|
self._SessionId = SessionId
|
181
357
|
|
182
358
|
@property
|
183
359
|
def Status(self):
|
360
|
+
warnings.warn("parameter `Status` is deprecated", DeprecationWarning)
|
361
|
+
|
362
|
+
"""任务状态。0:任务初始化。1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
|
363
|
+
:rtype: int
|
364
|
+
"""
|
184
365
|
return self._Status
|
185
366
|
|
186
367
|
@Status.setter
|
187
368
|
def Status(self, Status):
|
369
|
+
warnings.warn("parameter `Status` is deprecated", DeprecationWarning)
|
370
|
+
|
188
371
|
self._Status = Status
|
189
372
|
|
190
373
|
@property
|
191
374
|
def Message(self):
|
375
|
+
warnings.warn("parameter `Message` is deprecated", DeprecationWarning)
|
376
|
+
|
377
|
+
"""视频转译任务信息。
|
378
|
+
:rtype: str
|
379
|
+
"""
|
192
380
|
return self._Message
|
193
381
|
|
194
382
|
@Message.setter
|
195
383
|
def Message(self, Message):
|
384
|
+
warnings.warn("parameter `Message` is deprecated", DeprecationWarning)
|
385
|
+
|
196
386
|
self._Message = Message
|
197
387
|
|
388
|
+
@property
|
389
|
+
def JobStatus(self):
|
390
|
+
"""任务状态。0:任务初始化。1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
|
391
|
+
:rtype: int
|
392
|
+
"""
|
393
|
+
return self._JobStatus
|
394
|
+
|
395
|
+
@JobStatus.setter
|
396
|
+
def JobStatus(self, JobStatus):
|
397
|
+
self._JobStatus = JobStatus
|
398
|
+
|
198
399
|
@property
|
199
400
|
def RequestId(self):
|
401
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
402
|
+
:rtype: str
|
403
|
+
"""
|
200
404
|
return self._RequestId
|
201
405
|
|
202
406
|
@RequestId.setter
|
@@ -210,6 +414,7 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
210
414
|
self._SessionId = params.get("SessionId")
|
211
415
|
self._Status = params.get("Status")
|
212
416
|
self._Message = params.get("Message")
|
417
|
+
self._JobStatus = params.get("JobStatus")
|
213
418
|
self._RequestId = params.get("RequestId")
|
214
419
|
|
215
420
|
|
@@ -227,6 +432,9 @@ class DescribeImageAnimateJobRequest(AbstractModel):
|
|
227
432
|
|
228
433
|
@property
|
229
434
|
def JobId(self):
|
435
|
+
"""任务ID。
|
436
|
+
:rtype: str
|
437
|
+
"""
|
230
438
|
return self._JobId
|
231
439
|
|
232
440
|
@JobId.setter
|
@@ -275,6 +483,9 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
275
483
|
|
276
484
|
@property
|
277
485
|
def Status(self):
|
486
|
+
"""任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
487
|
+
:rtype: str
|
488
|
+
"""
|
278
489
|
return self._Status
|
279
490
|
|
280
491
|
@Status.setter
|
@@ -283,6 +494,9 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
283
494
|
|
284
495
|
@property
|
285
496
|
def ErrorCode(self):
|
497
|
+
"""错误码。
|
498
|
+
:rtype: str
|
499
|
+
"""
|
286
500
|
return self._ErrorCode
|
287
501
|
|
288
502
|
@ErrorCode.setter
|
@@ -291,6 +505,9 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
291
505
|
|
292
506
|
@property
|
293
507
|
def ErrorMessage(self):
|
508
|
+
"""错误信息。
|
509
|
+
:rtype: str
|
510
|
+
"""
|
294
511
|
return self._ErrorMessage
|
295
512
|
|
296
513
|
@ErrorMessage.setter
|
@@ -299,6 +516,9 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
299
516
|
|
300
517
|
@property
|
301
518
|
def ResultVideoUrl(self):
|
519
|
+
"""结果视频URL。有效期 24 小时。
|
520
|
+
:rtype: str
|
521
|
+
"""
|
302
522
|
return self._ResultVideoUrl
|
303
523
|
|
304
524
|
@ResultVideoUrl.setter
|
@@ -307,6 +527,9 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
307
527
|
|
308
528
|
@property
|
309
529
|
def MaskVideoUrl(self):
|
530
|
+
"""掩码视频链接
|
531
|
+
:rtype: str
|
532
|
+
"""
|
310
533
|
return self._MaskVideoUrl
|
311
534
|
|
312
535
|
@MaskVideoUrl.setter
|
@@ -315,6 +538,9 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
315
538
|
|
316
539
|
@property
|
317
540
|
def RequestId(self):
|
541
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
542
|
+
:rtype: str
|
543
|
+
"""
|
318
544
|
return self._RequestId
|
319
545
|
|
320
546
|
@RequestId.setter
|
@@ -345,6 +571,9 @@ class DescribePortraitSingJobRequest(AbstractModel):
|
|
345
571
|
|
346
572
|
@property
|
347
573
|
def JobId(self):
|
574
|
+
"""任务ID
|
575
|
+
:rtype: str
|
576
|
+
"""
|
348
577
|
return self._JobId
|
349
578
|
|
350
579
|
@JobId.setter
|
@@ -381,12 +610,11 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
381
610
|
:type StatusCode: str
|
382
611
|
:param _StatusMsg: 任务状态信息
|
383
612
|
:type StatusMsg: str
|
384
|
-
:param _ErrorCode:
|
613
|
+
:param _ErrorCode: 任务执行错误码。当任务状态不为FAIL时,该值为""。
|
385
614
|
:type ErrorCode: str
|
386
|
-
:param _ErrorMessage:
|
615
|
+
:param _ErrorMessage: 任务执行错误信息。当任务状态不为FAIL时,该值为""。
|
387
616
|
:type ErrorMessage: str
|
388
|
-
:param _ResultVideoUrl: 生成视频的URL
|
389
|
-
有效期24小时
|
617
|
+
:param _ResultVideoUrl: 生成视频的URL地址。有效期24小时。
|
390
618
|
:type ResultVideoUrl: str
|
391
619
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
392
620
|
:type RequestId: str
|
@@ -401,6 +629,9 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
401
629
|
|
402
630
|
@property
|
403
631
|
def JobId(self):
|
632
|
+
"""任务ID
|
633
|
+
:rtype: str
|
634
|
+
"""
|
404
635
|
return self._JobId
|
405
636
|
|
406
637
|
@JobId.setter
|
@@ -409,6 +640,13 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
409
640
|
|
410
641
|
@property
|
411
642
|
def StatusCode(self):
|
643
|
+
"""任务状态码
|
644
|
+
—RUN:处理中
|
645
|
+
—FAIL:处理失败
|
646
|
+
—STOP:处理终止
|
647
|
+
—DONE:处理完成
|
648
|
+
:rtype: str
|
649
|
+
"""
|
412
650
|
return self._StatusCode
|
413
651
|
|
414
652
|
@StatusCode.setter
|
@@ -417,6 +655,9 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
417
655
|
|
418
656
|
@property
|
419
657
|
def StatusMsg(self):
|
658
|
+
"""任务状态信息
|
659
|
+
:rtype: str
|
660
|
+
"""
|
420
661
|
return self._StatusMsg
|
421
662
|
|
422
663
|
@StatusMsg.setter
|
@@ -425,6 +666,9 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
425
666
|
|
426
667
|
@property
|
427
668
|
def ErrorCode(self):
|
669
|
+
"""任务执行错误码。当任务状态不为FAIL时,该值为""。
|
670
|
+
:rtype: str
|
671
|
+
"""
|
428
672
|
return self._ErrorCode
|
429
673
|
|
430
674
|
@ErrorCode.setter
|
@@ -433,6 +677,9 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
433
677
|
|
434
678
|
@property
|
435
679
|
def ErrorMessage(self):
|
680
|
+
"""任务执行错误信息。当任务状态不为FAIL时,该值为""。
|
681
|
+
:rtype: str
|
682
|
+
"""
|
436
683
|
return self._ErrorMessage
|
437
684
|
|
438
685
|
@ErrorMessage.setter
|
@@ -441,6 +688,9 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
441
688
|
|
442
689
|
@property
|
443
690
|
def ResultVideoUrl(self):
|
691
|
+
"""生成视频的URL地址。有效期24小时。
|
692
|
+
:rtype: str
|
693
|
+
"""
|
444
694
|
return self._ResultVideoUrl
|
445
695
|
|
446
696
|
@ResultVideoUrl.setter
|
@@ -449,6 +699,9 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
449
699
|
|
450
700
|
@property
|
451
701
|
def RequestId(self):
|
702
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
703
|
+
:rtype: str
|
704
|
+
"""
|
452
705
|
return self._RequestId
|
453
706
|
|
454
707
|
@RequestId.setter
|
@@ -480,6 +733,9 @@ class DescribeVideoStylizationJobRequest(AbstractModel):
|
|
480
733
|
|
481
734
|
@property
|
482
735
|
def JobId(self):
|
736
|
+
"""任务ID
|
737
|
+
:rtype: str
|
738
|
+
"""
|
483
739
|
return self._JobId
|
484
740
|
|
485
741
|
@JobId.setter
|
@@ -508,14 +764,19 @@ class DescribeVideoStylizationJobResponse(AbstractModel):
|
|
508
764
|
r"""
|
509
765
|
:param _JobId: 任务ID。
|
510
766
|
:type JobId: str
|
511
|
-
:param _StatusCode:
|
512
|
-
JobInit: "初始化中"
|
513
|
-
JobModerationFailed: "审核失败"
|
514
|
-
JobRunning: "处理中"
|
515
|
-
JobFailed: "处理失败"
|
767
|
+
:param _StatusCode: 任务状态码。取值说明:
|
768
|
+
JobInit: "初始化中";
|
769
|
+
JobModerationFailed: "审核失败";
|
770
|
+
JobRunning: "处理中";
|
771
|
+
JobFailed: "处理失败";
|
516
772
|
JobSuccess: "处理完成"。
|
517
773
|
:type StatusCode: str
|
518
|
-
:param _StatusMsg:
|
774
|
+
:param _StatusMsg: 任务状态描述。取值说明:
|
775
|
+
JobInit: "初始化中";
|
776
|
+
JobModerationFailed: "审核失败";
|
777
|
+
JobRunning: "处理中";
|
778
|
+
JobFailed: "处理失败";
|
779
|
+
JobSuccess: "处理完成"。
|
519
780
|
:type StatusMsg: str
|
520
781
|
:param _ResultVideoUrl: 处理结果视频Url。URL有效期为24小时。
|
521
782
|
:type ResultVideoUrl: str
|
@@ -530,6 +791,9 @@ JobSuccess: "处理完成"。
|
|
530
791
|
|
531
792
|
@property
|
532
793
|
def JobId(self):
|
794
|
+
"""任务ID。
|
795
|
+
:rtype: str
|
796
|
+
"""
|
533
797
|
return self._JobId
|
534
798
|
|
535
799
|
@JobId.setter
|
@@ -538,6 +802,14 @@ JobSuccess: "处理完成"。
|
|
538
802
|
|
539
803
|
@property
|
540
804
|
def StatusCode(self):
|
805
|
+
"""任务状态码。取值说明:
|
806
|
+
JobInit: "初始化中";
|
807
|
+
JobModerationFailed: "审核失败";
|
808
|
+
JobRunning: "处理中";
|
809
|
+
JobFailed: "处理失败";
|
810
|
+
JobSuccess: "处理完成"。
|
811
|
+
:rtype: str
|
812
|
+
"""
|
541
813
|
return self._StatusCode
|
542
814
|
|
543
815
|
@StatusCode.setter
|
@@ -546,6 +818,14 @@ JobSuccess: "处理完成"。
|
|
546
818
|
|
547
819
|
@property
|
548
820
|
def StatusMsg(self):
|
821
|
+
"""任务状态描述。取值说明:
|
822
|
+
JobInit: "初始化中";
|
823
|
+
JobModerationFailed: "审核失败";
|
824
|
+
JobRunning: "处理中";
|
825
|
+
JobFailed: "处理失败";
|
826
|
+
JobSuccess: "处理完成"。
|
827
|
+
:rtype: str
|
828
|
+
"""
|
549
829
|
return self._StatusMsg
|
550
830
|
|
551
831
|
@StatusMsg.setter
|
@@ -554,6 +834,9 @@ JobSuccess: "处理完成"。
|
|
554
834
|
|
555
835
|
@property
|
556
836
|
def ResultVideoUrl(self):
|
837
|
+
"""处理结果视频Url。URL有效期为24小时。
|
838
|
+
:rtype: str
|
839
|
+
"""
|
557
840
|
return self._ResultVideoUrl
|
558
841
|
|
559
842
|
@ResultVideoUrl.setter
|
@@ -562,6 +845,9 @@ JobSuccess: "处理完成"。
|
|
562
845
|
|
563
846
|
@property
|
564
847
|
def RequestId(self):
|
848
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
849
|
+
:rtype: str
|
850
|
+
"""
|
565
851
|
return self._RequestId
|
566
852
|
|
567
853
|
@RequestId.setter
|
@@ -591,6 +877,9 @@ class DescribeVideoTranslateJobRequest(AbstractModel):
|
|
591
877
|
|
592
878
|
@property
|
593
879
|
def JobId(self):
|
880
|
+
"""视频转译任务 ID
|
881
|
+
:rtype: str
|
882
|
+
"""
|
594
883
|
return self._JobId
|
595
884
|
|
596
885
|
@JobId.setter
|
@@ -617,31 +906,32 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
617
906
|
|
618
907
|
def __init__(self):
|
619
908
|
r"""
|
620
|
-
:param _JobStatus: 任务状态。 1
|
909
|
+
:param _JobStatus: 任务状态。0: 任务初始化。 1:音频转译中。 2:音频转译失败。 3:音频转译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频转译中。 7:视频转译失败。 8:视频转译成功。
|
621
910
|
:type JobStatus: int
|
622
|
-
:param _JobErrorCode:
|
911
|
+
:param _JobErrorCode: 本次任务出错的错误码,用来定位问题原因。
|
623
912
|
:type JobErrorCode: str
|
624
|
-
:param _JobErrorMsg:
|
913
|
+
:param _JobErrorMsg: 任务错误信息,错误码出现的原因。
|
625
914
|
:type JobErrorMsg: str
|
626
|
-
:param _ResultVideoUrl:
|
915
|
+
:param _ResultVideoUrl: 视频转译生成结果视频url,有效期1天。当JobStatus为8时,该字段返回视频Url。
|
627
916
|
:type ResultVideoUrl: str
|
628
|
-
:param _TranslateResults:
|
917
|
+
:param _TranslateResults: 音频转译后分句翻译内容,包含分句起始时间、源识别文本以及翻译后文本。
|
918
|
+
当JobStatus为3、4时,该字段返回分句翻译数据。
|
629
919
|
:type TranslateResults: list of TranslateResult
|
630
|
-
:param _JobConfirm: 是否需要确认翻译结果。0:不需要,1
|
920
|
+
:param _JobConfirm: 是否需要确认翻译结果。0:不需要,1:需要。
|
631
921
|
:type JobConfirm: int
|
632
|
-
:param _JobAudioTaskId: 音频任务 ID
|
922
|
+
:param _JobAudioTaskId: 音频任务 ID。
|
633
923
|
:type JobAudioTaskId: str
|
634
|
-
:param _JobVideoModerationId: 视频审核任务ID
|
924
|
+
:param _JobVideoModerationId: 视频审核任务ID。
|
635
925
|
:type JobVideoModerationId: str
|
636
|
-
:param _JobAudioModerationId: 音频审核任务 ID
|
926
|
+
:param _JobAudioModerationId: 音频审核任务 ID。
|
637
927
|
:type JobAudioModerationId: str
|
638
|
-
:param _JobVideoId: 口型驱动任务 ID
|
928
|
+
:param _JobVideoId: 口型驱动任务 ID。
|
639
929
|
:type JobVideoId: str
|
640
|
-
:param _OriginalVideoUrl: 视频素材原始 URL
|
930
|
+
:param _OriginalVideoUrl: 视频素材原始 URL。
|
641
931
|
:type OriginalVideoUrl: str
|
642
|
-
:param _AsrTimestamps:
|
932
|
+
:param _AsrTimestamps: 文本片段及其时间戳。
|
643
933
|
:type AsrTimestamps: list of AsrTimestamps
|
644
|
-
:param _JobSubmitReqId:
|
934
|
+
:param _JobSubmitReqId: 提交视频转译任务时的 requestId。
|
645
935
|
:type JobSubmitReqId: str
|
646
936
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
647
937
|
:type RequestId: str
|
@@ -663,6 +953,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
663
953
|
|
664
954
|
@property
|
665
955
|
def JobStatus(self):
|
956
|
+
"""任务状态。0: 任务初始化。 1:音频转译中。 2:音频转译失败。 3:音频转译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频转译中。 7:视频转译失败。 8:视频转译成功。
|
957
|
+
:rtype: int
|
958
|
+
"""
|
666
959
|
return self._JobStatus
|
667
960
|
|
668
961
|
@JobStatus.setter
|
@@ -671,6 +964,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
671
964
|
|
672
965
|
@property
|
673
966
|
def JobErrorCode(self):
|
967
|
+
"""本次任务出错的错误码,用来定位问题原因。
|
968
|
+
:rtype: str
|
969
|
+
"""
|
674
970
|
return self._JobErrorCode
|
675
971
|
|
676
972
|
@JobErrorCode.setter
|
@@ -679,6 +975,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
679
975
|
|
680
976
|
@property
|
681
977
|
def JobErrorMsg(self):
|
978
|
+
"""任务错误信息,错误码出现的原因。
|
979
|
+
:rtype: str
|
980
|
+
"""
|
682
981
|
return self._JobErrorMsg
|
683
982
|
|
684
983
|
@JobErrorMsg.setter
|
@@ -687,6 +986,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
687
986
|
|
688
987
|
@property
|
689
988
|
def ResultVideoUrl(self):
|
989
|
+
"""视频转译生成结果视频url,有效期1天。当JobStatus为8时,该字段返回视频Url。
|
990
|
+
:rtype: str
|
991
|
+
"""
|
690
992
|
return self._ResultVideoUrl
|
691
993
|
|
692
994
|
@ResultVideoUrl.setter
|
@@ -695,6 +997,10 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
695
997
|
|
696
998
|
@property
|
697
999
|
def TranslateResults(self):
|
1000
|
+
"""音频转译后分句翻译内容,包含分句起始时间、源识别文本以及翻译后文本。
|
1001
|
+
当JobStatus为3、4时,该字段返回分句翻译数据。
|
1002
|
+
:rtype: list of TranslateResult
|
1003
|
+
"""
|
698
1004
|
return self._TranslateResults
|
699
1005
|
|
700
1006
|
@TranslateResults.setter
|
@@ -703,54 +1009,99 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
703
1009
|
|
704
1010
|
@property
|
705
1011
|
def JobConfirm(self):
|
1012
|
+
warnings.warn("parameter `JobConfirm` is deprecated", DeprecationWarning)
|
1013
|
+
|
1014
|
+
"""是否需要确认翻译结果。0:不需要,1:需要。
|
1015
|
+
:rtype: int
|
1016
|
+
"""
|
706
1017
|
return self._JobConfirm
|
707
1018
|
|
708
1019
|
@JobConfirm.setter
|
709
1020
|
def JobConfirm(self, JobConfirm):
|
1021
|
+
warnings.warn("parameter `JobConfirm` is deprecated", DeprecationWarning)
|
1022
|
+
|
710
1023
|
self._JobConfirm = JobConfirm
|
711
1024
|
|
712
1025
|
@property
|
713
1026
|
def JobAudioTaskId(self):
|
1027
|
+
warnings.warn("parameter `JobAudioTaskId` is deprecated", DeprecationWarning)
|
1028
|
+
|
1029
|
+
"""音频任务 ID。
|
1030
|
+
:rtype: str
|
1031
|
+
"""
|
714
1032
|
return self._JobAudioTaskId
|
715
1033
|
|
716
1034
|
@JobAudioTaskId.setter
|
717
1035
|
def JobAudioTaskId(self, JobAudioTaskId):
|
1036
|
+
warnings.warn("parameter `JobAudioTaskId` is deprecated", DeprecationWarning)
|
1037
|
+
|
718
1038
|
self._JobAudioTaskId = JobAudioTaskId
|
719
1039
|
|
720
1040
|
@property
|
721
1041
|
def JobVideoModerationId(self):
|
1042
|
+
warnings.warn("parameter `JobVideoModerationId` is deprecated", DeprecationWarning)
|
1043
|
+
|
1044
|
+
"""视频审核任务ID。
|
1045
|
+
:rtype: str
|
1046
|
+
"""
|
722
1047
|
return self._JobVideoModerationId
|
723
1048
|
|
724
1049
|
@JobVideoModerationId.setter
|
725
1050
|
def JobVideoModerationId(self, JobVideoModerationId):
|
1051
|
+
warnings.warn("parameter `JobVideoModerationId` is deprecated", DeprecationWarning)
|
1052
|
+
|
726
1053
|
self._JobVideoModerationId = JobVideoModerationId
|
727
1054
|
|
728
1055
|
@property
|
729
1056
|
def JobAudioModerationId(self):
|
1057
|
+
warnings.warn("parameter `JobAudioModerationId` is deprecated", DeprecationWarning)
|
1058
|
+
|
1059
|
+
"""音频审核任务 ID。
|
1060
|
+
:rtype: str
|
1061
|
+
"""
|
730
1062
|
return self._JobAudioModerationId
|
731
1063
|
|
732
1064
|
@JobAudioModerationId.setter
|
733
1065
|
def JobAudioModerationId(self, JobAudioModerationId):
|
1066
|
+
warnings.warn("parameter `JobAudioModerationId` is deprecated", DeprecationWarning)
|
1067
|
+
|
734
1068
|
self._JobAudioModerationId = JobAudioModerationId
|
735
1069
|
|
736
1070
|
@property
|
737
1071
|
def JobVideoId(self):
|
1072
|
+
warnings.warn("parameter `JobVideoId` is deprecated", DeprecationWarning)
|
1073
|
+
|
1074
|
+
"""口型驱动任务 ID。
|
1075
|
+
:rtype: str
|
1076
|
+
"""
|
738
1077
|
return self._JobVideoId
|
739
1078
|
|
740
1079
|
@JobVideoId.setter
|
741
1080
|
def JobVideoId(self, JobVideoId):
|
1081
|
+
warnings.warn("parameter `JobVideoId` is deprecated", DeprecationWarning)
|
1082
|
+
|
742
1083
|
self._JobVideoId = JobVideoId
|
743
1084
|
|
744
1085
|
@property
|
745
1086
|
def OriginalVideoUrl(self):
|
1087
|
+
warnings.warn("parameter `OriginalVideoUrl` is deprecated", DeprecationWarning)
|
1088
|
+
|
1089
|
+
"""视频素材原始 URL。
|
1090
|
+
:rtype: str
|
1091
|
+
"""
|
746
1092
|
return self._OriginalVideoUrl
|
747
1093
|
|
748
1094
|
@OriginalVideoUrl.setter
|
749
1095
|
def OriginalVideoUrl(self, OriginalVideoUrl):
|
1096
|
+
warnings.warn("parameter `OriginalVideoUrl` is deprecated", DeprecationWarning)
|
1097
|
+
|
750
1098
|
self._OriginalVideoUrl = OriginalVideoUrl
|
751
1099
|
|
752
1100
|
@property
|
753
1101
|
def AsrTimestamps(self):
|
1102
|
+
"""文本片段及其时间戳。
|
1103
|
+
:rtype: list of AsrTimestamps
|
1104
|
+
"""
|
754
1105
|
return self._AsrTimestamps
|
755
1106
|
|
756
1107
|
@AsrTimestamps.setter
|
@@ -759,14 +1110,24 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
759
1110
|
|
760
1111
|
@property
|
761
1112
|
def JobSubmitReqId(self):
|
1113
|
+
warnings.warn("parameter `JobSubmitReqId` is deprecated", DeprecationWarning)
|
1114
|
+
|
1115
|
+
"""提交视频转译任务时的 requestId。
|
1116
|
+
:rtype: str
|
1117
|
+
"""
|
762
1118
|
return self._JobSubmitReqId
|
763
1119
|
|
764
1120
|
@JobSubmitReqId.setter
|
765
1121
|
def JobSubmitReqId(self, JobSubmitReqId):
|
1122
|
+
warnings.warn("parameter `JobSubmitReqId` is deprecated", DeprecationWarning)
|
1123
|
+
|
766
1124
|
self._JobSubmitReqId = JobSubmitReqId
|
767
1125
|
|
768
1126
|
@property
|
769
1127
|
def RequestId(self):
|
1128
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1129
|
+
:rtype: str
|
1130
|
+
"""
|
770
1131
|
return self._RequestId
|
771
1132
|
|
772
1133
|
@RequestId.setter
|
@@ -801,6 +1162,155 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
801
1162
|
self._RequestId = params.get("RequestId")
|
802
1163
|
|
803
1164
|
|
1165
|
+
class LogoParam(AbstractModel):
|
1166
|
+
"""logo参数
|
1167
|
+
|
1168
|
+
"""
|
1169
|
+
|
1170
|
+
def __init__(self):
|
1171
|
+
r"""
|
1172
|
+
:param _LogoUrl: 水印 Url
|
1173
|
+
:type LogoUrl: str
|
1174
|
+
:param _LogoImage: 水印 Base64,Url 和 Base64 二选一传入,如果都提供以 Url 为准
|
1175
|
+
:type LogoImage: str
|
1176
|
+
:param _LogoRect: 水印图片位于生成结果图中的坐标及宽高,将按照坐标对标识图片进行位置和大小的拉伸匹配。
|
1177
|
+
:type LogoRect: :class:`tencentcloud.vclm.v20240523.models.LogoRect`
|
1178
|
+
"""
|
1179
|
+
self._LogoUrl = None
|
1180
|
+
self._LogoImage = None
|
1181
|
+
self._LogoRect = None
|
1182
|
+
|
1183
|
+
@property
|
1184
|
+
def LogoUrl(self):
|
1185
|
+
"""水印 Url
|
1186
|
+
:rtype: str
|
1187
|
+
"""
|
1188
|
+
return self._LogoUrl
|
1189
|
+
|
1190
|
+
@LogoUrl.setter
|
1191
|
+
def LogoUrl(self, LogoUrl):
|
1192
|
+
self._LogoUrl = LogoUrl
|
1193
|
+
|
1194
|
+
@property
|
1195
|
+
def LogoImage(self):
|
1196
|
+
"""水印 Base64,Url 和 Base64 二选一传入,如果都提供以 Url 为准
|
1197
|
+
:rtype: str
|
1198
|
+
"""
|
1199
|
+
return self._LogoImage
|
1200
|
+
|
1201
|
+
@LogoImage.setter
|
1202
|
+
def LogoImage(self, LogoImage):
|
1203
|
+
self._LogoImage = LogoImage
|
1204
|
+
|
1205
|
+
@property
|
1206
|
+
def LogoRect(self):
|
1207
|
+
"""水印图片位于生成结果图中的坐标及宽高,将按照坐标对标识图片进行位置和大小的拉伸匹配。
|
1208
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.LogoRect`
|
1209
|
+
"""
|
1210
|
+
return self._LogoRect
|
1211
|
+
|
1212
|
+
@LogoRect.setter
|
1213
|
+
def LogoRect(self, LogoRect):
|
1214
|
+
self._LogoRect = LogoRect
|
1215
|
+
|
1216
|
+
|
1217
|
+
def _deserialize(self, params):
|
1218
|
+
self._LogoUrl = params.get("LogoUrl")
|
1219
|
+
self._LogoImage = params.get("LogoImage")
|
1220
|
+
if params.get("LogoRect") is not None:
|
1221
|
+
self._LogoRect = LogoRect()
|
1222
|
+
self._LogoRect._deserialize(params.get("LogoRect"))
|
1223
|
+
memeber_set = set(params.keys())
|
1224
|
+
for name, value in vars(self).items():
|
1225
|
+
property_name = name[1:]
|
1226
|
+
if property_name in memeber_set:
|
1227
|
+
memeber_set.remove(property_name)
|
1228
|
+
if len(memeber_set) > 0:
|
1229
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1230
|
+
|
1231
|
+
|
1232
|
+
|
1233
|
+
class LogoRect(AbstractModel):
|
1234
|
+
"""水印图输入框
|
1235
|
+
|
1236
|
+
"""
|
1237
|
+
|
1238
|
+
def __init__(self):
|
1239
|
+
r"""
|
1240
|
+
:param _X: 水印图框X坐标值。当值大于0时,坐标轴原点位于原图左侧,方向指右;当值小于0时,坐标轴原点位于原图右侧,方向指左。
|
1241
|
+
:type X: int
|
1242
|
+
:param _Y: 水印图框Y坐标值。当值大于0时,坐标轴原点位于原图上侧,方向指下;当值小于0时,坐标轴原点位于原图下侧,方向指上。
|
1243
|
+
:type Y: int
|
1244
|
+
:param _Width: 水印图框宽度。
|
1245
|
+
:type Width: int
|
1246
|
+
:param _Height: 水印图框高度。
|
1247
|
+
:type Height: int
|
1248
|
+
"""
|
1249
|
+
self._X = None
|
1250
|
+
self._Y = None
|
1251
|
+
self._Width = None
|
1252
|
+
self._Height = None
|
1253
|
+
|
1254
|
+
@property
|
1255
|
+
def X(self):
|
1256
|
+
"""水印图框X坐标值。当值大于0时,坐标轴原点位于原图左侧,方向指右;当值小于0时,坐标轴原点位于原图右侧,方向指左。
|
1257
|
+
:rtype: int
|
1258
|
+
"""
|
1259
|
+
return self._X
|
1260
|
+
|
1261
|
+
@X.setter
|
1262
|
+
def X(self, X):
|
1263
|
+
self._X = X
|
1264
|
+
|
1265
|
+
@property
|
1266
|
+
def Y(self):
|
1267
|
+
"""水印图框Y坐标值。当值大于0时,坐标轴原点位于原图上侧,方向指下;当值小于0时,坐标轴原点位于原图下侧,方向指上。
|
1268
|
+
:rtype: int
|
1269
|
+
"""
|
1270
|
+
return self._Y
|
1271
|
+
|
1272
|
+
@Y.setter
|
1273
|
+
def Y(self, Y):
|
1274
|
+
self._Y = Y
|
1275
|
+
|
1276
|
+
@property
|
1277
|
+
def Width(self):
|
1278
|
+
"""水印图框宽度。
|
1279
|
+
:rtype: int
|
1280
|
+
"""
|
1281
|
+
return self._Width
|
1282
|
+
|
1283
|
+
@Width.setter
|
1284
|
+
def Width(self, Width):
|
1285
|
+
self._Width = Width
|
1286
|
+
|
1287
|
+
@property
|
1288
|
+
def Height(self):
|
1289
|
+
"""水印图框高度。
|
1290
|
+
:rtype: int
|
1291
|
+
"""
|
1292
|
+
return self._Height
|
1293
|
+
|
1294
|
+
@Height.setter
|
1295
|
+
def Height(self, Height):
|
1296
|
+
self._Height = Height
|
1297
|
+
|
1298
|
+
|
1299
|
+
def _deserialize(self, params):
|
1300
|
+
self._X = params.get("X")
|
1301
|
+
self._Y = params.get("Y")
|
1302
|
+
self._Width = params.get("Width")
|
1303
|
+
self._Height = params.get("Height")
|
1304
|
+
memeber_set = set(params.keys())
|
1305
|
+
for name, value in vars(self).items():
|
1306
|
+
property_name = name[1:]
|
1307
|
+
if property_name in memeber_set:
|
1308
|
+
memeber_set.remove(property_name)
|
1309
|
+
if len(memeber_set) > 0:
|
1310
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1311
|
+
|
1312
|
+
|
1313
|
+
|
804
1314
|
class SubmitImageAnimateJobRequest(AbstractModel):
|
805
1315
|
"""SubmitImageAnimateJob请求参数结构体
|
806
1316
|
|
@@ -808,12 +1318,16 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
808
1318
|
|
809
1319
|
def __init__(self):
|
810
1320
|
r"""
|
811
|
-
:param _ImageUrl: 图片格式:支持PNG、JPG、JPEG格式;
|
812
|
-
|
1321
|
+
:param _ImageUrl: 图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
1322
|
+
图片分辨率:长边分辨率范围【192,4096】;
|
813
1323
|
图片大小:不超过10M;
|
814
1324
|
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
815
1325
|
:type ImageUrl: str
|
816
|
-
:param _ImageBase64: 图片base64
|
1326
|
+
:param _ImageBase64: 图片base64数据。
|
1327
|
+
图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
1328
|
+
图片分辨率:长边分辨率范围【192,4096】;
|
1329
|
+
图片大小:不超过10M;
|
1330
|
+
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
817
1331
|
:type ImageBase64: str
|
818
1332
|
:param _TemplateId: 动作模板ID。取值说明:ke3 科目三;tuziwu 兔子舞;huajiangwu 划桨舞。
|
819
1333
|
|
@@ -822,9 +1336,18 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
822
1336
|
:type EnableAudio: bool
|
823
1337
|
:param _EnableBodyJoins: 是否检测输入图人体12个身体部位(头部、颈部、右肩、右肘、右腕、左肩、左肘、左腕、右髋、左髋,、左膝、右膝)。默认不检测。
|
824
1338
|
:type EnableBodyJoins: bool
|
825
|
-
:param _EnableSegment:
|
1339
|
+
:param _EnableSegment: 最终视频是否保留原图的背景,默认不保留。
|
826
1340
|
|
827
1341
|
:type EnableSegment: bool
|
1342
|
+
:param _LogoAdd: 为生成视频添加标识的开关,默认为0。
|
1343
|
+
1:添加标识。
|
1344
|
+
0:不添加标识。
|
1345
|
+
其他数值:默认按1处理。
|
1346
|
+
建议您使用显著标识来提示,该视频是 AI 生成的视频。
|
1347
|
+
:type LogoAdd: int
|
1348
|
+
:param _LogoParam: 标识内容设置。
|
1349
|
+
默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
1350
|
+
:type LogoParam: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
|
828
1351
|
"""
|
829
1352
|
self._ImageUrl = None
|
830
1353
|
self._ImageBase64 = None
|
@@ -832,9 +1355,17 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
832
1355
|
self._EnableAudio = None
|
833
1356
|
self._EnableBodyJoins = None
|
834
1357
|
self._EnableSegment = None
|
1358
|
+
self._LogoAdd = None
|
1359
|
+
self._LogoParam = None
|
835
1360
|
|
836
1361
|
@property
|
837
1362
|
def ImageUrl(self):
|
1363
|
+
"""图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
1364
|
+
图片分辨率:长边分辨率范围【192,4096】;
|
1365
|
+
图片大小:不超过10M;
|
1366
|
+
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
1367
|
+
:rtype: str
|
1368
|
+
"""
|
838
1369
|
return self._ImageUrl
|
839
1370
|
|
840
1371
|
@ImageUrl.setter
|
@@ -843,6 +1374,13 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
843
1374
|
|
844
1375
|
@property
|
845
1376
|
def ImageBase64(self):
|
1377
|
+
"""图片base64数据。
|
1378
|
+
图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
1379
|
+
图片分辨率:长边分辨率范围【192,4096】;
|
1380
|
+
图片大小:不超过10M;
|
1381
|
+
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
1382
|
+
:rtype: str
|
1383
|
+
"""
|
846
1384
|
return self._ImageBase64
|
847
1385
|
|
848
1386
|
@ImageBase64.setter
|
@@ -851,6 +1389,10 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
851
1389
|
|
852
1390
|
@property
|
853
1391
|
def TemplateId(self):
|
1392
|
+
"""动作模板ID。取值说明:ke3 科目三;tuziwu 兔子舞;huajiangwu 划桨舞。
|
1393
|
+
|
1394
|
+
:rtype: str
|
1395
|
+
"""
|
854
1396
|
return self._TemplateId
|
855
1397
|
|
856
1398
|
@TemplateId.setter
|
@@ -859,6 +1401,9 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
859
1401
|
|
860
1402
|
@property
|
861
1403
|
def EnableAudio(self):
|
1404
|
+
"""结果视频是否保留模板音频。默认为true
|
1405
|
+
:rtype: bool
|
1406
|
+
"""
|
862
1407
|
return self._EnableAudio
|
863
1408
|
|
864
1409
|
@EnableAudio.setter
|
@@ -867,6 +1412,9 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
867
1412
|
|
868
1413
|
@property
|
869
1414
|
def EnableBodyJoins(self):
|
1415
|
+
"""是否检测输入图人体12个身体部位(头部、颈部、右肩、右肘、右腕、左肩、左肘、左腕、右髋、左髋,、左膝、右膝)。默认不检测。
|
1416
|
+
:rtype: bool
|
1417
|
+
"""
|
870
1418
|
return self._EnableBodyJoins
|
871
1419
|
|
872
1420
|
@EnableBodyJoins.setter
|
@@ -875,12 +1423,43 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
875
1423
|
|
876
1424
|
@property
|
877
1425
|
def EnableSegment(self):
|
1426
|
+
"""最终视频是否保留原图的背景,默认不保留。
|
1427
|
+
|
1428
|
+
:rtype: bool
|
1429
|
+
"""
|
878
1430
|
return self._EnableSegment
|
879
1431
|
|
880
1432
|
@EnableSegment.setter
|
881
1433
|
def EnableSegment(self, EnableSegment):
|
882
1434
|
self._EnableSegment = EnableSegment
|
883
1435
|
|
1436
|
+
@property
|
1437
|
+
def LogoAdd(self):
|
1438
|
+
"""为生成视频添加标识的开关,默认为0。
|
1439
|
+
1:添加标识。
|
1440
|
+
0:不添加标识。
|
1441
|
+
其他数值:默认按1处理。
|
1442
|
+
建议您使用显著标识来提示,该视频是 AI 生成的视频。
|
1443
|
+
:rtype: int
|
1444
|
+
"""
|
1445
|
+
return self._LogoAdd
|
1446
|
+
|
1447
|
+
@LogoAdd.setter
|
1448
|
+
def LogoAdd(self, LogoAdd):
|
1449
|
+
self._LogoAdd = LogoAdd
|
1450
|
+
|
1451
|
+
@property
|
1452
|
+
def LogoParam(self):
|
1453
|
+
"""标识内容设置。
|
1454
|
+
默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
1455
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
|
1456
|
+
"""
|
1457
|
+
return self._LogoParam
|
1458
|
+
|
1459
|
+
@LogoParam.setter
|
1460
|
+
def LogoParam(self, LogoParam):
|
1461
|
+
self._LogoParam = LogoParam
|
1462
|
+
|
884
1463
|
|
885
1464
|
def _deserialize(self, params):
|
886
1465
|
self._ImageUrl = params.get("ImageUrl")
|
@@ -889,6 +1468,10 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
889
1468
|
self._EnableAudio = params.get("EnableAudio")
|
890
1469
|
self._EnableBodyJoins = params.get("EnableBodyJoins")
|
891
1470
|
self._EnableSegment = params.get("EnableSegment")
|
1471
|
+
self._LogoAdd = params.get("LogoAdd")
|
1472
|
+
if params.get("LogoParam") is not None:
|
1473
|
+
self._LogoParam = LogoParam()
|
1474
|
+
self._LogoParam._deserialize(params.get("LogoParam"))
|
892
1475
|
memeber_set = set(params.keys())
|
893
1476
|
for name, value in vars(self).items():
|
894
1477
|
property_name = name[1:]
|
@@ -906,7 +1489,7 @@ class SubmitImageAnimateJobResponse(AbstractModel):
|
|
906
1489
|
|
907
1490
|
def __init__(self):
|
908
1491
|
r"""
|
909
|
-
:param _JobId:
|
1492
|
+
:param _JobId: 图片跳舞任务ID。
|
910
1493
|
:type JobId: str
|
911
1494
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
912
1495
|
:type RequestId: str
|
@@ -916,6 +1499,9 @@ class SubmitImageAnimateJobResponse(AbstractModel):
|
|
916
1499
|
|
917
1500
|
@property
|
918
1501
|
def JobId(self):
|
1502
|
+
"""图片跳舞任务ID。
|
1503
|
+
:rtype: str
|
1504
|
+
"""
|
919
1505
|
return self._JobId
|
920
1506
|
|
921
1507
|
@JobId.setter
|
@@ -924,6 +1510,9 @@ class SubmitImageAnimateJobResponse(AbstractModel):
|
|
924
1510
|
|
925
1511
|
@property
|
926
1512
|
def RequestId(self):
|
1513
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1514
|
+
:rtype: str
|
1515
|
+
"""
|
927
1516
|
return self._RequestId
|
928
1517
|
|
929
1518
|
@RequestId.setter
|
@@ -952,7 +1541,7 @@ class SubmitPortraitSingJobRequest(AbstractModel):
|
|
952
1541
|
- 图片分辨率:192~4096
|
953
1542
|
- 图片大小:不超过10M
|
954
1543
|
- 图片宽高比:图片【宽:高】在1:2到2:1范围内
|
955
|
-
-
|
1544
|
+
- 图片内容:避免上传无人脸、无宠物脸或脸部过小、不完整、不清晰、偏转角度过大、嘴部被遮挡的图片。
|
956
1545
|
:type ImageUrl: str
|
957
1546
|
:param _ImageBase64: 传入图片Base64编码,编码后请求体大小不超过10M。
|
958
1547
|
图片Base64编码与URL地址必传其一,如果都传以ImageBase64为准。
|
@@ -961,14 +1550,36 @@ class SubmitPortraitSingJobRequest(AbstractModel):
|
|
961
1550
|
Person:人像模式,仅支持上传人像图片,人像生成效果更好,如果图中未检测到有效人脸将被拦截,生成时会将视频短边分辨率放缩至512。
|
962
1551
|
Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨率视频。
|
963
1552
|
:type Mode: str
|
1553
|
+
:param _Resolution: 生成视频尺寸。可选取值:"512:512"。
|
1554
|
+
|
1555
|
+
人像模式下,如果不传该参数,默认生成视频的短边分辨率为512,长边分辨率不固定、由模型根据生成效果自动适配得到。如需固定生成分辨率可传入512:512。
|
1556
|
+
|
1557
|
+
宠物模式下,如果不传该参数,默认将脸部唱演视频回贴原图,生成视频分辨率与原图一致。如不需要脸部回贴,仅保留脸部唱演视频,可传入512:512。
|
1558
|
+
:type Resolution: str
|
1559
|
+
:param _LogoAdd: 为生成视频添加标识的开关,默认为0。
|
1560
|
+
1:添加标识;
|
1561
|
+
0:不添加标识;
|
1562
|
+
其他数值:默认按1处理。
|
1563
|
+
建议您使用显著标识来提示,该视频是 AI 生成的视频。
|
1564
|
+
:type LogoAdd: int
|
1565
|
+
:param _LogoParam: 标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
1566
|
+
:type LogoParam: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
|
964
1567
|
"""
|
965
1568
|
self._AudioUrl = None
|
966
1569
|
self._ImageUrl = None
|
967
1570
|
self._ImageBase64 = None
|
968
1571
|
self._Mode = None
|
1572
|
+
self._Resolution = None
|
1573
|
+
self._LogoAdd = None
|
1574
|
+
self._LogoParam = None
|
969
1575
|
|
970
1576
|
@property
|
971
1577
|
def AudioUrl(self):
|
1578
|
+
"""传入音频URL地址,音频要求:
|
1579
|
+
- 音频时长:2秒 - 60秒
|
1580
|
+
- 音频格式:mp3、wav、m4a
|
1581
|
+
:rtype: str
|
1582
|
+
"""
|
972
1583
|
return self._AudioUrl
|
973
1584
|
|
974
1585
|
@AudioUrl.setter
|
@@ -977,6 +1588,14 @@ Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨
|
|
977
1588
|
|
978
1589
|
@property
|
979
1590
|
def ImageUrl(self):
|
1591
|
+
"""传入图片URL地址,图片要求:
|
1592
|
+
- 图片格式:jpg、jpeg、png、bmp、webp
|
1593
|
+
- 图片分辨率:192~4096
|
1594
|
+
- 图片大小:不超过10M
|
1595
|
+
- 图片宽高比:图片【宽:高】在1:2到2:1范围内
|
1596
|
+
- 图片内容:避免上传无人脸、无宠物脸或脸部过小、不完整、不清晰、偏转角度过大、嘴部被遮挡的图片。
|
1597
|
+
:rtype: str
|
1598
|
+
"""
|
980
1599
|
return self._ImageUrl
|
981
1600
|
|
982
1601
|
@ImageUrl.setter
|
@@ -985,6 +1604,10 @@ Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨
|
|
985
1604
|
|
986
1605
|
@property
|
987
1606
|
def ImageBase64(self):
|
1607
|
+
"""传入图片Base64编码,编码后请求体大小不超过10M。
|
1608
|
+
图片Base64编码与URL地址必传其一,如果都传以ImageBase64为准。
|
1609
|
+
:rtype: str
|
1610
|
+
"""
|
988
1611
|
return self._ImageBase64
|
989
1612
|
|
990
1613
|
@ImageBase64.setter
|
@@ -993,18 +1616,69 @@ Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨
|
|
993
1616
|
|
994
1617
|
@property
|
995
1618
|
def Mode(self):
|
1619
|
+
"""唱演模式,默认使用人像模式。
|
1620
|
+
Person:人像模式,仅支持上传人像图片,人像生成效果更好,如果图中未检测到有效人脸将被拦截,生成时会将视频短边分辨率放缩至512。
|
1621
|
+
Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨率视频。
|
1622
|
+
:rtype: str
|
1623
|
+
"""
|
996
1624
|
return self._Mode
|
997
1625
|
|
998
1626
|
@Mode.setter
|
999
1627
|
def Mode(self, Mode):
|
1000
1628
|
self._Mode = Mode
|
1001
1629
|
|
1630
|
+
@property
|
1631
|
+
def Resolution(self):
|
1632
|
+
"""生成视频尺寸。可选取值:"512:512"。
|
1633
|
+
|
1634
|
+
人像模式下,如果不传该参数,默认生成视频的短边分辨率为512,长边分辨率不固定、由模型根据生成效果自动适配得到。如需固定生成分辨率可传入512:512。
|
1635
|
+
|
1636
|
+
宠物模式下,如果不传该参数,默认将脸部唱演视频回贴原图,生成视频分辨率与原图一致。如不需要脸部回贴,仅保留脸部唱演视频,可传入512:512。
|
1637
|
+
:rtype: str
|
1638
|
+
"""
|
1639
|
+
return self._Resolution
|
1640
|
+
|
1641
|
+
@Resolution.setter
|
1642
|
+
def Resolution(self, Resolution):
|
1643
|
+
self._Resolution = Resolution
|
1644
|
+
|
1645
|
+
@property
|
1646
|
+
def LogoAdd(self):
|
1647
|
+
"""为生成视频添加标识的开关,默认为0。
|
1648
|
+
1:添加标识;
|
1649
|
+
0:不添加标识;
|
1650
|
+
其他数值:默认按1处理。
|
1651
|
+
建议您使用显著标识来提示,该视频是 AI 生成的视频。
|
1652
|
+
:rtype: int
|
1653
|
+
"""
|
1654
|
+
return self._LogoAdd
|
1655
|
+
|
1656
|
+
@LogoAdd.setter
|
1657
|
+
def LogoAdd(self, LogoAdd):
|
1658
|
+
self._LogoAdd = LogoAdd
|
1659
|
+
|
1660
|
+
@property
|
1661
|
+
def LogoParam(self):
|
1662
|
+
"""标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
1663
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
|
1664
|
+
"""
|
1665
|
+
return self._LogoParam
|
1666
|
+
|
1667
|
+
@LogoParam.setter
|
1668
|
+
def LogoParam(self, LogoParam):
|
1669
|
+
self._LogoParam = LogoParam
|
1670
|
+
|
1002
1671
|
|
1003
1672
|
def _deserialize(self, params):
|
1004
1673
|
self._AudioUrl = params.get("AudioUrl")
|
1005
1674
|
self._ImageUrl = params.get("ImageUrl")
|
1006
1675
|
self._ImageBase64 = params.get("ImageBase64")
|
1007
1676
|
self._Mode = params.get("Mode")
|
1677
|
+
self._Resolution = params.get("Resolution")
|
1678
|
+
self._LogoAdd = params.get("LogoAdd")
|
1679
|
+
if params.get("LogoParam") is not None:
|
1680
|
+
self._LogoParam = LogoParam()
|
1681
|
+
self._LogoParam._deserialize(params.get("LogoParam"))
|
1008
1682
|
memeber_set = set(params.keys())
|
1009
1683
|
for name, value in vars(self).items():
|
1010
1684
|
property_name = name[1:]
|
@@ -1022,7 +1696,7 @@ class SubmitPortraitSingJobResponse(AbstractModel):
|
|
1022
1696
|
|
1023
1697
|
def __init__(self):
|
1024
1698
|
r"""
|
1025
|
-
:param _JobId: 任务ID
|
1699
|
+
:param _JobId: 任务ID。任务有效期为48小时。
|
1026
1700
|
:type JobId: str
|
1027
1701
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1028
1702
|
:type RequestId: str
|
@@ -1032,6 +1706,9 @@ class SubmitPortraitSingJobResponse(AbstractModel):
|
|
1032
1706
|
|
1033
1707
|
@property
|
1034
1708
|
def JobId(self):
|
1709
|
+
"""任务ID。任务有效期为48小时。
|
1710
|
+
:rtype: str
|
1711
|
+
"""
|
1035
1712
|
return self._JobId
|
1036
1713
|
|
1037
1714
|
@JobId.setter
|
@@ -1040,6 +1717,9 @@ class SubmitPortraitSingJobResponse(AbstractModel):
|
|
1040
1717
|
|
1041
1718
|
@property
|
1042
1719
|
def RequestId(self):
|
1720
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1721
|
+
:rtype: str
|
1722
|
+
"""
|
1043
1723
|
return self._RequestId
|
1044
1724
|
|
1045
1725
|
@RequestId.setter
|
@@ -1059,7 +1739,11 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1059
1739
|
|
1060
1740
|
def __init__(self):
|
1061
1741
|
r"""
|
1062
|
-
:param _StyleId: 风格ID
|
1742
|
+
:param _StyleId: 风格ID。取值说明:
|
1743
|
+
2d_anime:2D动漫;
|
1744
|
+
3d_cartoon:3D卡通;
|
1745
|
+
3d_china:3D国潮;
|
1746
|
+
pixel_art:像素风。
|
1063
1747
|
:type StyleId: str
|
1064
1748
|
:param _VideoUrl: 输入视频URL。视频要求:
|
1065
1749
|
- 视频格式:mp4、mov;
|
@@ -1068,9 +1752,11 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1068
1752
|
- 视频大小:不超过200M;
|
1069
1753
|
- 视频FPS:15~60fps。
|
1070
1754
|
:type VideoUrl: str
|
1071
|
-
:param _StyleStrength:
|
1072
|
-
|
1073
|
-
|
1755
|
+
:param _StyleStrength: 风格化强度。取值说明:
|
1756
|
+
low:风格化强度弱;
|
1757
|
+
medium:风格化强度中等;
|
1758
|
+
high:风格化强度强。
|
1759
|
+
默认值为medium。
|
1074
1760
|
:type StyleStrength: str
|
1075
1761
|
"""
|
1076
1762
|
self._StyleId = None
|
@@ -1079,6 +1765,13 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1079
1765
|
|
1080
1766
|
@property
|
1081
1767
|
def StyleId(self):
|
1768
|
+
"""风格ID。取值说明:
|
1769
|
+
2d_anime:2D动漫;
|
1770
|
+
3d_cartoon:3D卡通;
|
1771
|
+
3d_china:3D国潮;
|
1772
|
+
pixel_art:像素风。
|
1773
|
+
:rtype: str
|
1774
|
+
"""
|
1082
1775
|
return self._StyleId
|
1083
1776
|
|
1084
1777
|
@StyleId.setter
|
@@ -1087,6 +1780,14 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1087
1780
|
|
1088
1781
|
@property
|
1089
1782
|
def VideoUrl(self):
|
1783
|
+
"""输入视频URL。视频要求:
|
1784
|
+
- 视频格式:mp4、mov;
|
1785
|
+
- 视频时长:1~60秒;
|
1786
|
+
- 视频分辨率:540P~2056P,即长宽像素数均在540px~2056px范围内;
|
1787
|
+
- 视频大小:不超过200M;
|
1788
|
+
- 视频FPS:15~60fps。
|
1789
|
+
:rtype: str
|
1790
|
+
"""
|
1090
1791
|
return self._VideoUrl
|
1091
1792
|
|
1092
1793
|
@VideoUrl.setter
|
@@ -1095,6 +1796,13 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1095
1796
|
|
1096
1797
|
@property
|
1097
1798
|
def StyleStrength(self):
|
1799
|
+
"""风格化强度。取值说明:
|
1800
|
+
low:风格化强度弱;
|
1801
|
+
medium:风格化强度中等;
|
1802
|
+
high:风格化强度强。
|
1803
|
+
默认值为medium。
|
1804
|
+
:rtype: str
|
1805
|
+
"""
|
1098
1806
|
return self._StyleStrength
|
1099
1807
|
|
1100
1808
|
@StyleStrength.setter
|
@@ -1123,7 +1831,7 @@ class SubmitVideoStylizationJobResponse(AbstractModel):
|
|
1123
1831
|
|
1124
1832
|
def __init__(self):
|
1125
1833
|
r"""
|
1126
|
-
:param _JobId: 任务ID
|
1834
|
+
:param _JobId: 任务ID。任务有效期为48小时。
|
1127
1835
|
:type JobId: str
|
1128
1836
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1129
1837
|
:type RequestId: str
|
@@ -1133,6 +1841,9 @@ class SubmitVideoStylizationJobResponse(AbstractModel):
|
|
1133
1841
|
|
1134
1842
|
@property
|
1135
1843
|
def JobId(self):
|
1844
|
+
"""任务ID。任务有效期为48小时。
|
1845
|
+
:rtype: str
|
1846
|
+
"""
|
1136
1847
|
return self._JobId
|
1137
1848
|
|
1138
1849
|
@JobId.setter
|
@@ -1141,6 +1852,9 @@ class SubmitVideoStylizationJobResponse(AbstractModel):
|
|
1141
1852
|
|
1142
1853
|
@property
|
1143
1854
|
def RequestId(self):
|
1855
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1856
|
+
:rtype: str
|
1857
|
+
"""
|
1144
1858
|
return self._RequestId
|
1145
1859
|
|
1146
1860
|
@RequestId.setter
|
@@ -1161,46 +1875,62 @@ class SubmitVideoTranslateJobRequest(AbstractModel):
|
|
1161
1875
|
def __init__(self):
|
1162
1876
|
r"""
|
1163
1877
|
:param _VideoUrl: 视频地址URL。
|
1164
|
-
格式要求:支持 mp4、mov 。
|
1165
|
-
时长要求:【
|
1878
|
+
格式要求:支持 mp4、mov、avi 。
|
1879
|
+
时长要求:【5-600】秒。
|
1166
1880
|
fps 要求:【15-60】fps
|
1167
|
-
分辨率要求:单边像素要求在 【
|
1881
|
+
分辨率要求:单边像素要求在 【360~4096】 之间。
|
1882
|
+
大小要求:不超过500MB
|
1168
1883
|
|
1169
1884
|
:type VideoUrl: str
|
1170
|
-
:param _SrcLang:
|
1885
|
+
:param _SrcLang: 输入视频中音频语种
|
1886
|
+
目前支持语种范围:zh(中文), en(英文)
|
1171
1887
|
:type SrcLang: str
|
1172
|
-
:param
|
1173
|
-
|
1174
|
-
|
1175
|
-
|
1176
|
-
格式要求:支持 mp3、m4a、acc、wav 格式。
|
1177
|
-
时长要求:【10~300】秒
|
1178
|
-
大小要求:不超过 100M。
|
1888
|
+
:param _AudioUrl: 当音频 URL 不为空时,不经过语音AI处理,直接以视频为素材用音频内容做视频口型驱动。
|
1889
|
+
格式要求:支持 mp3、m4a、aac、wav 格式。
|
1890
|
+
时长要求:【5~600】秒,音频时长要匹配视频时长。
|
1891
|
+
大小要求:不超过 100MB。
|
1179
1892
|
:type AudioUrl: str
|
1893
|
+
:param _DstLang: 输出视频中翻译语种
|
1894
|
+
目前支持语种范围:zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、id(印尼语)、it(意大利语)、ja(日语)、ko(韩语)、ms(马来语)、pt(葡萄牙语)、ru(俄语)、th(泰语)、tr(土耳其语)、vi(越南语)
|
1895
|
+
:type DstLang: str
|
1896
|
+
:param _VoiceType: 翻译语种匹配音色种别,其他说明如下:
|
1897
|
+
1)默认不填代表克隆输入视频中音频音色;
|
1898
|
+
2)翻译语种非中英(即zh、en),该项必填;
|
1899
|
+
|
1900
|
+
具体音色种别详见说明“支持音色种别列表”,每个音色都支持 15 个目标语种。
|
1901
|
+
|
1902
|
+
:type VoiceType: str
|
1903
|
+
:param _Confirm: 是否需要纠正视频中音频识别与翻译内容,取值范围:0-不需要,1-需要,默认0。
|
1904
|
+
|
1905
|
+
:type Confirm: int
|
1180
1906
|
:param _RemoveVocal: 是否需要去除VideoUrl或AudioUrl中背景音,取值范围:0-不需要,1-需要,默认0 。
|
1181
1907
|
:type RemoveVocal: int
|
1182
|
-
:param
|
1183
|
-
:type Confirm: int
|
1184
|
-
:param _LipSync: 是否开启口型驱动,0:不开启,1:开启。默认开启。
|
1908
|
+
:param _LipSync: 是否开启口型驱动,0-不开启,1-开启。默认0。
|
1185
1909
|
:type LipSync: int
|
1186
|
-
:param
|
1187
|
-
|
1188
|
-
2)目标语种为zh,en时,该项为非必填,若填入,则对应填入的音色
|
1189
|
-
|
1190
|
-
具体音色包含请见“支持音色种别列表”
|
1191
|
-
:type VoiceType: str
|
1910
|
+
:param _VideoLoop: 当 AudioUrl 字段有输入音频时,如果输入音频时长大于输入视频时长,会拼接视频( 0-正向拼接、1-反向拼接 )对齐音频时长。默认 0。
|
1911
|
+
:type VideoLoop: int
|
1192
1912
|
"""
|
1193
1913
|
self._VideoUrl = None
|
1194
1914
|
self._SrcLang = None
|
1195
|
-
self._DstLang = None
|
1196
1915
|
self._AudioUrl = None
|
1197
|
-
self.
|
1916
|
+
self._DstLang = None
|
1917
|
+
self._VoiceType = None
|
1198
1918
|
self._Confirm = None
|
1919
|
+
self._RemoveVocal = None
|
1199
1920
|
self._LipSync = None
|
1200
|
-
self.
|
1921
|
+
self._VideoLoop = None
|
1201
1922
|
|
1202
1923
|
@property
|
1203
1924
|
def VideoUrl(self):
|
1925
|
+
"""视频地址URL。
|
1926
|
+
格式要求:支持 mp4、mov、avi 。
|
1927
|
+
时长要求:【5-600】秒。
|
1928
|
+
fps 要求:【15-60】fps
|
1929
|
+
分辨率要求:单边像素要求在 【360~4096】 之间。
|
1930
|
+
大小要求:不超过500MB
|
1931
|
+
|
1932
|
+
:rtype: str
|
1933
|
+
"""
|
1204
1934
|
return self._VideoUrl
|
1205
1935
|
|
1206
1936
|
@VideoUrl.setter
|
@@ -1209,14 +1939,36 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1209
1939
|
|
1210
1940
|
@property
|
1211
1941
|
def SrcLang(self):
|
1942
|
+
"""输入视频中音频语种
|
1943
|
+
目前支持语种范围:zh(中文), en(英文)
|
1944
|
+
:rtype: str
|
1945
|
+
"""
|
1212
1946
|
return self._SrcLang
|
1213
1947
|
|
1214
1948
|
@SrcLang.setter
|
1215
1949
|
def SrcLang(self, SrcLang):
|
1216
1950
|
self._SrcLang = SrcLang
|
1217
1951
|
|
1952
|
+
@property
|
1953
|
+
def AudioUrl(self):
|
1954
|
+
"""当音频 URL 不为空时,不经过语音AI处理,直接以视频为素材用音频内容做视频口型驱动。
|
1955
|
+
格式要求:支持 mp3、m4a、aac、wav 格式。
|
1956
|
+
时长要求:【5~600】秒,音频时长要匹配视频时长。
|
1957
|
+
大小要求:不超过 100MB。
|
1958
|
+
:rtype: str
|
1959
|
+
"""
|
1960
|
+
return self._AudioUrl
|
1961
|
+
|
1962
|
+
@AudioUrl.setter
|
1963
|
+
def AudioUrl(self, AudioUrl):
|
1964
|
+
self._AudioUrl = AudioUrl
|
1965
|
+
|
1218
1966
|
@property
|
1219
1967
|
def DstLang(self):
|
1968
|
+
"""输出视频中翻译语种
|
1969
|
+
目前支持语种范围:zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、id(印尼语)、it(意大利语)、ja(日语)、ko(韩语)、ms(马来语)、pt(葡萄牙语)、ru(俄语)、th(泰语)、tr(土耳其语)、vi(越南语)
|
1970
|
+
:rtype: str
|
1971
|
+
"""
|
1220
1972
|
return self._DstLang
|
1221
1973
|
|
1222
1974
|
@DstLang.setter
|
@@ -1224,31 +1976,49 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1224
1976
|
self._DstLang = DstLang
|
1225
1977
|
|
1226
1978
|
@property
|
1227
|
-
def
|
1228
|
-
|
1979
|
+
def VoiceType(self):
|
1980
|
+
"""翻译语种匹配音色种别,其他说明如下:
|
1981
|
+
1)默认不填代表克隆输入视频中音频音色;
|
1982
|
+
2)翻译语种非中英(即zh、en),该项必填;
|
1229
1983
|
|
1230
|
-
|
1231
|
-
def AudioUrl(self, AudioUrl):
|
1232
|
-
self._AudioUrl = AudioUrl
|
1984
|
+
具体音色种别详见说明“支持音色种别列表”,每个音色都支持 15 个目标语种。
|
1233
1985
|
|
1234
|
-
|
1235
|
-
|
1236
|
-
return self.
|
1986
|
+
:rtype: str
|
1987
|
+
"""
|
1988
|
+
return self._VoiceType
|
1237
1989
|
|
1238
|
-
@
|
1239
|
-
def
|
1240
|
-
self.
|
1990
|
+
@VoiceType.setter
|
1991
|
+
def VoiceType(self, VoiceType):
|
1992
|
+
self._VoiceType = VoiceType
|
1241
1993
|
|
1242
1994
|
@property
|
1243
1995
|
def Confirm(self):
|
1996
|
+
"""是否需要纠正视频中音频识别与翻译内容,取值范围:0-不需要,1-需要,默认0。
|
1997
|
+
|
1998
|
+
:rtype: int
|
1999
|
+
"""
|
1244
2000
|
return self._Confirm
|
1245
2001
|
|
1246
2002
|
@Confirm.setter
|
1247
2003
|
def Confirm(self, Confirm):
|
1248
2004
|
self._Confirm = Confirm
|
1249
2005
|
|
2006
|
+
@property
|
2007
|
+
def RemoveVocal(self):
|
2008
|
+
"""是否需要去除VideoUrl或AudioUrl中背景音,取值范围:0-不需要,1-需要,默认0 。
|
2009
|
+
:rtype: int
|
2010
|
+
"""
|
2011
|
+
return self._RemoveVocal
|
2012
|
+
|
2013
|
+
@RemoveVocal.setter
|
2014
|
+
def RemoveVocal(self, RemoveVocal):
|
2015
|
+
self._RemoveVocal = RemoveVocal
|
2016
|
+
|
1250
2017
|
@property
|
1251
2018
|
def LipSync(self):
|
2019
|
+
"""是否开启口型驱动,0-不开启,1-开启。默认0。
|
2020
|
+
:rtype: int
|
2021
|
+
"""
|
1252
2022
|
return self._LipSync
|
1253
2023
|
|
1254
2024
|
@LipSync.setter
|
@@ -1256,23 +2026,27 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1256
2026
|
self._LipSync = LipSync
|
1257
2027
|
|
1258
2028
|
@property
|
1259
|
-
def
|
1260
|
-
|
2029
|
+
def VideoLoop(self):
|
2030
|
+
"""当 AudioUrl 字段有输入音频时,如果输入音频时长大于输入视频时长,会拼接视频( 0-正向拼接、1-反向拼接 )对齐音频时长。默认 0。
|
2031
|
+
:rtype: int
|
2032
|
+
"""
|
2033
|
+
return self._VideoLoop
|
1261
2034
|
|
1262
|
-
@
|
1263
|
-
def
|
1264
|
-
self.
|
2035
|
+
@VideoLoop.setter
|
2036
|
+
def VideoLoop(self, VideoLoop):
|
2037
|
+
self._VideoLoop = VideoLoop
|
1265
2038
|
|
1266
2039
|
|
1267
2040
|
def _deserialize(self, params):
|
1268
2041
|
self._VideoUrl = params.get("VideoUrl")
|
1269
2042
|
self._SrcLang = params.get("SrcLang")
|
1270
|
-
self._DstLang = params.get("DstLang")
|
1271
2043
|
self._AudioUrl = params.get("AudioUrl")
|
1272
|
-
self.
|
2044
|
+
self._DstLang = params.get("DstLang")
|
2045
|
+
self._VoiceType = params.get("VoiceType")
|
1273
2046
|
self._Confirm = params.get("Confirm")
|
2047
|
+
self._RemoveVocal = params.get("RemoveVocal")
|
1274
2048
|
self._LipSync = params.get("LipSync")
|
1275
|
-
self.
|
2049
|
+
self._VideoLoop = params.get("VideoLoop")
|
1276
2050
|
memeber_set = set(params.keys())
|
1277
2051
|
for name, value in vars(self).items():
|
1278
2052
|
property_name = name[1:]
|
@@ -1290,7 +2064,7 @@ class SubmitVideoTranslateJobResponse(AbstractModel):
|
|
1290
2064
|
|
1291
2065
|
def __init__(self):
|
1292
2066
|
r"""
|
1293
|
-
:param _JobId: 视频转译任务的
|
2067
|
+
:param _JobId: 视频转译任务的ID
|
1294
2068
|
:type JobId: str
|
1295
2069
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1296
2070
|
:type RequestId: str
|
@@ -1300,6 +2074,9 @@ class SubmitVideoTranslateJobResponse(AbstractModel):
|
|
1300
2074
|
|
1301
2075
|
@property
|
1302
2076
|
def JobId(self):
|
2077
|
+
"""视频转译任务的ID
|
2078
|
+
:rtype: str
|
2079
|
+
"""
|
1303
2080
|
return self._JobId
|
1304
2081
|
|
1305
2082
|
@JobId.setter
|
@@ -1308,6 +2085,9 @@ class SubmitVideoTranslateJobResponse(AbstractModel):
|
|
1308
2085
|
|
1309
2086
|
@property
|
1310
2087
|
def RequestId(self):
|
2088
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2089
|
+
:rtype: str
|
2090
|
+
"""
|
1311
2091
|
return self._RequestId
|
1312
2092
|
|
1313
2093
|
@RequestId.setter
|
@@ -1339,6 +2119,10 @@ class TranslateResult(AbstractModel):
|
|
1339
2119
|
|
1340
2120
|
@property
|
1341
2121
|
def SourceText(self):
|
2122
|
+
"""翻译源文字
|
2123
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2124
|
+
:rtype: str
|
2125
|
+
"""
|
1342
2126
|
return self._SourceText
|
1343
2127
|
|
1344
2128
|
@SourceText.setter
|
@@ -1347,6 +2131,10 @@ class TranslateResult(AbstractModel):
|
|
1347
2131
|
|
1348
2132
|
@property
|
1349
2133
|
def TargetText(self):
|
2134
|
+
"""翻译后文字。
|
2135
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
2136
|
+
:rtype: str
|
2137
|
+
"""
|
1350
2138
|
return self._TargetText
|
1351
2139
|
|
1352
2140
|
@TargetText.setter
|