tencentcloud-sdk-python-vclm 3.0.1261__py2.py3-none-any.whl → 3.0.1275__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 +508 -91
- tencentcloud/vclm/v20240523/vclm_client.py +53 -53
- {tencentcloud_sdk_python_vclm-3.0.1261.dist-info → tencentcloud_sdk_python_vclm-3.0.1275.dist-info}/METADATA +3 -3
- tencentcloud_sdk_python_vclm-3.0.1275.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_vclm-3.0.1261.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_vclm-3.0.1261.dist-info → tencentcloud_sdk_python_vclm-3.0.1275.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_vclm-3.0.1261.dist-info → tencentcloud_sdk_python_vclm-3.0.1275.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
|
@@ -85,7 +97,7 @@ class ConfirmVideoTranslateJobRequest(AbstractModel):
|
|
85
97
|
|
86
98
|
def __init__(self):
|
87
99
|
r"""
|
88
|
-
:param _JobId:
|
100
|
+
:param _JobId: 视频转译任务 ID
|
89
101
|
:type JobId: str
|
90
102
|
:param _TranslateResults: 待确认文本
|
91
103
|
:type TranslateResults: list of TranslateResult
|
@@ -95,6 +107,9 @@ class ConfirmVideoTranslateJobRequest(AbstractModel):
|
|
95
107
|
|
96
108
|
@property
|
97
109
|
def JobId(self):
|
110
|
+
"""视频转译任务 ID
|
111
|
+
:rtype: str
|
112
|
+
"""
|
98
113
|
return self._JobId
|
99
114
|
|
100
115
|
@JobId.setter
|
@@ -103,6 +118,9 @@ class ConfirmVideoTranslateJobRequest(AbstractModel):
|
|
103
118
|
|
104
119
|
@property
|
105
120
|
def TranslateResults(self):
|
121
|
+
"""待确认文本
|
122
|
+
:rtype: list of TranslateResult
|
123
|
+
"""
|
106
124
|
return self._TranslateResults
|
107
125
|
|
108
126
|
@TranslateResults.setter
|
@@ -135,15 +153,15 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
135
153
|
|
136
154
|
def __init__(self):
|
137
155
|
r"""
|
138
|
-
:param _JobId:
|
156
|
+
:param _JobId: 视频转译任务 ID。
|
139
157
|
:type JobId: str
|
140
|
-
:param _TaskId:
|
158
|
+
:param _TaskId: 音频转译任务 ID。
|
141
159
|
:type TaskId: str
|
142
|
-
:param _SessionId:
|
160
|
+
:param _SessionId: 音频转译结果确认 session。
|
143
161
|
:type SessionId: str
|
144
|
-
:param _Status:
|
162
|
+
:param _Status: 该字段与 DescribeVideoTranslateJob 接口的 Status 功能相同,均表示任务状态。0:任务初始化。1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
|
145
163
|
:type Status: int
|
146
|
-
:param _Message:
|
164
|
+
:param _Message: 视频转译任务信息。
|
147
165
|
:type Message: str
|
148
166
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
149
167
|
:type RequestId: str
|
@@ -157,6 +175,9 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
157
175
|
|
158
176
|
@property
|
159
177
|
def JobId(self):
|
178
|
+
"""视频转译任务 ID。
|
179
|
+
:rtype: str
|
180
|
+
"""
|
160
181
|
return self._JobId
|
161
182
|
|
162
183
|
@JobId.setter
|
@@ -165,6 +186,9 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
165
186
|
|
166
187
|
@property
|
167
188
|
def TaskId(self):
|
189
|
+
"""音频转译任务 ID。
|
190
|
+
:rtype: str
|
191
|
+
"""
|
168
192
|
return self._TaskId
|
169
193
|
|
170
194
|
@TaskId.setter
|
@@ -173,6 +197,9 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
173
197
|
|
174
198
|
@property
|
175
199
|
def SessionId(self):
|
200
|
+
"""音频转译结果确认 session。
|
201
|
+
:rtype: str
|
202
|
+
"""
|
176
203
|
return self._SessionId
|
177
204
|
|
178
205
|
@SessionId.setter
|
@@ -181,6 +208,9 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
181
208
|
|
182
209
|
@property
|
183
210
|
def Status(self):
|
211
|
+
"""该字段与 DescribeVideoTranslateJob 接口的 Status 功能相同,均表示任务状态。0:任务初始化。1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
|
212
|
+
:rtype: int
|
213
|
+
"""
|
184
214
|
return self._Status
|
185
215
|
|
186
216
|
@Status.setter
|
@@ -189,6 +219,9 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
189
219
|
|
190
220
|
@property
|
191
221
|
def Message(self):
|
222
|
+
"""视频转译任务信息。
|
223
|
+
:rtype: str
|
224
|
+
"""
|
192
225
|
return self._Message
|
193
226
|
|
194
227
|
@Message.setter
|
@@ -197,6 +230,9 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
197
230
|
|
198
231
|
@property
|
199
232
|
def RequestId(self):
|
233
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
234
|
+
:rtype: str
|
235
|
+
"""
|
200
236
|
return self._RequestId
|
201
237
|
|
202
238
|
@RequestId.setter
|
@@ -227,6 +263,9 @@ class DescribeImageAnimateJobRequest(AbstractModel):
|
|
227
263
|
|
228
264
|
@property
|
229
265
|
def JobId(self):
|
266
|
+
"""任务ID。
|
267
|
+
:rtype: str
|
268
|
+
"""
|
230
269
|
return self._JobId
|
231
270
|
|
232
271
|
@JobId.setter
|
@@ -275,6 +314,9 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
275
314
|
|
276
315
|
@property
|
277
316
|
def Status(self):
|
317
|
+
"""任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
318
|
+
:rtype: str
|
319
|
+
"""
|
278
320
|
return self._Status
|
279
321
|
|
280
322
|
@Status.setter
|
@@ -283,6 +325,9 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
283
325
|
|
284
326
|
@property
|
285
327
|
def ErrorCode(self):
|
328
|
+
"""错误码。
|
329
|
+
:rtype: str
|
330
|
+
"""
|
286
331
|
return self._ErrorCode
|
287
332
|
|
288
333
|
@ErrorCode.setter
|
@@ -291,6 +336,9 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
291
336
|
|
292
337
|
@property
|
293
338
|
def ErrorMessage(self):
|
339
|
+
"""错误信息。
|
340
|
+
:rtype: str
|
341
|
+
"""
|
294
342
|
return self._ErrorMessage
|
295
343
|
|
296
344
|
@ErrorMessage.setter
|
@@ -299,6 +347,9 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
299
347
|
|
300
348
|
@property
|
301
349
|
def ResultVideoUrl(self):
|
350
|
+
"""结果视频URL。有效期 24 小时。
|
351
|
+
:rtype: str
|
352
|
+
"""
|
302
353
|
return self._ResultVideoUrl
|
303
354
|
|
304
355
|
@ResultVideoUrl.setter
|
@@ -307,6 +358,9 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
307
358
|
|
308
359
|
@property
|
309
360
|
def MaskVideoUrl(self):
|
361
|
+
"""掩码视频链接
|
362
|
+
:rtype: str
|
363
|
+
"""
|
310
364
|
return self._MaskVideoUrl
|
311
365
|
|
312
366
|
@MaskVideoUrl.setter
|
@@ -315,6 +369,9 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
315
369
|
|
316
370
|
@property
|
317
371
|
def RequestId(self):
|
372
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
373
|
+
:rtype: str
|
374
|
+
"""
|
318
375
|
return self._RequestId
|
319
376
|
|
320
377
|
@RequestId.setter
|
@@ -345,6 +402,9 @@ class DescribePortraitSingJobRequest(AbstractModel):
|
|
345
402
|
|
346
403
|
@property
|
347
404
|
def JobId(self):
|
405
|
+
"""任务ID
|
406
|
+
:rtype: str
|
407
|
+
"""
|
348
408
|
return self._JobId
|
349
409
|
|
350
410
|
@JobId.setter
|
@@ -381,12 +441,11 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
381
441
|
:type StatusCode: str
|
382
442
|
:param _StatusMsg: 任务状态信息
|
383
443
|
:type StatusMsg: str
|
384
|
-
:param _ErrorCode:
|
444
|
+
:param _ErrorCode: 任务执行错误码。当任务状态不为FAIL时,该值为""。
|
385
445
|
:type ErrorCode: str
|
386
|
-
:param _ErrorMessage:
|
446
|
+
:param _ErrorMessage: 任务执行错误信息。当任务状态不为FAIL时,该值为""。
|
387
447
|
:type ErrorMessage: str
|
388
|
-
:param _ResultVideoUrl: 生成视频的URL
|
389
|
-
有效期24小时
|
448
|
+
:param _ResultVideoUrl: 生成视频的URL地址。有效期24小时。
|
390
449
|
:type ResultVideoUrl: str
|
391
450
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
392
451
|
:type RequestId: str
|
@@ -401,6 +460,9 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
401
460
|
|
402
461
|
@property
|
403
462
|
def JobId(self):
|
463
|
+
"""任务ID
|
464
|
+
:rtype: str
|
465
|
+
"""
|
404
466
|
return self._JobId
|
405
467
|
|
406
468
|
@JobId.setter
|
@@ -409,6 +471,13 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
409
471
|
|
410
472
|
@property
|
411
473
|
def StatusCode(self):
|
474
|
+
"""任务状态码
|
475
|
+
—RUN:处理中
|
476
|
+
—FAIL:处理失败
|
477
|
+
—STOP:处理终止
|
478
|
+
—DONE:处理完成
|
479
|
+
:rtype: str
|
480
|
+
"""
|
412
481
|
return self._StatusCode
|
413
482
|
|
414
483
|
@StatusCode.setter
|
@@ -417,6 +486,9 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
417
486
|
|
418
487
|
@property
|
419
488
|
def StatusMsg(self):
|
489
|
+
"""任务状态信息
|
490
|
+
:rtype: str
|
491
|
+
"""
|
420
492
|
return self._StatusMsg
|
421
493
|
|
422
494
|
@StatusMsg.setter
|
@@ -425,6 +497,9 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
425
497
|
|
426
498
|
@property
|
427
499
|
def ErrorCode(self):
|
500
|
+
"""任务执行错误码。当任务状态不为FAIL时,该值为""。
|
501
|
+
:rtype: str
|
502
|
+
"""
|
428
503
|
return self._ErrorCode
|
429
504
|
|
430
505
|
@ErrorCode.setter
|
@@ -433,6 +508,9 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
433
508
|
|
434
509
|
@property
|
435
510
|
def ErrorMessage(self):
|
511
|
+
"""任务执行错误信息。当任务状态不为FAIL时,该值为""。
|
512
|
+
:rtype: str
|
513
|
+
"""
|
436
514
|
return self._ErrorMessage
|
437
515
|
|
438
516
|
@ErrorMessage.setter
|
@@ -441,6 +519,9 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
441
519
|
|
442
520
|
@property
|
443
521
|
def ResultVideoUrl(self):
|
522
|
+
"""生成视频的URL地址。有效期24小时。
|
523
|
+
:rtype: str
|
524
|
+
"""
|
444
525
|
return self._ResultVideoUrl
|
445
526
|
|
446
527
|
@ResultVideoUrl.setter
|
@@ -449,6 +530,9 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
449
530
|
|
450
531
|
@property
|
451
532
|
def RequestId(self):
|
533
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
534
|
+
:rtype: str
|
535
|
+
"""
|
452
536
|
return self._RequestId
|
453
537
|
|
454
538
|
@RequestId.setter
|
@@ -480,6 +564,9 @@ class DescribeVideoStylizationJobRequest(AbstractModel):
|
|
480
564
|
|
481
565
|
@property
|
482
566
|
def JobId(self):
|
567
|
+
"""任务ID
|
568
|
+
:rtype: str
|
569
|
+
"""
|
483
570
|
return self._JobId
|
484
571
|
|
485
572
|
@JobId.setter
|
@@ -508,14 +595,19 @@ class DescribeVideoStylizationJobResponse(AbstractModel):
|
|
508
595
|
r"""
|
509
596
|
:param _JobId: 任务ID。
|
510
597
|
:type JobId: str
|
511
|
-
:param _StatusCode:
|
512
|
-
JobInit: "初始化中"
|
513
|
-
JobModerationFailed: "审核失败"
|
514
|
-
JobRunning: "处理中"
|
515
|
-
JobFailed: "处理失败"
|
598
|
+
:param _StatusCode: 任务状态码。取值说明:
|
599
|
+
JobInit: "初始化中";
|
600
|
+
JobModerationFailed: "审核失败";
|
601
|
+
JobRunning: "处理中";
|
602
|
+
JobFailed: "处理失败";
|
516
603
|
JobSuccess: "处理完成"。
|
517
604
|
:type StatusCode: str
|
518
|
-
:param _StatusMsg:
|
605
|
+
:param _StatusMsg: 任务状态描述。取值说明:
|
606
|
+
JobInit: "初始化中";
|
607
|
+
JobModerationFailed: "审核失败";
|
608
|
+
JobRunning: "处理中";
|
609
|
+
JobFailed: "处理失败";
|
610
|
+
JobSuccess: "处理完成"。
|
519
611
|
:type StatusMsg: str
|
520
612
|
:param _ResultVideoUrl: 处理结果视频Url。URL有效期为24小时。
|
521
613
|
:type ResultVideoUrl: str
|
@@ -530,6 +622,9 @@ JobSuccess: "处理完成"。
|
|
530
622
|
|
531
623
|
@property
|
532
624
|
def JobId(self):
|
625
|
+
"""任务ID。
|
626
|
+
:rtype: str
|
627
|
+
"""
|
533
628
|
return self._JobId
|
534
629
|
|
535
630
|
@JobId.setter
|
@@ -538,6 +633,14 @@ JobSuccess: "处理完成"。
|
|
538
633
|
|
539
634
|
@property
|
540
635
|
def StatusCode(self):
|
636
|
+
"""任务状态码。取值说明:
|
637
|
+
JobInit: "初始化中";
|
638
|
+
JobModerationFailed: "审核失败";
|
639
|
+
JobRunning: "处理中";
|
640
|
+
JobFailed: "处理失败";
|
641
|
+
JobSuccess: "处理完成"。
|
642
|
+
:rtype: str
|
643
|
+
"""
|
541
644
|
return self._StatusCode
|
542
645
|
|
543
646
|
@StatusCode.setter
|
@@ -546,6 +649,14 @@ JobSuccess: "处理完成"。
|
|
546
649
|
|
547
650
|
@property
|
548
651
|
def StatusMsg(self):
|
652
|
+
"""任务状态描述。取值说明:
|
653
|
+
JobInit: "初始化中";
|
654
|
+
JobModerationFailed: "审核失败";
|
655
|
+
JobRunning: "处理中";
|
656
|
+
JobFailed: "处理失败";
|
657
|
+
JobSuccess: "处理完成"。
|
658
|
+
:rtype: str
|
659
|
+
"""
|
549
660
|
return self._StatusMsg
|
550
661
|
|
551
662
|
@StatusMsg.setter
|
@@ -554,6 +665,9 @@ JobSuccess: "处理完成"。
|
|
554
665
|
|
555
666
|
@property
|
556
667
|
def ResultVideoUrl(self):
|
668
|
+
"""处理结果视频Url。URL有效期为24小时。
|
669
|
+
:rtype: str
|
670
|
+
"""
|
557
671
|
return self._ResultVideoUrl
|
558
672
|
|
559
673
|
@ResultVideoUrl.setter
|
@@ -562,6 +676,9 @@ JobSuccess: "处理完成"。
|
|
562
676
|
|
563
677
|
@property
|
564
678
|
def RequestId(self):
|
679
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
680
|
+
:rtype: str
|
681
|
+
"""
|
565
682
|
return self._RequestId
|
566
683
|
|
567
684
|
@RequestId.setter
|
@@ -591,6 +708,9 @@ class DescribeVideoTranslateJobRequest(AbstractModel):
|
|
591
708
|
|
592
709
|
@property
|
593
710
|
def JobId(self):
|
711
|
+
"""视频转译任务 ID
|
712
|
+
:rtype: str
|
713
|
+
"""
|
594
714
|
return self._JobId
|
595
715
|
|
596
716
|
@JobId.setter
|
@@ -617,31 +737,32 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
617
737
|
|
618
738
|
def __init__(self):
|
619
739
|
r"""
|
620
|
-
:param _JobStatus: 任务状态。 1
|
740
|
+
:param _JobStatus: 任务状态。0: 任务初始化。 1:音频转译中。 2:音频转译失败。 3:音频转译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频转译中。 7:视频转译失败。 8:视频转译成功。
|
621
741
|
:type JobStatus: int
|
622
|
-
:param _JobErrorCode:
|
742
|
+
:param _JobErrorCode: 本次任务出错的错误码,用来定位问题原因。
|
623
743
|
:type JobErrorCode: str
|
624
|
-
:param _JobErrorMsg:
|
744
|
+
:param _JobErrorMsg: 任务错误信息,错误码出现的原因。
|
625
745
|
:type JobErrorMsg: str
|
626
|
-
:param _ResultVideoUrl:
|
746
|
+
:param _ResultVideoUrl: 视频转译生成结果视频url,有效期1天。当JobStatus为8时,该字段返回视频Url。
|
627
747
|
:type ResultVideoUrl: str
|
628
|
-
:param _TranslateResults:
|
748
|
+
:param _TranslateResults: 音频转译后分句翻译内容,包含分句起始时间、源识别文本以及翻译后文本。
|
749
|
+
当JobStatus为3、4时,该字段返回分句翻译数据。
|
629
750
|
:type TranslateResults: list of TranslateResult
|
630
|
-
:param _JobConfirm: 是否需要确认翻译结果。0:不需要,1
|
751
|
+
:param _JobConfirm: 是否需要确认翻译结果。0:不需要,1:需要。
|
631
752
|
:type JobConfirm: int
|
632
|
-
:param _JobAudioTaskId: 音频任务 ID
|
753
|
+
:param _JobAudioTaskId: 音频任务 ID。
|
633
754
|
:type JobAudioTaskId: str
|
634
|
-
:param _JobVideoModerationId: 视频审核任务ID
|
755
|
+
:param _JobVideoModerationId: 视频审核任务ID。
|
635
756
|
:type JobVideoModerationId: str
|
636
|
-
:param _JobAudioModerationId: 音频审核任务 ID
|
757
|
+
:param _JobAudioModerationId: 音频审核任务 ID。
|
637
758
|
:type JobAudioModerationId: str
|
638
|
-
:param _JobVideoId: 口型驱动任务 ID
|
759
|
+
:param _JobVideoId: 口型驱动任务 ID。
|
639
760
|
:type JobVideoId: str
|
640
|
-
:param _OriginalVideoUrl: 视频素材原始 URL
|
761
|
+
:param _OriginalVideoUrl: 视频素材原始 URL。
|
641
762
|
:type OriginalVideoUrl: str
|
642
|
-
:param _AsrTimestamps:
|
763
|
+
:param _AsrTimestamps: 文本片段及其时间戳。
|
643
764
|
:type AsrTimestamps: list of AsrTimestamps
|
644
|
-
:param _JobSubmitReqId:
|
765
|
+
:param _JobSubmitReqId: 提交视频转译任务时的 requestId。
|
645
766
|
:type JobSubmitReqId: str
|
646
767
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
647
768
|
:type RequestId: str
|
@@ -663,6 +784,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
663
784
|
|
664
785
|
@property
|
665
786
|
def JobStatus(self):
|
787
|
+
"""任务状态。0: 任务初始化。 1:音频转译中。 2:音频转译失败。 3:音频转译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频转译中。 7:视频转译失败。 8:视频转译成功。
|
788
|
+
:rtype: int
|
789
|
+
"""
|
666
790
|
return self._JobStatus
|
667
791
|
|
668
792
|
@JobStatus.setter
|
@@ -671,6 +795,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
671
795
|
|
672
796
|
@property
|
673
797
|
def JobErrorCode(self):
|
798
|
+
"""本次任务出错的错误码,用来定位问题原因。
|
799
|
+
:rtype: str
|
800
|
+
"""
|
674
801
|
return self._JobErrorCode
|
675
802
|
|
676
803
|
@JobErrorCode.setter
|
@@ -679,6 +806,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
679
806
|
|
680
807
|
@property
|
681
808
|
def JobErrorMsg(self):
|
809
|
+
"""任务错误信息,错误码出现的原因。
|
810
|
+
:rtype: str
|
811
|
+
"""
|
682
812
|
return self._JobErrorMsg
|
683
813
|
|
684
814
|
@JobErrorMsg.setter
|
@@ -687,6 +817,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
687
817
|
|
688
818
|
@property
|
689
819
|
def ResultVideoUrl(self):
|
820
|
+
"""视频转译生成结果视频url,有效期1天。当JobStatus为8时,该字段返回视频Url。
|
821
|
+
:rtype: str
|
822
|
+
"""
|
690
823
|
return self._ResultVideoUrl
|
691
824
|
|
692
825
|
@ResultVideoUrl.setter
|
@@ -695,6 +828,10 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
695
828
|
|
696
829
|
@property
|
697
830
|
def TranslateResults(self):
|
831
|
+
"""音频转译后分句翻译内容,包含分句起始时间、源识别文本以及翻译后文本。
|
832
|
+
当JobStatus为3、4时,该字段返回分句翻译数据。
|
833
|
+
:rtype: list of TranslateResult
|
834
|
+
"""
|
698
835
|
return self._TranslateResults
|
699
836
|
|
700
837
|
@TranslateResults.setter
|
@@ -703,6 +840,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
703
840
|
|
704
841
|
@property
|
705
842
|
def JobConfirm(self):
|
843
|
+
"""是否需要确认翻译结果。0:不需要,1:需要。
|
844
|
+
:rtype: int
|
845
|
+
"""
|
706
846
|
return self._JobConfirm
|
707
847
|
|
708
848
|
@JobConfirm.setter
|
@@ -711,6 +851,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
711
851
|
|
712
852
|
@property
|
713
853
|
def JobAudioTaskId(self):
|
854
|
+
"""音频任务 ID。
|
855
|
+
:rtype: str
|
856
|
+
"""
|
714
857
|
return self._JobAudioTaskId
|
715
858
|
|
716
859
|
@JobAudioTaskId.setter
|
@@ -719,6 +862,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
719
862
|
|
720
863
|
@property
|
721
864
|
def JobVideoModerationId(self):
|
865
|
+
"""视频审核任务ID。
|
866
|
+
:rtype: str
|
867
|
+
"""
|
722
868
|
return self._JobVideoModerationId
|
723
869
|
|
724
870
|
@JobVideoModerationId.setter
|
@@ -727,6 +873,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
727
873
|
|
728
874
|
@property
|
729
875
|
def JobAudioModerationId(self):
|
876
|
+
"""音频审核任务 ID。
|
877
|
+
:rtype: str
|
878
|
+
"""
|
730
879
|
return self._JobAudioModerationId
|
731
880
|
|
732
881
|
@JobAudioModerationId.setter
|
@@ -735,6 +884,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
735
884
|
|
736
885
|
@property
|
737
886
|
def JobVideoId(self):
|
887
|
+
"""口型驱动任务 ID。
|
888
|
+
:rtype: str
|
889
|
+
"""
|
738
890
|
return self._JobVideoId
|
739
891
|
|
740
892
|
@JobVideoId.setter
|
@@ -743,6 +895,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
743
895
|
|
744
896
|
@property
|
745
897
|
def OriginalVideoUrl(self):
|
898
|
+
"""视频素材原始 URL。
|
899
|
+
:rtype: str
|
900
|
+
"""
|
746
901
|
return self._OriginalVideoUrl
|
747
902
|
|
748
903
|
@OriginalVideoUrl.setter
|
@@ -751,6 +906,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
751
906
|
|
752
907
|
@property
|
753
908
|
def AsrTimestamps(self):
|
909
|
+
"""文本片段及其时间戳。
|
910
|
+
:rtype: list of AsrTimestamps
|
911
|
+
"""
|
754
912
|
return self._AsrTimestamps
|
755
913
|
|
756
914
|
@AsrTimestamps.setter
|
@@ -759,6 +917,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
759
917
|
|
760
918
|
@property
|
761
919
|
def JobSubmitReqId(self):
|
920
|
+
"""提交视频转译任务时的 requestId。
|
921
|
+
:rtype: str
|
922
|
+
"""
|
762
923
|
return self._JobSubmitReqId
|
763
924
|
|
764
925
|
@JobSubmitReqId.setter
|
@@ -767,6 +928,9 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
767
928
|
|
768
929
|
@property
|
769
930
|
def RequestId(self):
|
931
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
932
|
+
:rtype: str
|
933
|
+
"""
|
770
934
|
return self._RequestId
|
771
935
|
|
772
936
|
@RequestId.setter
|
@@ -809,13 +973,10 @@ class LogoParam(AbstractModel):
|
|
809
973
|
def __init__(self):
|
810
974
|
r"""
|
811
975
|
:param _LogoUrl: 水印 Url
|
812
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
813
976
|
:type LogoUrl: str
|
814
977
|
:param _LogoImage: 水印 Base64,Url 和 Base64 二选一传入,如果都提供以 Url 为准
|
815
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
816
978
|
:type LogoImage: str
|
817
|
-
:param _LogoRect:
|
818
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
979
|
+
:param _LogoRect: 水印图片位于生成结果图中的坐标及宽高,将按照坐标对标识图片进行位置和大小的拉伸匹配。
|
819
980
|
:type LogoRect: :class:`tencentcloud.vclm.v20240523.models.LogoRect`
|
820
981
|
"""
|
821
982
|
self._LogoUrl = None
|
@@ -824,6 +985,9 @@ class LogoParam(AbstractModel):
|
|
824
985
|
|
825
986
|
@property
|
826
987
|
def LogoUrl(self):
|
988
|
+
"""水印 Url
|
989
|
+
:rtype: str
|
990
|
+
"""
|
827
991
|
return self._LogoUrl
|
828
992
|
|
829
993
|
@LogoUrl.setter
|
@@ -832,6 +996,9 @@ class LogoParam(AbstractModel):
|
|
832
996
|
|
833
997
|
@property
|
834
998
|
def LogoImage(self):
|
999
|
+
"""水印 Base64,Url 和 Base64 二选一传入,如果都提供以 Url 为准
|
1000
|
+
:rtype: str
|
1001
|
+
"""
|
835
1002
|
return self._LogoImage
|
836
1003
|
|
837
1004
|
@LogoImage.setter
|
@@ -840,6 +1007,9 @@ class LogoParam(AbstractModel):
|
|
840
1007
|
|
841
1008
|
@property
|
842
1009
|
def LogoRect(self):
|
1010
|
+
"""水印图片位于生成结果图中的坐标及宽高,将按照坐标对标识图片进行位置和大小的拉伸匹配。
|
1011
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.LogoRect`
|
1012
|
+
"""
|
843
1013
|
return self._LogoRect
|
844
1014
|
|
845
1015
|
@LogoRect.setter
|
@@ -864,23 +1034,19 @@ class LogoParam(AbstractModel):
|
|
864
1034
|
|
865
1035
|
|
866
1036
|
class LogoRect(AbstractModel):
|
867
|
-
"""
|
1037
|
+
"""水印图输入框
|
868
1038
|
|
869
1039
|
"""
|
870
1040
|
|
871
1041
|
def __init__(self):
|
872
1042
|
r"""
|
873
|
-
:param _X:
|
874
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1043
|
+
:param _X: 水印图框X坐标值。当值大于0时,坐标轴原点位于原图左侧,方向指右;当值小于0时,坐标轴原点位于原图右侧,方向指左。
|
875
1044
|
:type X: int
|
876
|
-
:param _Y:
|
877
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1045
|
+
:param _Y: 水印图框Y坐标值。当值大于0时,坐标轴原点位于原图上侧,方向指下;当值小于0时,坐标轴原点位于原图下侧,方向指上。
|
878
1046
|
:type Y: int
|
879
|
-
:param _Width:
|
880
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1047
|
+
:param _Width: 水印图框宽度。
|
881
1048
|
:type Width: int
|
882
|
-
:param _Height:
|
883
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1049
|
+
:param _Height: 水印图框高度。
|
884
1050
|
:type Height: int
|
885
1051
|
"""
|
886
1052
|
self._X = None
|
@@ -890,6 +1056,9 @@ class LogoRect(AbstractModel):
|
|
890
1056
|
|
891
1057
|
@property
|
892
1058
|
def X(self):
|
1059
|
+
"""水印图框X坐标值。当值大于0时,坐标轴原点位于原图左侧,方向指右;当值小于0时,坐标轴原点位于原图右侧,方向指左。
|
1060
|
+
:rtype: int
|
1061
|
+
"""
|
893
1062
|
return self._X
|
894
1063
|
|
895
1064
|
@X.setter
|
@@ -898,6 +1067,9 @@ class LogoRect(AbstractModel):
|
|
898
1067
|
|
899
1068
|
@property
|
900
1069
|
def Y(self):
|
1070
|
+
"""水印图框Y坐标值。当值大于0时,坐标轴原点位于原图上侧,方向指下;当值小于0时,坐标轴原点位于原图下侧,方向指上。
|
1071
|
+
:rtype: int
|
1072
|
+
"""
|
901
1073
|
return self._Y
|
902
1074
|
|
903
1075
|
@Y.setter
|
@@ -906,6 +1078,9 @@ class LogoRect(AbstractModel):
|
|
906
1078
|
|
907
1079
|
@property
|
908
1080
|
def Width(self):
|
1081
|
+
"""水印图框宽度。
|
1082
|
+
:rtype: int
|
1083
|
+
"""
|
909
1084
|
return self._Width
|
910
1085
|
|
911
1086
|
@Width.setter
|
@@ -914,6 +1089,9 @@ class LogoRect(AbstractModel):
|
|
914
1089
|
|
915
1090
|
@property
|
916
1091
|
def Height(self):
|
1092
|
+
"""水印图框高度。
|
1093
|
+
:rtype: int
|
1094
|
+
"""
|
917
1095
|
return self._Height
|
918
1096
|
|
919
1097
|
@Height.setter
|
@@ -981,6 +1159,12 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
981
1159
|
|
982
1160
|
@property
|
983
1161
|
def ImageUrl(self):
|
1162
|
+
"""图片格式:支持PNG、JPG、JPEG格式;
|
1163
|
+
图片分辨率:长边分辨率不超过2056;
|
1164
|
+
图片大小:不超过10M;
|
1165
|
+
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
1166
|
+
:rtype: str
|
1167
|
+
"""
|
984
1168
|
return self._ImageUrl
|
985
1169
|
|
986
1170
|
@ImageUrl.setter
|
@@ -989,6 +1173,9 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
989
1173
|
|
990
1174
|
@property
|
991
1175
|
def ImageBase64(self):
|
1176
|
+
"""图片base64数据。图片格式:支持PNG、JPG、JPEG格式;图片分辨率:长边分辨率不超过2056;图片大小:不超过10M;图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
1177
|
+
:rtype: str
|
1178
|
+
"""
|
992
1179
|
return self._ImageBase64
|
993
1180
|
|
994
1181
|
@ImageBase64.setter
|
@@ -997,6 +1184,10 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
997
1184
|
|
998
1185
|
@property
|
999
1186
|
def TemplateId(self):
|
1187
|
+
"""动作模板ID。取值说明:ke3 科目三;tuziwu 兔子舞;huajiangwu 划桨舞。
|
1188
|
+
|
1189
|
+
:rtype: str
|
1190
|
+
"""
|
1000
1191
|
return self._TemplateId
|
1001
1192
|
|
1002
1193
|
@TemplateId.setter
|
@@ -1005,6 +1196,9 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
1005
1196
|
|
1006
1197
|
@property
|
1007
1198
|
def EnableAudio(self):
|
1199
|
+
"""结果视频是否保留模板音频。默认为true
|
1200
|
+
:rtype: bool
|
1201
|
+
"""
|
1008
1202
|
return self._EnableAudio
|
1009
1203
|
|
1010
1204
|
@EnableAudio.setter
|
@@ -1013,6 +1207,9 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
1013
1207
|
|
1014
1208
|
@property
|
1015
1209
|
def EnableBodyJoins(self):
|
1210
|
+
"""是否检测输入图人体12个身体部位(头部、颈部、右肩、右肘、右腕、左肩、左肘、左腕、右髋、左髋,、左膝、右膝)。默认不检测。
|
1211
|
+
:rtype: bool
|
1212
|
+
"""
|
1016
1213
|
return self._EnableBodyJoins
|
1017
1214
|
|
1018
1215
|
@EnableBodyJoins.setter
|
@@ -1021,6 +1218,10 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
1021
1218
|
|
1022
1219
|
@property
|
1023
1220
|
def EnableSegment(self):
|
1221
|
+
"""最终视频是否保留原图的背景(该模式对于tuziwu、huajiangwu不生效)
|
1222
|
+
|
1223
|
+
:rtype: bool
|
1224
|
+
"""
|
1024
1225
|
return self._EnableSegment
|
1025
1226
|
|
1026
1227
|
@EnableSegment.setter
|
@@ -1029,6 +1230,13 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
1029
1230
|
|
1030
1231
|
@property
|
1031
1232
|
def LogoAdd(self):
|
1233
|
+
"""为生成视频添加标识的开关,默认为0。
|
1234
|
+
1:添加标识。
|
1235
|
+
0:不添加标识。
|
1236
|
+
其他数值:默认按1处理。
|
1237
|
+
建议您使用显著标识来提示,该视频是 AI 生成的视频。
|
1238
|
+
:rtype: int
|
1239
|
+
"""
|
1032
1240
|
return self._LogoAdd
|
1033
1241
|
|
1034
1242
|
@LogoAdd.setter
|
@@ -1037,6 +1245,10 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
1037
1245
|
|
1038
1246
|
@property
|
1039
1247
|
def LogoParam(self):
|
1248
|
+
"""标识内容设置。
|
1249
|
+
默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
1250
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
|
1251
|
+
"""
|
1040
1252
|
return self._LogoParam
|
1041
1253
|
|
1042
1254
|
@LogoParam.setter
|
@@ -1082,6 +1294,9 @@ class SubmitImageAnimateJobResponse(AbstractModel):
|
|
1082
1294
|
|
1083
1295
|
@property
|
1084
1296
|
def JobId(self):
|
1297
|
+
"""任务ID。
|
1298
|
+
:rtype: str
|
1299
|
+
"""
|
1085
1300
|
return self._JobId
|
1086
1301
|
|
1087
1302
|
@JobId.setter
|
@@ -1090,6 +1305,9 @@ class SubmitImageAnimateJobResponse(AbstractModel):
|
|
1090
1305
|
|
1091
1306
|
@property
|
1092
1307
|
def RequestId(self):
|
1308
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1309
|
+
:rtype: str
|
1310
|
+
"""
|
1093
1311
|
return self._RequestId
|
1094
1312
|
|
1095
1313
|
@RequestId.setter
|
@@ -1118,7 +1336,7 @@ class SubmitPortraitSingJobRequest(AbstractModel):
|
|
1118
1336
|
- 图片分辨率:192~4096
|
1119
1337
|
- 图片大小:不超过10M
|
1120
1338
|
- 图片宽高比:图片【宽:高】在1:2到2:1范围内
|
1121
|
-
-
|
1339
|
+
- 图片内容:避免上传无人脸、无宠物脸或脸部过小、不完整、不清晰、偏转角度过大、嘴部被遮挡的图片。
|
1122
1340
|
:type ImageUrl: str
|
1123
1341
|
:param _ImageBase64: 传入图片Base64编码,编码后请求体大小不超过10M。
|
1124
1342
|
图片Base64编码与URL地址必传其一,如果都传以ImageBase64为准。
|
@@ -1127,14 +1345,36 @@ class SubmitPortraitSingJobRequest(AbstractModel):
|
|
1127
1345
|
Person:人像模式,仅支持上传人像图片,人像生成效果更好,如果图中未检测到有效人脸将被拦截,生成时会将视频短边分辨率放缩至512。
|
1128
1346
|
Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨率视频。
|
1129
1347
|
:type Mode: str
|
1348
|
+
:param _Resolution: 生成视频尺寸。可选取值:"512:512"。
|
1349
|
+
|
1350
|
+
人像模式下,如果不传该参数,默认生成视频的短边分辨率为512,长边分辨率不固定、由模型根据生成效果自动适配得到。如需固定生成分辨率可传入512:512。
|
1351
|
+
|
1352
|
+
宠物模式下,如果不传该参数,默认将脸部唱演视频回贴原图,生成视频分辨率与原图一致。如不需要脸部回贴,仅保留脸部唱演视频,可传入512:512。
|
1353
|
+
:type Resolution: str
|
1354
|
+
:param _LogoAdd: 为生成视频添加标识的开关,默认为0。
|
1355
|
+
1:添加标识;
|
1356
|
+
0:不添加标识;
|
1357
|
+
其他数值:默认按1处理。
|
1358
|
+
建议您使用显著标识来提示,该视频是 AI 生成的视频。
|
1359
|
+
:type LogoAdd: int
|
1360
|
+
:param _LogoParam: 标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
1361
|
+
:type LogoParam: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
|
1130
1362
|
"""
|
1131
1363
|
self._AudioUrl = None
|
1132
1364
|
self._ImageUrl = None
|
1133
1365
|
self._ImageBase64 = None
|
1134
1366
|
self._Mode = None
|
1367
|
+
self._Resolution = None
|
1368
|
+
self._LogoAdd = None
|
1369
|
+
self._LogoParam = None
|
1135
1370
|
|
1136
1371
|
@property
|
1137
1372
|
def AudioUrl(self):
|
1373
|
+
"""传入音频URL地址,音频要求:
|
1374
|
+
- 音频时长:2秒 - 60秒
|
1375
|
+
- 音频格式:mp3、wav、m4a
|
1376
|
+
:rtype: str
|
1377
|
+
"""
|
1138
1378
|
return self._AudioUrl
|
1139
1379
|
|
1140
1380
|
@AudioUrl.setter
|
@@ -1143,6 +1383,14 @@ Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨
|
|
1143
1383
|
|
1144
1384
|
@property
|
1145
1385
|
def ImageUrl(self):
|
1386
|
+
"""传入图片URL地址,图片要求:
|
1387
|
+
- 图片格式:jpg、jpeg、png、bmp、webp
|
1388
|
+
- 图片分辨率:192~4096
|
1389
|
+
- 图片大小:不超过10M
|
1390
|
+
- 图片宽高比:图片【宽:高】在1:2到2:1范围内
|
1391
|
+
- 图片内容:避免上传无人脸、无宠物脸或脸部过小、不完整、不清晰、偏转角度过大、嘴部被遮挡的图片。
|
1392
|
+
:rtype: str
|
1393
|
+
"""
|
1146
1394
|
return self._ImageUrl
|
1147
1395
|
|
1148
1396
|
@ImageUrl.setter
|
@@ -1151,6 +1399,10 @@ Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨
|
|
1151
1399
|
|
1152
1400
|
@property
|
1153
1401
|
def ImageBase64(self):
|
1402
|
+
"""传入图片Base64编码,编码后请求体大小不超过10M。
|
1403
|
+
图片Base64编码与URL地址必传其一,如果都传以ImageBase64为准。
|
1404
|
+
:rtype: str
|
1405
|
+
"""
|
1154
1406
|
return self._ImageBase64
|
1155
1407
|
|
1156
1408
|
@ImageBase64.setter
|
@@ -1159,18 +1411,69 @@ Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨
|
|
1159
1411
|
|
1160
1412
|
@property
|
1161
1413
|
def Mode(self):
|
1414
|
+
"""唱演模式,默认使用人像模式。
|
1415
|
+
Person:人像模式,仅支持上传人像图片,人像生成效果更好,如果图中未检测到有效人脸将被拦截,生成时会将视频短边分辨率放缩至512。
|
1416
|
+
Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨率视频。
|
1417
|
+
:rtype: str
|
1418
|
+
"""
|
1162
1419
|
return self._Mode
|
1163
1420
|
|
1164
1421
|
@Mode.setter
|
1165
1422
|
def Mode(self, Mode):
|
1166
1423
|
self._Mode = Mode
|
1167
1424
|
|
1425
|
+
@property
|
1426
|
+
def Resolution(self):
|
1427
|
+
"""生成视频尺寸。可选取值:"512:512"。
|
1428
|
+
|
1429
|
+
人像模式下,如果不传该参数,默认生成视频的短边分辨率为512,长边分辨率不固定、由模型根据生成效果自动适配得到。如需固定生成分辨率可传入512:512。
|
1430
|
+
|
1431
|
+
宠物模式下,如果不传该参数,默认将脸部唱演视频回贴原图,生成视频分辨率与原图一致。如不需要脸部回贴,仅保留脸部唱演视频,可传入512:512。
|
1432
|
+
:rtype: str
|
1433
|
+
"""
|
1434
|
+
return self._Resolution
|
1435
|
+
|
1436
|
+
@Resolution.setter
|
1437
|
+
def Resolution(self, Resolution):
|
1438
|
+
self._Resolution = Resolution
|
1439
|
+
|
1440
|
+
@property
|
1441
|
+
def LogoAdd(self):
|
1442
|
+
"""为生成视频添加标识的开关,默认为0。
|
1443
|
+
1:添加标识;
|
1444
|
+
0:不添加标识;
|
1445
|
+
其他数值:默认按1处理。
|
1446
|
+
建议您使用显著标识来提示,该视频是 AI 生成的视频。
|
1447
|
+
:rtype: int
|
1448
|
+
"""
|
1449
|
+
return self._LogoAdd
|
1450
|
+
|
1451
|
+
@LogoAdd.setter
|
1452
|
+
def LogoAdd(self, LogoAdd):
|
1453
|
+
self._LogoAdd = LogoAdd
|
1454
|
+
|
1455
|
+
@property
|
1456
|
+
def LogoParam(self):
|
1457
|
+
"""标识内容设置。 默认在生成视频的右下角添加“视频由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。
|
1458
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
|
1459
|
+
"""
|
1460
|
+
return self._LogoParam
|
1461
|
+
|
1462
|
+
@LogoParam.setter
|
1463
|
+
def LogoParam(self, LogoParam):
|
1464
|
+
self._LogoParam = LogoParam
|
1465
|
+
|
1168
1466
|
|
1169
1467
|
def _deserialize(self, params):
|
1170
1468
|
self._AudioUrl = params.get("AudioUrl")
|
1171
1469
|
self._ImageUrl = params.get("ImageUrl")
|
1172
1470
|
self._ImageBase64 = params.get("ImageBase64")
|
1173
1471
|
self._Mode = params.get("Mode")
|
1472
|
+
self._Resolution = params.get("Resolution")
|
1473
|
+
self._LogoAdd = params.get("LogoAdd")
|
1474
|
+
if params.get("LogoParam") is not None:
|
1475
|
+
self._LogoParam = LogoParam()
|
1476
|
+
self._LogoParam._deserialize(params.get("LogoParam"))
|
1174
1477
|
memeber_set = set(params.keys())
|
1175
1478
|
for name, value in vars(self).items():
|
1176
1479
|
property_name = name[1:]
|
@@ -1188,7 +1491,7 @@ class SubmitPortraitSingJobResponse(AbstractModel):
|
|
1188
1491
|
|
1189
1492
|
def __init__(self):
|
1190
1493
|
r"""
|
1191
|
-
:param _JobId: 任务ID
|
1494
|
+
:param _JobId: 任务ID。任务有效期为48小时。
|
1192
1495
|
:type JobId: str
|
1193
1496
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1194
1497
|
:type RequestId: str
|
@@ -1198,6 +1501,9 @@ class SubmitPortraitSingJobResponse(AbstractModel):
|
|
1198
1501
|
|
1199
1502
|
@property
|
1200
1503
|
def JobId(self):
|
1504
|
+
"""任务ID。任务有效期为48小时。
|
1505
|
+
:rtype: str
|
1506
|
+
"""
|
1201
1507
|
return self._JobId
|
1202
1508
|
|
1203
1509
|
@JobId.setter
|
@@ -1206,6 +1512,9 @@ class SubmitPortraitSingJobResponse(AbstractModel):
|
|
1206
1512
|
|
1207
1513
|
@property
|
1208
1514
|
def RequestId(self):
|
1515
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1516
|
+
:rtype: str
|
1517
|
+
"""
|
1209
1518
|
return self._RequestId
|
1210
1519
|
|
1211
1520
|
@RequestId.setter
|
@@ -1225,7 +1534,11 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1225
1534
|
|
1226
1535
|
def __init__(self):
|
1227
1536
|
r"""
|
1228
|
-
:param _StyleId: 风格ID
|
1537
|
+
:param _StyleId: 风格ID。取值说明:
|
1538
|
+
2d_anime:2D动漫;
|
1539
|
+
3d_cartoon:3D卡通;
|
1540
|
+
3d_china:3D国潮;
|
1541
|
+
pixel_art:像素风。
|
1229
1542
|
:type StyleId: str
|
1230
1543
|
:param _VideoUrl: 输入视频URL。视频要求:
|
1231
1544
|
- 视频格式:mp4、mov;
|
@@ -1234,9 +1547,11 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1234
1547
|
- 视频大小:不超过200M;
|
1235
1548
|
- 视频FPS:15~60fps。
|
1236
1549
|
:type VideoUrl: str
|
1237
|
-
:param _StyleStrength:
|
1238
|
-
|
1239
|
-
|
1550
|
+
:param _StyleStrength: 风格化强度。取值说明:
|
1551
|
+
low:风格化强度弱;
|
1552
|
+
medium:风格化强度中等;
|
1553
|
+
high:风格化强度强。
|
1554
|
+
默认值为medium。
|
1240
1555
|
:type StyleStrength: str
|
1241
1556
|
"""
|
1242
1557
|
self._StyleId = None
|
@@ -1245,6 +1560,13 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1245
1560
|
|
1246
1561
|
@property
|
1247
1562
|
def StyleId(self):
|
1563
|
+
"""风格ID。取值说明:
|
1564
|
+
2d_anime:2D动漫;
|
1565
|
+
3d_cartoon:3D卡通;
|
1566
|
+
3d_china:3D国潮;
|
1567
|
+
pixel_art:像素风。
|
1568
|
+
:rtype: str
|
1569
|
+
"""
|
1248
1570
|
return self._StyleId
|
1249
1571
|
|
1250
1572
|
@StyleId.setter
|
@@ -1253,6 +1575,14 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1253
1575
|
|
1254
1576
|
@property
|
1255
1577
|
def VideoUrl(self):
|
1578
|
+
"""输入视频URL。视频要求:
|
1579
|
+
- 视频格式:mp4、mov;
|
1580
|
+
- 视频时长:1~60秒;
|
1581
|
+
- 视频分辨率:540P~2056P,即长宽像素数均在540px~2056px范围内;
|
1582
|
+
- 视频大小:不超过200M;
|
1583
|
+
- 视频FPS:15~60fps。
|
1584
|
+
:rtype: str
|
1585
|
+
"""
|
1256
1586
|
return self._VideoUrl
|
1257
1587
|
|
1258
1588
|
@VideoUrl.setter
|
@@ -1261,6 +1591,13 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1261
1591
|
|
1262
1592
|
@property
|
1263
1593
|
def StyleStrength(self):
|
1594
|
+
"""风格化强度。取值说明:
|
1595
|
+
low:风格化强度弱;
|
1596
|
+
medium:风格化强度中等;
|
1597
|
+
high:风格化强度强。
|
1598
|
+
默认值为medium。
|
1599
|
+
:rtype: str
|
1600
|
+
"""
|
1264
1601
|
return self._StyleStrength
|
1265
1602
|
|
1266
1603
|
@StyleStrength.setter
|
@@ -1289,7 +1626,7 @@ class SubmitVideoStylizationJobResponse(AbstractModel):
|
|
1289
1626
|
|
1290
1627
|
def __init__(self):
|
1291
1628
|
r"""
|
1292
|
-
:param _JobId: 任务ID
|
1629
|
+
:param _JobId: 任务ID。任务有效期为48小时。
|
1293
1630
|
:type JobId: str
|
1294
1631
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1295
1632
|
:type RequestId: str
|
@@ -1299,6 +1636,9 @@ class SubmitVideoStylizationJobResponse(AbstractModel):
|
|
1299
1636
|
|
1300
1637
|
@property
|
1301
1638
|
def JobId(self):
|
1639
|
+
"""任务ID。任务有效期为48小时。
|
1640
|
+
:rtype: str
|
1641
|
+
"""
|
1302
1642
|
return self._JobId
|
1303
1643
|
|
1304
1644
|
@JobId.setter
|
@@ -1307,6 +1647,9 @@ class SubmitVideoStylizationJobResponse(AbstractModel):
|
|
1307
1647
|
|
1308
1648
|
@property
|
1309
1649
|
def RequestId(self):
|
1650
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1651
|
+
:rtype: str
|
1652
|
+
"""
|
1310
1653
|
return self._RequestId
|
1311
1654
|
|
1312
1655
|
@RequestId.setter
|
@@ -1328,45 +1671,61 @@ class SubmitVideoTranslateJobRequest(AbstractModel):
|
|
1328
1671
|
r"""
|
1329
1672
|
:param _VideoUrl: 视频地址URL。
|
1330
1673
|
格式要求:支持 mp4、mov 。
|
1331
|
-
时长要求:【
|
1674
|
+
时长要求:【5-600】秒。
|
1332
1675
|
fps 要求:【15-60】fps
|
1333
|
-
分辨率要求:单边像素要求在 【
|
1676
|
+
分辨率要求:单边像素要求在 【360~4096】 之间。
|
1677
|
+
大小要求:不超过500Mb
|
1334
1678
|
|
1335
1679
|
:type VideoUrl: str
|
1336
|
-
:param _SrcLang:
|
1680
|
+
:param _SrcLang: 输入视频中音频语种
|
1681
|
+
目前支持语种范围:zh(中文), en(英文)
|
1337
1682
|
:type SrcLang: str
|
1338
|
-
:param
|
1339
|
-
|
1340
|
-
|
1341
|
-
|
1342
|
-
格式要求:支持 mp3、m4a、acc、wav 格式。
|
1343
|
-
时长要求:【10~300】秒
|
1344
|
-
大小要求:不超过 100M。
|
1683
|
+
:param _AudioUrl: 当音频 URL 不为空时,不经过语音AI处理,直接以视频为素材用音频内容做视频口型驱动。
|
1684
|
+
格式要求:支持 mp3、m4a、aac、wav 格式。
|
1685
|
+
时长要求:【5~600】秒,音频时长要匹配视频时长。
|
1686
|
+
大小要求:不超过 100Mb。
|
1345
1687
|
:type AudioUrl: str
|
1688
|
+
:param _DstLang: 输出视频中翻译语种
|
1689
|
+
目前支持语种范围:zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、id(印尼语)、it(意大利语)、ja(日语)、ko(韩语)、ms(马来语)、pt(葡萄牙语)、ru(俄语)、th(泰语)、tr(土耳其语)、vi(越南语)
|
1690
|
+
:type DstLang: str
|
1691
|
+
:param _VoiceType: 翻译语种匹配音色种别,其他说明如下:
|
1692
|
+
1)默认不填代表克隆输入视频中音频音色;
|
1693
|
+
2)翻译语种非中英(即zh、en),该项必填;
|
1694
|
+
|
1695
|
+
具体音色种别详见说明“支持音色种别列表”,每个音色都支持 15 个目标语种。
|
1696
|
+
|
1697
|
+
:type VoiceType: str
|
1698
|
+
:param _Confirm: 是否需要纠正视频中音频识别与翻译内容,取值范围:0-不需要,1-需要,默认0。
|
1699
|
+
|
1700
|
+
:type Confirm: int
|
1346
1701
|
:param _RemoveVocal: 是否需要去除VideoUrl或AudioUrl中背景音,取值范围:0-不需要,1-需要,默认0 。
|
1347
1702
|
:type RemoveVocal: int
|
1348
|
-
:param
|
1349
|
-
:type Confirm: int
|
1350
|
-
:param _LipSync: 是否开启口型驱动,0:不开启,1:开启。默认开启。
|
1703
|
+
:param _LipSync: 是否开启口型驱动,0-不开启,1-开启。默认0。
|
1351
1704
|
:type LipSync: int
|
1352
|
-
:param
|
1353
|
-
|
1354
|
-
2)目标语种为zh,en时,该项为非必填,若填入,则对应填入的音色
|
1355
|
-
|
1356
|
-
具体音色包含请见“支持音色种别列表”
|
1357
|
-
:type VoiceType: str
|
1705
|
+
:param _VideoLoop: 当 AudioUrl 字段有输入音频时,如果输入音频时长大于输入视频时长,会拼接视频( 0-正向拼接、1-反向拼接 )对齐音频时长。默认 0。
|
1706
|
+
:type VideoLoop: int
|
1358
1707
|
"""
|
1359
1708
|
self._VideoUrl = None
|
1360
1709
|
self._SrcLang = None
|
1361
|
-
self._DstLang = None
|
1362
1710
|
self._AudioUrl = None
|
1363
|
-
self.
|
1711
|
+
self._DstLang = None
|
1712
|
+
self._VoiceType = None
|
1364
1713
|
self._Confirm = None
|
1714
|
+
self._RemoveVocal = None
|
1365
1715
|
self._LipSync = None
|
1366
|
-
self.
|
1716
|
+
self._VideoLoop = None
|
1367
1717
|
|
1368
1718
|
@property
|
1369
1719
|
def VideoUrl(self):
|
1720
|
+
"""视频地址URL。
|
1721
|
+
格式要求:支持 mp4、mov 。
|
1722
|
+
时长要求:【5-600】秒。
|
1723
|
+
fps 要求:【15-60】fps
|
1724
|
+
分辨率要求:单边像素要求在 【360~4096】 之间。
|
1725
|
+
大小要求:不超过500Mb
|
1726
|
+
|
1727
|
+
:rtype: str
|
1728
|
+
"""
|
1370
1729
|
return self._VideoUrl
|
1371
1730
|
|
1372
1731
|
@VideoUrl.setter
|
@@ -1375,14 +1734,36 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1375
1734
|
|
1376
1735
|
@property
|
1377
1736
|
def SrcLang(self):
|
1737
|
+
"""输入视频中音频语种
|
1738
|
+
目前支持语种范围:zh(中文), en(英文)
|
1739
|
+
:rtype: str
|
1740
|
+
"""
|
1378
1741
|
return self._SrcLang
|
1379
1742
|
|
1380
1743
|
@SrcLang.setter
|
1381
1744
|
def SrcLang(self, SrcLang):
|
1382
1745
|
self._SrcLang = SrcLang
|
1383
1746
|
|
1747
|
+
@property
|
1748
|
+
def AudioUrl(self):
|
1749
|
+
"""当音频 URL 不为空时,不经过语音AI处理,直接以视频为素材用音频内容做视频口型驱动。
|
1750
|
+
格式要求:支持 mp3、m4a、aac、wav 格式。
|
1751
|
+
时长要求:【5~600】秒,音频时长要匹配视频时长。
|
1752
|
+
大小要求:不超过 100Mb。
|
1753
|
+
:rtype: str
|
1754
|
+
"""
|
1755
|
+
return self._AudioUrl
|
1756
|
+
|
1757
|
+
@AudioUrl.setter
|
1758
|
+
def AudioUrl(self, AudioUrl):
|
1759
|
+
self._AudioUrl = AudioUrl
|
1760
|
+
|
1384
1761
|
@property
|
1385
1762
|
def DstLang(self):
|
1763
|
+
"""输出视频中翻译语种
|
1764
|
+
目前支持语种范围:zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、id(印尼语)、it(意大利语)、ja(日语)、ko(韩语)、ms(马来语)、pt(葡萄牙语)、ru(俄语)、th(泰语)、tr(土耳其语)、vi(越南语)
|
1765
|
+
:rtype: str
|
1766
|
+
"""
|
1386
1767
|
return self._DstLang
|
1387
1768
|
|
1388
1769
|
@DstLang.setter
|
@@ -1390,31 +1771,49 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1390
1771
|
self._DstLang = DstLang
|
1391
1772
|
|
1392
1773
|
@property
|
1393
|
-
def
|
1394
|
-
|
1774
|
+
def VoiceType(self):
|
1775
|
+
"""翻译语种匹配音色种别,其他说明如下:
|
1776
|
+
1)默认不填代表克隆输入视频中音频音色;
|
1777
|
+
2)翻译语种非中英(即zh、en),该项必填;
|
1395
1778
|
|
1396
|
-
|
1397
|
-
def AudioUrl(self, AudioUrl):
|
1398
|
-
self._AudioUrl = AudioUrl
|
1779
|
+
具体音色种别详见说明“支持音色种别列表”,每个音色都支持 15 个目标语种。
|
1399
1780
|
|
1400
|
-
|
1401
|
-
|
1402
|
-
return self.
|
1781
|
+
:rtype: str
|
1782
|
+
"""
|
1783
|
+
return self._VoiceType
|
1403
1784
|
|
1404
|
-
@
|
1405
|
-
def
|
1406
|
-
self.
|
1785
|
+
@VoiceType.setter
|
1786
|
+
def VoiceType(self, VoiceType):
|
1787
|
+
self._VoiceType = VoiceType
|
1407
1788
|
|
1408
1789
|
@property
|
1409
1790
|
def Confirm(self):
|
1791
|
+
"""是否需要纠正视频中音频识别与翻译内容,取值范围:0-不需要,1-需要,默认0。
|
1792
|
+
|
1793
|
+
:rtype: int
|
1794
|
+
"""
|
1410
1795
|
return self._Confirm
|
1411
1796
|
|
1412
1797
|
@Confirm.setter
|
1413
1798
|
def Confirm(self, Confirm):
|
1414
1799
|
self._Confirm = Confirm
|
1415
1800
|
|
1801
|
+
@property
|
1802
|
+
def RemoveVocal(self):
|
1803
|
+
"""是否需要去除VideoUrl或AudioUrl中背景音,取值范围:0-不需要,1-需要,默认0 。
|
1804
|
+
:rtype: int
|
1805
|
+
"""
|
1806
|
+
return self._RemoveVocal
|
1807
|
+
|
1808
|
+
@RemoveVocal.setter
|
1809
|
+
def RemoveVocal(self, RemoveVocal):
|
1810
|
+
self._RemoveVocal = RemoveVocal
|
1811
|
+
|
1416
1812
|
@property
|
1417
1813
|
def LipSync(self):
|
1814
|
+
"""是否开启口型驱动,0-不开启,1-开启。默认0。
|
1815
|
+
:rtype: int
|
1816
|
+
"""
|
1418
1817
|
return self._LipSync
|
1419
1818
|
|
1420
1819
|
@LipSync.setter
|
@@ -1422,23 +1821,27 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1422
1821
|
self._LipSync = LipSync
|
1423
1822
|
|
1424
1823
|
@property
|
1425
|
-
def
|
1426
|
-
|
1824
|
+
def VideoLoop(self):
|
1825
|
+
"""当 AudioUrl 字段有输入音频时,如果输入音频时长大于输入视频时长,会拼接视频( 0-正向拼接、1-反向拼接 )对齐音频时长。默认 0。
|
1826
|
+
:rtype: int
|
1827
|
+
"""
|
1828
|
+
return self._VideoLoop
|
1427
1829
|
|
1428
|
-
@
|
1429
|
-
def
|
1430
|
-
self.
|
1830
|
+
@VideoLoop.setter
|
1831
|
+
def VideoLoop(self, VideoLoop):
|
1832
|
+
self._VideoLoop = VideoLoop
|
1431
1833
|
|
1432
1834
|
|
1433
1835
|
def _deserialize(self, params):
|
1434
1836
|
self._VideoUrl = params.get("VideoUrl")
|
1435
1837
|
self._SrcLang = params.get("SrcLang")
|
1436
|
-
self._DstLang = params.get("DstLang")
|
1437
1838
|
self._AudioUrl = params.get("AudioUrl")
|
1438
|
-
self.
|
1839
|
+
self._DstLang = params.get("DstLang")
|
1840
|
+
self._VoiceType = params.get("VoiceType")
|
1439
1841
|
self._Confirm = params.get("Confirm")
|
1842
|
+
self._RemoveVocal = params.get("RemoveVocal")
|
1440
1843
|
self._LipSync = params.get("LipSync")
|
1441
|
-
self.
|
1844
|
+
self._VideoLoop = params.get("VideoLoop")
|
1442
1845
|
memeber_set = set(params.keys())
|
1443
1846
|
for name, value in vars(self).items():
|
1444
1847
|
property_name = name[1:]
|
@@ -1456,7 +1859,7 @@ class SubmitVideoTranslateJobResponse(AbstractModel):
|
|
1456
1859
|
|
1457
1860
|
def __init__(self):
|
1458
1861
|
r"""
|
1459
|
-
:param _JobId: 视频转译任务的
|
1862
|
+
:param _JobId: 视频转译任务的ID
|
1460
1863
|
:type JobId: str
|
1461
1864
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1462
1865
|
:type RequestId: str
|
@@ -1466,6 +1869,9 @@ class SubmitVideoTranslateJobResponse(AbstractModel):
|
|
1466
1869
|
|
1467
1870
|
@property
|
1468
1871
|
def JobId(self):
|
1872
|
+
"""视频转译任务的ID
|
1873
|
+
:rtype: str
|
1874
|
+
"""
|
1469
1875
|
return self._JobId
|
1470
1876
|
|
1471
1877
|
@JobId.setter
|
@@ -1474,6 +1880,9 @@ class SubmitVideoTranslateJobResponse(AbstractModel):
|
|
1474
1880
|
|
1475
1881
|
@property
|
1476
1882
|
def RequestId(self):
|
1883
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1884
|
+
:rtype: str
|
1885
|
+
"""
|
1477
1886
|
return self._RequestId
|
1478
1887
|
|
1479
1888
|
@RequestId.setter
|
@@ -1505,6 +1914,10 @@ class TranslateResult(AbstractModel):
|
|
1505
1914
|
|
1506
1915
|
@property
|
1507
1916
|
def SourceText(self):
|
1917
|
+
"""翻译源文字
|
1918
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1919
|
+
:rtype: str
|
1920
|
+
"""
|
1508
1921
|
return self._SourceText
|
1509
1922
|
|
1510
1923
|
@SourceText.setter
|
@@ -1513,6 +1926,10 @@ class TranslateResult(AbstractModel):
|
|
1513
1926
|
|
1514
1927
|
@property
|
1515
1928
|
def TargetText(self):
|
1929
|
+
"""翻译后文字。
|
1930
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1931
|
+
:rtype: str
|
1932
|
+
"""
|
1516
1933
|
return self._TargetText
|
1517
1934
|
|
1518
1935
|
@TargetText.setter
|