tencentcloud-sdk-python-vclm 3.0.1263__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 +472 -173
- tencentcloud/vclm/v20240523/vclm_client.py +60 -54
- {tencentcloud_sdk_python_vclm-3.0.1263.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.1263.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_vclm-3.0.1263.dist-info → tencentcloud_sdk_python_vclm-3.0.1278.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_vclm-3.0.1263.dist-info → tencentcloud_sdk_python_vclm-3.0.1278.dist-info}/top_level.txt +0 -0
@@ -90,6 +90,144 @@ class AsrTimestamps(AbstractModel):
|
|
90
90
|
|
91
91
|
|
92
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
|
+
|
93
231
|
class ConfirmVideoTranslateJobRequest(AbstractModel):
|
94
232
|
"""ConfirmVideoTranslateJob请求参数结构体
|
95
233
|
|
@@ -97,7 +235,7 @@ class ConfirmVideoTranslateJobRequest(AbstractModel):
|
|
97
235
|
|
98
236
|
def __init__(self):
|
99
237
|
r"""
|
100
|
-
:param _JobId:
|
238
|
+
:param _JobId: 视频转译任务 ID
|
101
239
|
:type JobId: str
|
102
240
|
:param _TranslateResults: 待确认文本
|
103
241
|
:type TranslateResults: list of TranslateResult
|
@@ -107,7 +245,7 @@ class ConfirmVideoTranslateJobRequest(AbstractModel):
|
|
107
245
|
|
108
246
|
@property
|
109
247
|
def JobId(self):
|
110
|
-
"""
|
248
|
+
"""视频转译任务 ID
|
111
249
|
:rtype: str
|
112
250
|
"""
|
113
251
|
return self._JobId
|
@@ -153,16 +291,18 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
153
291
|
|
154
292
|
def __init__(self):
|
155
293
|
r"""
|
156
|
-
:param _JobId:
|
294
|
+
:param _JobId: 视频转译任务 ID。
|
157
295
|
:type JobId: str
|
158
|
-
:param _TaskId:
|
296
|
+
:param _TaskId: 音频转译任务 ID。
|
159
297
|
:type TaskId: str
|
160
|
-
:param _SessionId:
|
298
|
+
:param _SessionId: 音频转译结果确认 session。
|
161
299
|
:type SessionId: str
|
162
|
-
:param _Status:
|
300
|
+
:param _Status: 任务状态。0:任务初始化。1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
|
163
301
|
:type Status: int
|
164
|
-
:param _Message:
|
302
|
+
:param _Message: 视频转译任务信息。
|
165
303
|
:type Message: str
|
304
|
+
:param _JobStatus: 任务状态。0:任务初始化。1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
|
305
|
+
:type JobStatus: int
|
166
306
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
167
307
|
:type RequestId: str
|
168
308
|
"""
|
@@ -171,11 +311,12 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
171
311
|
self._SessionId = None
|
172
312
|
self._Status = None
|
173
313
|
self._Message = None
|
314
|
+
self._JobStatus = None
|
174
315
|
self._RequestId = None
|
175
316
|
|
176
317
|
@property
|
177
318
|
def JobId(self):
|
178
|
-
"""
|
319
|
+
"""视频转译任务 ID。
|
179
320
|
:rtype: str
|
180
321
|
"""
|
181
322
|
return self._JobId
|
@@ -186,48 +327,75 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
186
327
|
|
187
328
|
@property
|
188
329
|
def TaskId(self):
|
189
|
-
""
|
330
|
+
warnings.warn("parameter `TaskId` is deprecated", DeprecationWarning)
|
331
|
+
|
332
|
+
"""音频转译任务 ID。
|
190
333
|
:rtype: str
|
191
334
|
"""
|
192
335
|
return self._TaskId
|
193
336
|
|
194
337
|
@TaskId.setter
|
195
338
|
def TaskId(self, TaskId):
|
339
|
+
warnings.warn("parameter `TaskId` is deprecated", DeprecationWarning)
|
340
|
+
|
196
341
|
self._TaskId = TaskId
|
197
342
|
|
198
343
|
@property
|
199
344
|
def SessionId(self):
|
200
|
-
""
|
345
|
+
warnings.warn("parameter `SessionId` is deprecated", DeprecationWarning)
|
346
|
+
|
347
|
+
"""音频转译结果确认 session。
|
201
348
|
:rtype: str
|
202
349
|
"""
|
203
350
|
return self._SessionId
|
204
351
|
|
205
352
|
@SessionId.setter
|
206
353
|
def SessionId(self, SessionId):
|
354
|
+
warnings.warn("parameter `SessionId` is deprecated", DeprecationWarning)
|
355
|
+
|
207
356
|
self._SessionId = SessionId
|
208
357
|
|
209
358
|
@property
|
210
359
|
def Status(self):
|
211
|
-
""
|
360
|
+
warnings.warn("parameter `Status` is deprecated", DeprecationWarning)
|
361
|
+
|
362
|
+
"""任务状态。0:任务初始化。1:音频翻译中。 2:音频翻译失败。 3:音频翻译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频翻译中。 7:视频翻译失败。 8:视频翻译成功。
|
212
363
|
:rtype: int
|
213
364
|
"""
|
214
365
|
return self._Status
|
215
366
|
|
216
367
|
@Status.setter
|
217
368
|
def Status(self, Status):
|
369
|
+
warnings.warn("parameter `Status` is deprecated", DeprecationWarning)
|
370
|
+
|
218
371
|
self._Status = Status
|
219
372
|
|
220
373
|
@property
|
221
374
|
def Message(self):
|
222
|
-
""
|
375
|
+
warnings.warn("parameter `Message` is deprecated", DeprecationWarning)
|
376
|
+
|
377
|
+
"""视频转译任务信息。
|
223
378
|
:rtype: str
|
224
379
|
"""
|
225
380
|
return self._Message
|
226
381
|
|
227
382
|
@Message.setter
|
228
383
|
def Message(self, Message):
|
384
|
+
warnings.warn("parameter `Message` is deprecated", DeprecationWarning)
|
385
|
+
|
229
386
|
self._Message = Message
|
230
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
|
+
|
231
399
|
@property
|
232
400
|
def RequestId(self):
|
233
401
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -246,6 +414,7 @@ class ConfirmVideoTranslateJobResponse(AbstractModel):
|
|
246
414
|
self._SessionId = params.get("SessionId")
|
247
415
|
self._Status = params.get("Status")
|
248
416
|
self._Message = params.get("Message")
|
417
|
+
self._JobStatus = params.get("JobStatus")
|
249
418
|
self._RequestId = params.get("RequestId")
|
250
419
|
|
251
420
|
|
@@ -441,12 +610,11 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
441
610
|
:type StatusCode: str
|
442
611
|
:param _StatusMsg: 任务状态信息
|
443
612
|
:type StatusMsg: str
|
444
|
-
:param _ErrorCode:
|
613
|
+
:param _ErrorCode: 任务执行错误码。当任务状态不为FAIL时,该值为""。
|
445
614
|
:type ErrorCode: str
|
446
|
-
:param _ErrorMessage:
|
615
|
+
:param _ErrorMessage: 任务执行错误信息。当任务状态不为FAIL时,该值为""。
|
447
616
|
:type ErrorMessage: str
|
448
|
-
:param _ResultVideoUrl: 生成视频的URL
|
449
|
-
有效期24小时
|
617
|
+
:param _ResultVideoUrl: 生成视频的URL地址。有效期24小时。
|
450
618
|
:type ResultVideoUrl: str
|
451
619
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
452
620
|
:type RequestId: str
|
@@ -498,7 +666,7 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
498
666
|
|
499
667
|
@property
|
500
668
|
def ErrorCode(self):
|
501
|
-
"""
|
669
|
+
"""任务执行错误码。当任务状态不为FAIL时,该值为""。
|
502
670
|
:rtype: str
|
503
671
|
"""
|
504
672
|
return self._ErrorCode
|
@@ -509,7 +677,7 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
509
677
|
|
510
678
|
@property
|
511
679
|
def ErrorMessage(self):
|
512
|
-
"""
|
680
|
+
"""任务执行错误信息。当任务状态不为FAIL时,该值为""。
|
513
681
|
:rtype: str
|
514
682
|
"""
|
515
683
|
return self._ErrorMessage
|
@@ -520,8 +688,7 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
520
688
|
|
521
689
|
@property
|
522
690
|
def ResultVideoUrl(self):
|
523
|
-
"""生成视频的URL
|
524
|
-
有效期24小时
|
691
|
+
"""生成视频的URL地址。有效期24小时。
|
525
692
|
:rtype: str
|
526
693
|
"""
|
527
694
|
return self._ResultVideoUrl
|
@@ -597,14 +764,19 @@ class DescribeVideoStylizationJobResponse(AbstractModel):
|
|
597
764
|
r"""
|
598
765
|
:param _JobId: 任务ID。
|
599
766
|
:type JobId: str
|
600
|
-
:param _StatusCode:
|
601
|
-
JobInit: "初始化中"
|
602
|
-
JobModerationFailed: "审核失败"
|
603
|
-
JobRunning: "处理中"
|
604
|
-
JobFailed: "处理失败"
|
767
|
+
:param _StatusCode: 任务状态码。取值说明:
|
768
|
+
JobInit: "初始化中";
|
769
|
+
JobModerationFailed: "审核失败";
|
770
|
+
JobRunning: "处理中";
|
771
|
+
JobFailed: "处理失败";
|
605
772
|
JobSuccess: "处理完成"。
|
606
773
|
:type StatusCode: str
|
607
|
-
:param _StatusMsg:
|
774
|
+
:param _StatusMsg: 任务状态描述。取值说明:
|
775
|
+
JobInit: "初始化中";
|
776
|
+
JobModerationFailed: "审核失败";
|
777
|
+
JobRunning: "处理中";
|
778
|
+
JobFailed: "处理失败";
|
779
|
+
JobSuccess: "处理完成"。
|
608
780
|
:type StatusMsg: str
|
609
781
|
:param _ResultVideoUrl: 处理结果视频Url。URL有效期为24小时。
|
610
782
|
:type ResultVideoUrl: str
|
@@ -630,11 +802,11 @@ JobSuccess: "处理完成"。
|
|
630
802
|
|
631
803
|
@property
|
632
804
|
def StatusCode(self):
|
633
|
-
"""
|
634
|
-
JobInit: "初始化中"
|
635
|
-
JobModerationFailed: "审核失败"
|
636
|
-
JobRunning: "处理中"
|
637
|
-
JobFailed: "处理失败"
|
805
|
+
"""任务状态码。取值说明:
|
806
|
+
JobInit: "初始化中";
|
807
|
+
JobModerationFailed: "审核失败";
|
808
|
+
JobRunning: "处理中";
|
809
|
+
JobFailed: "处理失败";
|
638
810
|
JobSuccess: "处理完成"。
|
639
811
|
:rtype: str
|
640
812
|
"""
|
@@ -646,7 +818,12 @@ JobSuccess: "处理完成"。
|
|
646
818
|
|
647
819
|
@property
|
648
820
|
def StatusMsg(self):
|
649
|
-
"""
|
821
|
+
"""任务状态描述。取值说明:
|
822
|
+
JobInit: "初始化中";
|
823
|
+
JobModerationFailed: "审核失败";
|
824
|
+
JobRunning: "处理中";
|
825
|
+
JobFailed: "处理失败";
|
826
|
+
JobSuccess: "处理完成"。
|
650
827
|
:rtype: str
|
651
828
|
"""
|
652
829
|
return self._StatusMsg
|
@@ -729,31 +906,32 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
729
906
|
|
730
907
|
def __init__(self):
|
731
908
|
r"""
|
732
|
-
:param _JobStatus: 任务状态。 1
|
909
|
+
:param _JobStatus: 任务状态。0: 任务初始化。 1:音频转译中。 2:音频转译失败。 3:音频转译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频转译中。 7:视频转译失败。 8:视频转译成功。
|
733
910
|
:type JobStatus: int
|
734
|
-
:param _JobErrorCode:
|
911
|
+
:param _JobErrorCode: 本次任务出错的错误码,用来定位问题原因。
|
735
912
|
:type JobErrorCode: str
|
736
|
-
:param _JobErrorMsg:
|
913
|
+
:param _JobErrorMsg: 任务错误信息,错误码出现的原因。
|
737
914
|
:type JobErrorMsg: str
|
738
|
-
:param _ResultVideoUrl:
|
915
|
+
:param _ResultVideoUrl: 视频转译生成结果视频url,有效期1天。当JobStatus为8时,该字段返回视频Url。
|
739
916
|
:type ResultVideoUrl: str
|
740
|
-
:param _TranslateResults:
|
917
|
+
:param _TranslateResults: 音频转译后分句翻译内容,包含分句起始时间、源识别文本以及翻译后文本。
|
918
|
+
当JobStatus为3、4时,该字段返回分句翻译数据。
|
741
919
|
:type TranslateResults: list of TranslateResult
|
742
|
-
:param _JobConfirm: 是否需要确认翻译结果。0:不需要,1
|
920
|
+
:param _JobConfirm: 是否需要确认翻译结果。0:不需要,1:需要。
|
743
921
|
:type JobConfirm: int
|
744
|
-
:param _JobAudioTaskId: 音频任务 ID
|
922
|
+
:param _JobAudioTaskId: 音频任务 ID。
|
745
923
|
:type JobAudioTaskId: str
|
746
|
-
:param _JobVideoModerationId: 视频审核任务ID
|
924
|
+
:param _JobVideoModerationId: 视频审核任务ID。
|
747
925
|
:type JobVideoModerationId: str
|
748
|
-
:param _JobAudioModerationId: 音频审核任务 ID
|
926
|
+
:param _JobAudioModerationId: 音频审核任务 ID。
|
749
927
|
:type JobAudioModerationId: str
|
750
|
-
:param _JobVideoId: 口型驱动任务 ID
|
928
|
+
:param _JobVideoId: 口型驱动任务 ID。
|
751
929
|
:type JobVideoId: str
|
752
|
-
:param _OriginalVideoUrl: 视频素材原始 URL
|
930
|
+
:param _OriginalVideoUrl: 视频素材原始 URL。
|
753
931
|
:type OriginalVideoUrl: str
|
754
|
-
:param _AsrTimestamps:
|
932
|
+
:param _AsrTimestamps: 文本片段及其时间戳。
|
755
933
|
:type AsrTimestamps: list of AsrTimestamps
|
756
|
-
:param _JobSubmitReqId:
|
934
|
+
:param _JobSubmitReqId: 提交视频转译任务时的 requestId。
|
757
935
|
:type JobSubmitReqId: str
|
758
936
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
759
937
|
:type RequestId: str
|
@@ -775,7 +953,7 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
775
953
|
|
776
954
|
@property
|
777
955
|
def JobStatus(self):
|
778
|
-
"""任务状态。 1
|
956
|
+
"""任务状态。0: 任务初始化。 1:音频转译中。 2:音频转译失败。 3:音频转译成功。 4:音频结果待确认。 5:音频结果已确认完毕。6:视频转译中。 7:视频转译失败。 8:视频转译成功。
|
779
957
|
:rtype: int
|
780
958
|
"""
|
781
959
|
return self._JobStatus
|
@@ -786,7 +964,7 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
786
964
|
|
787
965
|
@property
|
788
966
|
def JobErrorCode(self):
|
789
|
-
"""
|
967
|
+
"""本次任务出错的错误码,用来定位问题原因。
|
790
968
|
:rtype: str
|
791
969
|
"""
|
792
970
|
return self._JobErrorCode
|
@@ -797,7 +975,7 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
797
975
|
|
798
976
|
@property
|
799
977
|
def JobErrorMsg(self):
|
800
|
-
"""
|
978
|
+
"""任务错误信息,错误码出现的原因。
|
801
979
|
:rtype: str
|
802
980
|
"""
|
803
981
|
return self._JobErrorMsg
|
@@ -808,7 +986,7 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
808
986
|
|
809
987
|
@property
|
810
988
|
def ResultVideoUrl(self):
|
811
|
-
"""
|
989
|
+
"""视频转译生成结果视频url,有效期1天。当JobStatus为8时,该字段返回视频Url。
|
812
990
|
:rtype: str
|
813
991
|
"""
|
814
992
|
return self._ResultVideoUrl
|
@@ -819,7 +997,8 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
819
997
|
|
820
998
|
@property
|
821
999
|
def TranslateResults(self):
|
822
|
-
"""
|
1000
|
+
"""音频转译后分句翻译内容,包含分句起始时间、源识别文本以及翻译后文本。
|
1001
|
+
当JobStatus为3、4时,该字段返回分句翻译数据。
|
823
1002
|
:rtype: list of TranslateResult
|
824
1003
|
"""
|
825
1004
|
return self._TranslateResults
|
@@ -830,73 +1009,97 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
830
1009
|
|
831
1010
|
@property
|
832
1011
|
def JobConfirm(self):
|
833
|
-
""
|
1012
|
+
warnings.warn("parameter `JobConfirm` is deprecated", DeprecationWarning)
|
1013
|
+
|
1014
|
+
"""是否需要确认翻译结果。0:不需要,1:需要。
|
834
1015
|
:rtype: int
|
835
1016
|
"""
|
836
1017
|
return self._JobConfirm
|
837
1018
|
|
838
1019
|
@JobConfirm.setter
|
839
1020
|
def JobConfirm(self, JobConfirm):
|
1021
|
+
warnings.warn("parameter `JobConfirm` is deprecated", DeprecationWarning)
|
1022
|
+
|
840
1023
|
self._JobConfirm = JobConfirm
|
841
1024
|
|
842
1025
|
@property
|
843
1026
|
def JobAudioTaskId(self):
|
844
|
-
""
|
1027
|
+
warnings.warn("parameter `JobAudioTaskId` is deprecated", DeprecationWarning)
|
1028
|
+
|
1029
|
+
"""音频任务 ID。
|
845
1030
|
:rtype: str
|
846
1031
|
"""
|
847
1032
|
return self._JobAudioTaskId
|
848
1033
|
|
849
1034
|
@JobAudioTaskId.setter
|
850
1035
|
def JobAudioTaskId(self, JobAudioTaskId):
|
1036
|
+
warnings.warn("parameter `JobAudioTaskId` is deprecated", DeprecationWarning)
|
1037
|
+
|
851
1038
|
self._JobAudioTaskId = JobAudioTaskId
|
852
1039
|
|
853
1040
|
@property
|
854
1041
|
def JobVideoModerationId(self):
|
855
|
-
""
|
1042
|
+
warnings.warn("parameter `JobVideoModerationId` is deprecated", DeprecationWarning)
|
1043
|
+
|
1044
|
+
"""视频审核任务ID。
|
856
1045
|
:rtype: str
|
857
1046
|
"""
|
858
1047
|
return self._JobVideoModerationId
|
859
1048
|
|
860
1049
|
@JobVideoModerationId.setter
|
861
1050
|
def JobVideoModerationId(self, JobVideoModerationId):
|
1051
|
+
warnings.warn("parameter `JobVideoModerationId` is deprecated", DeprecationWarning)
|
1052
|
+
|
862
1053
|
self._JobVideoModerationId = JobVideoModerationId
|
863
1054
|
|
864
1055
|
@property
|
865
1056
|
def JobAudioModerationId(self):
|
866
|
-
""
|
1057
|
+
warnings.warn("parameter `JobAudioModerationId` is deprecated", DeprecationWarning)
|
1058
|
+
|
1059
|
+
"""音频审核任务 ID。
|
867
1060
|
:rtype: str
|
868
1061
|
"""
|
869
1062
|
return self._JobAudioModerationId
|
870
1063
|
|
871
1064
|
@JobAudioModerationId.setter
|
872
1065
|
def JobAudioModerationId(self, JobAudioModerationId):
|
1066
|
+
warnings.warn("parameter `JobAudioModerationId` is deprecated", DeprecationWarning)
|
1067
|
+
|
873
1068
|
self._JobAudioModerationId = JobAudioModerationId
|
874
1069
|
|
875
1070
|
@property
|
876
1071
|
def JobVideoId(self):
|
877
|
-
""
|
1072
|
+
warnings.warn("parameter `JobVideoId` is deprecated", DeprecationWarning)
|
1073
|
+
|
1074
|
+
"""口型驱动任务 ID。
|
878
1075
|
:rtype: str
|
879
1076
|
"""
|
880
1077
|
return self._JobVideoId
|
881
1078
|
|
882
1079
|
@JobVideoId.setter
|
883
1080
|
def JobVideoId(self, JobVideoId):
|
1081
|
+
warnings.warn("parameter `JobVideoId` is deprecated", DeprecationWarning)
|
1082
|
+
|
884
1083
|
self._JobVideoId = JobVideoId
|
885
1084
|
|
886
1085
|
@property
|
887
1086
|
def OriginalVideoUrl(self):
|
888
|
-
""
|
1087
|
+
warnings.warn("parameter `OriginalVideoUrl` is deprecated", DeprecationWarning)
|
1088
|
+
|
1089
|
+
"""视频素材原始 URL。
|
889
1090
|
:rtype: str
|
890
1091
|
"""
|
891
1092
|
return self._OriginalVideoUrl
|
892
1093
|
|
893
1094
|
@OriginalVideoUrl.setter
|
894
1095
|
def OriginalVideoUrl(self, OriginalVideoUrl):
|
1096
|
+
warnings.warn("parameter `OriginalVideoUrl` is deprecated", DeprecationWarning)
|
1097
|
+
|
895
1098
|
self._OriginalVideoUrl = OriginalVideoUrl
|
896
1099
|
|
897
1100
|
@property
|
898
1101
|
def AsrTimestamps(self):
|
899
|
-
"""
|
1102
|
+
"""文本片段及其时间戳。
|
900
1103
|
:rtype: list of AsrTimestamps
|
901
1104
|
"""
|
902
1105
|
return self._AsrTimestamps
|
@@ -907,13 +1110,17 @@ class DescribeVideoTranslateJobResponse(AbstractModel):
|
|
907
1110
|
|
908
1111
|
@property
|
909
1112
|
def JobSubmitReqId(self):
|
910
|
-
""
|
1113
|
+
warnings.warn("parameter `JobSubmitReqId` is deprecated", DeprecationWarning)
|
1114
|
+
|
1115
|
+
"""提交视频转译任务时的 requestId。
|
911
1116
|
:rtype: str
|
912
1117
|
"""
|
913
1118
|
return self._JobSubmitReqId
|
914
1119
|
|
915
1120
|
@JobSubmitReqId.setter
|
916
1121
|
def JobSubmitReqId(self, JobSubmitReqId):
|
1122
|
+
warnings.warn("parameter `JobSubmitReqId` is deprecated", DeprecationWarning)
|
1123
|
+
|
917
1124
|
self._JobSubmitReqId = JobSubmitReqId
|
918
1125
|
|
919
1126
|
@property
|
@@ -963,13 +1170,10 @@ class LogoParam(AbstractModel):
|
|
963
1170
|
def __init__(self):
|
964
1171
|
r"""
|
965
1172
|
:param _LogoUrl: 水印 Url
|
966
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
967
1173
|
:type LogoUrl: str
|
968
1174
|
:param _LogoImage: 水印 Base64,Url 和 Base64 二选一传入,如果都提供以 Url 为准
|
969
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
970
1175
|
:type LogoImage: str
|
971
|
-
:param _LogoRect:
|
972
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1176
|
+
:param _LogoRect: 水印图片位于生成结果图中的坐标及宽高,将按照坐标对标识图片进行位置和大小的拉伸匹配。
|
973
1177
|
:type LogoRect: :class:`tencentcloud.vclm.v20240523.models.LogoRect`
|
974
1178
|
"""
|
975
1179
|
self._LogoUrl = None
|
@@ -979,7 +1183,6 @@ class LogoParam(AbstractModel):
|
|
979
1183
|
@property
|
980
1184
|
def LogoUrl(self):
|
981
1185
|
"""水印 Url
|
982
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
983
1186
|
:rtype: str
|
984
1187
|
"""
|
985
1188
|
return self._LogoUrl
|
@@ -991,7 +1194,6 @@ class LogoParam(AbstractModel):
|
|
991
1194
|
@property
|
992
1195
|
def LogoImage(self):
|
993
1196
|
"""水印 Base64,Url 和 Base64 二选一传入,如果都提供以 Url 为准
|
994
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
995
1197
|
:rtype: str
|
996
1198
|
"""
|
997
1199
|
return self._LogoImage
|
@@ -1002,8 +1204,7 @@ class LogoParam(AbstractModel):
|
|
1002
1204
|
|
1003
1205
|
@property
|
1004
1206
|
def LogoRect(self):
|
1005
|
-
"""
|
1006
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1207
|
+
"""水印图片位于生成结果图中的坐标及宽高,将按照坐标对标识图片进行位置和大小的拉伸匹配。
|
1007
1208
|
:rtype: :class:`tencentcloud.vclm.v20240523.models.LogoRect`
|
1008
1209
|
"""
|
1009
1210
|
return self._LogoRect
|
@@ -1030,23 +1231,19 @@ class LogoParam(AbstractModel):
|
|
1030
1231
|
|
1031
1232
|
|
1032
1233
|
class LogoRect(AbstractModel):
|
1033
|
-
"""
|
1234
|
+
"""水印图输入框
|
1034
1235
|
|
1035
1236
|
"""
|
1036
1237
|
|
1037
1238
|
def __init__(self):
|
1038
1239
|
r"""
|
1039
|
-
:param _X:
|
1040
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1240
|
+
:param _X: 水印图框X坐标值。当值大于0时,坐标轴原点位于原图左侧,方向指右;当值小于0时,坐标轴原点位于原图右侧,方向指左。
|
1041
1241
|
:type X: int
|
1042
|
-
:param _Y:
|
1043
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1242
|
+
:param _Y: 水印图框Y坐标值。当值大于0时,坐标轴原点位于原图上侧,方向指下;当值小于0时,坐标轴原点位于原图下侧,方向指上。
|
1044
1243
|
:type Y: int
|
1045
|
-
:param _Width:
|
1046
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1244
|
+
:param _Width: 水印图框宽度。
|
1047
1245
|
:type Width: int
|
1048
|
-
:param _Height:
|
1049
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1246
|
+
:param _Height: 水印图框高度。
|
1050
1247
|
:type Height: int
|
1051
1248
|
"""
|
1052
1249
|
self._X = None
|
@@ -1056,8 +1253,7 @@ class LogoRect(AbstractModel):
|
|
1056
1253
|
|
1057
1254
|
@property
|
1058
1255
|
def X(self):
|
1059
|
-
"""
|
1060
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1256
|
+
"""水印图框X坐标值。当值大于0时,坐标轴原点位于原图左侧,方向指右;当值小于0时,坐标轴原点位于原图右侧,方向指左。
|
1061
1257
|
:rtype: int
|
1062
1258
|
"""
|
1063
1259
|
return self._X
|
@@ -1068,8 +1264,7 @@ class LogoRect(AbstractModel):
|
|
1068
1264
|
|
1069
1265
|
@property
|
1070
1266
|
def Y(self):
|
1071
|
-
"""
|
1072
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1267
|
+
"""水印图框Y坐标值。当值大于0时,坐标轴原点位于原图上侧,方向指下;当值小于0时,坐标轴原点位于原图下侧,方向指上。
|
1073
1268
|
:rtype: int
|
1074
1269
|
"""
|
1075
1270
|
return self._Y
|
@@ -1080,8 +1275,7 @@ class LogoRect(AbstractModel):
|
|
1080
1275
|
|
1081
1276
|
@property
|
1082
1277
|
def Width(self):
|
1083
|
-
"""
|
1084
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1278
|
+
"""水印图框宽度。
|
1085
1279
|
:rtype: int
|
1086
1280
|
"""
|
1087
1281
|
return self._Width
|
@@ -1092,8 +1286,7 @@ class LogoRect(AbstractModel):
|
|
1092
1286
|
|
1093
1287
|
@property
|
1094
1288
|
def Height(self):
|
1095
|
-
"""
|
1096
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1289
|
+
"""水印图框高度。
|
1097
1290
|
:rtype: int
|
1098
1291
|
"""
|
1099
1292
|
return self._Height
|
@@ -1125,12 +1318,16 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
1125
1318
|
|
1126
1319
|
def __init__(self):
|
1127
1320
|
r"""
|
1128
|
-
:param _ImageUrl: 图片格式:支持PNG、JPG、JPEG格式;
|
1129
|
-
|
1321
|
+
:param _ImageUrl: 图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
1322
|
+
图片分辨率:长边分辨率范围【192,4096】;
|
1130
1323
|
图片大小:不超过10M;
|
1131
1324
|
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
1132
1325
|
:type ImageUrl: str
|
1133
|
-
:param _ImageBase64: 图片base64
|
1326
|
+
:param _ImageBase64: 图片base64数据。
|
1327
|
+
图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
1328
|
+
图片分辨率:长边分辨率范围【192,4096】;
|
1329
|
+
图片大小:不超过10M;
|
1330
|
+
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
1134
1331
|
:type ImageBase64: str
|
1135
1332
|
:param _TemplateId: 动作模板ID。取值说明:ke3 科目三;tuziwu 兔子舞;huajiangwu 划桨舞。
|
1136
1333
|
|
@@ -1139,7 +1336,7 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
1139
1336
|
:type EnableAudio: bool
|
1140
1337
|
:param _EnableBodyJoins: 是否检测输入图人体12个身体部位(头部、颈部、右肩、右肘、右腕、左肩、左肘、左腕、右髋、左髋,、左膝、右膝)。默认不检测。
|
1141
1338
|
:type EnableBodyJoins: bool
|
1142
|
-
:param _EnableSegment:
|
1339
|
+
:param _EnableSegment: 最终视频是否保留原图的背景,默认不保留。
|
1143
1340
|
|
1144
1341
|
:type EnableSegment: bool
|
1145
1342
|
:param _LogoAdd: 为生成视频添加标识的开关,默认为0。
|
@@ -1163,8 +1360,8 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
1163
1360
|
|
1164
1361
|
@property
|
1165
1362
|
def ImageUrl(self):
|
1166
|
-
"""图片格式:支持PNG、JPG、JPEG格式;
|
1167
|
-
|
1363
|
+
"""图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
1364
|
+
图片分辨率:长边分辨率范围【192,4096】;
|
1168
1365
|
图片大小:不超过10M;
|
1169
1366
|
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
1170
1367
|
:rtype: str
|
@@ -1177,7 +1374,11 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
1177
1374
|
|
1178
1375
|
@property
|
1179
1376
|
def ImageBase64(self):
|
1180
|
-
"""图片base64
|
1377
|
+
"""图片base64数据。
|
1378
|
+
图片格式:支持PNG、JPG、JPEG、BMP、WEBP格式;
|
1379
|
+
图片分辨率:长边分辨率范围【192,4096】;
|
1380
|
+
图片大小:不超过10M;
|
1381
|
+
图片宽高比:【宽:高】数值在 1:2 到 1:1.2 范围内
|
1181
1382
|
:rtype: str
|
1182
1383
|
"""
|
1183
1384
|
return self._ImageBase64
|
@@ -1222,7 +1423,7 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
1222
1423
|
|
1223
1424
|
@property
|
1224
1425
|
def EnableSegment(self):
|
1225
|
-
"""
|
1426
|
+
"""最终视频是否保留原图的背景,默认不保留。
|
1226
1427
|
|
1227
1428
|
:rtype: bool
|
1228
1429
|
"""
|
@@ -1288,7 +1489,7 @@ class SubmitImageAnimateJobResponse(AbstractModel):
|
|
1288
1489
|
|
1289
1490
|
def __init__(self):
|
1290
1491
|
r"""
|
1291
|
-
:param _JobId:
|
1492
|
+
:param _JobId: 图片跳舞任务ID。
|
1292
1493
|
:type JobId: str
|
1293
1494
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1294
1495
|
:type RequestId: str
|
@@ -1298,7 +1499,7 @@ class SubmitImageAnimateJobResponse(AbstractModel):
|
|
1298
1499
|
|
1299
1500
|
@property
|
1300
1501
|
def JobId(self):
|
1301
|
-
"""
|
1502
|
+
"""图片跳舞任务ID。
|
1302
1503
|
:rtype: str
|
1303
1504
|
"""
|
1304
1505
|
return self._JobId
|
@@ -1340,7 +1541,7 @@ class SubmitPortraitSingJobRequest(AbstractModel):
|
|
1340
1541
|
- 图片分辨率:192~4096
|
1341
1542
|
- 图片大小:不超过10M
|
1342
1543
|
- 图片宽高比:图片【宽:高】在1:2到2:1范围内
|
1343
|
-
-
|
1544
|
+
- 图片内容:避免上传无人脸、无宠物脸或脸部过小、不完整、不清晰、偏转角度过大、嘴部被遮挡的图片。
|
1344
1545
|
:type ImageUrl: str
|
1345
1546
|
:param _ImageBase64: 传入图片Base64编码,编码后请求体大小不超过10M。
|
1346
1547
|
图片Base64编码与URL地址必传其一,如果都传以ImageBase64为准。
|
@@ -1349,11 +1550,28 @@ class SubmitPortraitSingJobRequest(AbstractModel):
|
|
1349
1550
|
Person:人像模式,仅支持上传人像图片,人像生成效果更好,如果图中未检测到有效人脸将被拦截,生成时会将视频短边分辨率放缩至512。
|
1350
1551
|
Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨率视频。
|
1351
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`
|
1352
1567
|
"""
|
1353
1568
|
self._AudioUrl = None
|
1354
1569
|
self._ImageUrl = None
|
1355
1570
|
self._ImageBase64 = None
|
1356
1571
|
self._Mode = None
|
1572
|
+
self._Resolution = None
|
1573
|
+
self._LogoAdd = None
|
1574
|
+
self._LogoParam = None
|
1357
1575
|
|
1358
1576
|
@property
|
1359
1577
|
def AudioUrl(self):
|
@@ -1375,7 +1593,7 @@ Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨
|
|
1375
1593
|
- 图片分辨率:192~4096
|
1376
1594
|
- 图片大小:不超过10M
|
1377
1595
|
- 图片宽高比:图片【宽:高】在1:2到2:1范围内
|
1378
|
-
-
|
1596
|
+
- 图片内容:避免上传无人脸、无宠物脸或脸部过小、不完整、不清晰、偏转角度过大、嘴部被遮挡的图片。
|
1379
1597
|
:rtype: str
|
1380
1598
|
"""
|
1381
1599
|
return self._ImageUrl
|
@@ -1409,12 +1627,58 @@ Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨
|
|
1409
1627
|
def Mode(self, Mode):
|
1410
1628
|
self._Mode = Mode
|
1411
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
|
+
|
1412
1671
|
|
1413
1672
|
def _deserialize(self, params):
|
1414
1673
|
self._AudioUrl = params.get("AudioUrl")
|
1415
1674
|
self._ImageUrl = params.get("ImageUrl")
|
1416
1675
|
self._ImageBase64 = params.get("ImageBase64")
|
1417
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"))
|
1418
1682
|
memeber_set = set(params.keys())
|
1419
1683
|
for name, value in vars(self).items():
|
1420
1684
|
property_name = name[1:]
|
@@ -1432,7 +1696,7 @@ class SubmitPortraitSingJobResponse(AbstractModel):
|
|
1432
1696
|
|
1433
1697
|
def __init__(self):
|
1434
1698
|
r"""
|
1435
|
-
:param _JobId: 任务ID
|
1699
|
+
:param _JobId: 任务ID。任务有效期为48小时。
|
1436
1700
|
:type JobId: str
|
1437
1701
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1438
1702
|
:type RequestId: str
|
@@ -1442,7 +1706,7 @@ class SubmitPortraitSingJobResponse(AbstractModel):
|
|
1442
1706
|
|
1443
1707
|
@property
|
1444
1708
|
def JobId(self):
|
1445
|
-
"""任务ID
|
1709
|
+
"""任务ID。任务有效期为48小时。
|
1446
1710
|
:rtype: str
|
1447
1711
|
"""
|
1448
1712
|
return self._JobId
|
@@ -1475,7 +1739,11 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1475
1739
|
|
1476
1740
|
def __init__(self):
|
1477
1741
|
r"""
|
1478
|
-
:param _StyleId: 风格ID
|
1742
|
+
:param _StyleId: 风格ID。取值说明:
|
1743
|
+
2d_anime:2D动漫;
|
1744
|
+
3d_cartoon:3D卡通;
|
1745
|
+
3d_china:3D国潮;
|
1746
|
+
pixel_art:像素风。
|
1479
1747
|
:type StyleId: str
|
1480
1748
|
:param _VideoUrl: 输入视频URL。视频要求:
|
1481
1749
|
- 视频格式:mp4、mov;
|
@@ -1484,9 +1752,11 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1484
1752
|
- 视频大小:不超过200M;
|
1485
1753
|
- 视频FPS:15~60fps。
|
1486
1754
|
:type VideoUrl: str
|
1487
|
-
:param _StyleStrength:
|
1488
|
-
|
1489
|
-
|
1755
|
+
:param _StyleStrength: 风格化强度。取值说明:
|
1756
|
+
low:风格化强度弱;
|
1757
|
+
medium:风格化强度中等;
|
1758
|
+
high:风格化强度强。
|
1759
|
+
默认值为medium。
|
1490
1760
|
:type StyleStrength: str
|
1491
1761
|
"""
|
1492
1762
|
self._StyleId = None
|
@@ -1495,7 +1765,11 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1495
1765
|
|
1496
1766
|
@property
|
1497
1767
|
def StyleId(self):
|
1498
|
-
"""风格ID
|
1768
|
+
"""风格ID。取值说明:
|
1769
|
+
2d_anime:2D动漫;
|
1770
|
+
3d_cartoon:3D卡通;
|
1771
|
+
3d_china:3D国潮;
|
1772
|
+
pixel_art:像素风。
|
1499
1773
|
:rtype: str
|
1500
1774
|
"""
|
1501
1775
|
return self._StyleId
|
@@ -1522,9 +1796,11 @@ class SubmitVideoStylizationJobRequest(AbstractModel):
|
|
1522
1796
|
|
1523
1797
|
@property
|
1524
1798
|
def StyleStrength(self):
|
1525
|
-
"""
|
1526
|
-
|
1527
|
-
|
1799
|
+
"""风格化强度。取值说明:
|
1800
|
+
low:风格化强度弱;
|
1801
|
+
medium:风格化强度中等;
|
1802
|
+
high:风格化强度强。
|
1803
|
+
默认值为medium。
|
1528
1804
|
:rtype: str
|
1529
1805
|
"""
|
1530
1806
|
return self._StyleStrength
|
@@ -1555,7 +1831,7 @@ class SubmitVideoStylizationJobResponse(AbstractModel):
|
|
1555
1831
|
|
1556
1832
|
def __init__(self):
|
1557
1833
|
r"""
|
1558
|
-
:param _JobId: 任务ID
|
1834
|
+
:param _JobId: 任务ID。任务有效期为48小时。
|
1559
1835
|
:type JobId: str
|
1560
1836
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1561
1837
|
:type RequestId: str
|
@@ -1565,7 +1841,7 @@ class SubmitVideoStylizationJobResponse(AbstractModel):
|
|
1565
1841
|
|
1566
1842
|
@property
|
1567
1843
|
def JobId(self):
|
1568
|
-
"""任务ID
|
1844
|
+
"""任务ID。任务有效期为48小时。
|
1569
1845
|
:rtype: str
|
1570
1846
|
"""
|
1571
1847
|
return self._JobId
|
@@ -1599,51 +1875,59 @@ class SubmitVideoTranslateJobRequest(AbstractModel):
|
|
1599
1875
|
def __init__(self):
|
1600
1876
|
r"""
|
1601
1877
|
:param _VideoUrl: 视频地址URL。
|
1602
|
-
格式要求:支持 mp4、mov 。
|
1603
|
-
时长要求:【
|
1878
|
+
格式要求:支持 mp4、mov、avi 。
|
1879
|
+
时长要求:【5-600】秒。
|
1604
1880
|
fps 要求:【15-60】fps
|
1605
|
-
分辨率要求:单边像素要求在 【
|
1881
|
+
分辨率要求:单边像素要求在 【360~4096】 之间。
|
1882
|
+
大小要求:不超过500MB
|
1606
1883
|
|
1607
1884
|
:type VideoUrl: str
|
1608
|
-
:param _SrcLang:
|
1885
|
+
:param _SrcLang: 输入视频中音频语种
|
1886
|
+
目前支持语种范围:zh(中文), en(英文)
|
1609
1887
|
:type SrcLang: str
|
1610
|
-
:param
|
1611
|
-
|
1612
|
-
|
1613
|
-
|
1614
|
-
格式要求:支持 mp3、m4a、acc、wav 格式。
|
1615
|
-
时长要求:【10~300】秒
|
1616
|
-
大小要求:不超过 100M。
|
1888
|
+
:param _AudioUrl: 当音频 URL 不为空时,不经过语音AI处理,直接以视频为素材用音频内容做视频口型驱动。
|
1889
|
+
格式要求:支持 mp3、m4a、aac、wav 格式。
|
1890
|
+
时长要求:【5~600】秒,音频时长要匹配视频时长。
|
1891
|
+
大小要求:不超过 100MB。
|
1617
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
|
1618
1906
|
:param _RemoveVocal: 是否需要去除VideoUrl或AudioUrl中背景音,取值范围:0-不需要,1-需要,默认0 。
|
1619
1907
|
:type RemoveVocal: int
|
1620
|
-
:param
|
1621
|
-
:type Confirm: int
|
1622
|
-
:param _LipSync: 是否开启口型驱动,0:不开启,1:开启。默认开启。
|
1908
|
+
:param _LipSync: 是否开启口型驱动,0-不开启,1-开启。默认0。
|
1623
1909
|
:type LipSync: int
|
1624
|
-
:param
|
1625
|
-
|
1626
|
-
2)目标语种为zh,en时,该项为非必填,若填入,则对应填入的音色
|
1627
|
-
|
1628
|
-
具体音色包含请见“支持音色种别列表”
|
1629
|
-
:type VoiceType: str
|
1910
|
+
:param _VideoLoop: 当 AudioUrl 字段有输入音频时,如果输入音频时长大于输入视频时长,会拼接视频( 0-正向拼接、1-反向拼接 )对齐音频时长。默认 0。
|
1911
|
+
:type VideoLoop: int
|
1630
1912
|
"""
|
1631
1913
|
self._VideoUrl = None
|
1632
1914
|
self._SrcLang = None
|
1633
|
-
self._DstLang = None
|
1634
1915
|
self._AudioUrl = None
|
1635
|
-
self.
|
1916
|
+
self._DstLang = None
|
1917
|
+
self._VoiceType = None
|
1636
1918
|
self._Confirm = None
|
1919
|
+
self._RemoveVocal = None
|
1637
1920
|
self._LipSync = None
|
1638
|
-
self.
|
1921
|
+
self._VideoLoop = None
|
1639
1922
|
|
1640
1923
|
@property
|
1641
1924
|
def VideoUrl(self):
|
1642
1925
|
"""视频地址URL。
|
1643
|
-
格式要求:支持 mp4、mov 。
|
1644
|
-
时长要求:【
|
1926
|
+
格式要求:支持 mp4、mov、avi 。
|
1927
|
+
时长要求:【5-600】秒。
|
1645
1928
|
fps 要求:【15-60】fps
|
1646
|
-
分辨率要求:单边像素要求在 【
|
1929
|
+
分辨率要求:单边像素要求在 【360~4096】 之间。
|
1930
|
+
大小要求:不超过500MB
|
1647
1931
|
|
1648
1932
|
:rtype: str
|
1649
1933
|
"""
|
@@ -1655,7 +1939,8 @@ fps 要求:【15-60】fps
|
|
1655
1939
|
|
1656
1940
|
@property
|
1657
1941
|
def SrcLang(self):
|
1658
|
-
"""
|
1942
|
+
"""输入视频中音频语种
|
1943
|
+
目前支持语种范围:zh(中文), en(英文)
|
1659
1944
|
:rtype: str
|
1660
1945
|
"""
|
1661
1946
|
return self._SrcLang
|
@@ -1664,10 +1949,24 @@ fps 要求:【15-60】fps
|
|
1664
1949
|
def SrcLang(self, SrcLang):
|
1665
1950
|
self._SrcLang = SrcLang
|
1666
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
|
+
|
1667
1966
|
@property
|
1668
1967
|
def DstLang(self):
|
1669
|
-
"""
|
1670
|
-
zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、id(印尼语)、it(意大利语)、ja(日语)、ko(韩语)、ms(马来语)、pt(葡萄牙语)、ru(俄语)、th(泰语)、tr(土耳其语)、vi(越南语)
|
1968
|
+
"""输出视频中翻译语种
|
1969
|
+
目前支持语种范围:zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)、fr(法语)、id(印尼语)、it(意大利语)、ja(日语)、ko(韩语)、ms(马来语)、pt(葡萄牙语)、ru(俄语)、th(泰语)、tr(土耳其语)、vi(越南语)
|
1671
1970
|
:rtype: str
|
1672
1971
|
"""
|
1673
1972
|
return self._DstLang
|
@@ -1677,33 +1976,25 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1677
1976
|
self._DstLang = DstLang
|
1678
1977
|
|
1679
1978
|
@property
|
1680
|
-
def
|
1681
|
-
"""
|
1682
|
-
|
1683
|
-
|
1684
|
-
大小要求:不超过 100M。
|
1685
|
-
:rtype: str
|
1686
|
-
"""
|
1687
|
-
return self._AudioUrl
|
1979
|
+
def VoiceType(self):
|
1980
|
+
"""翻译语种匹配音色种别,其他说明如下:
|
1981
|
+
1)默认不填代表克隆输入视频中音频音色;
|
1982
|
+
2)翻译语种非中英(即zh、en),该项必填;
|
1688
1983
|
|
1689
|
-
|
1690
|
-
def AudioUrl(self, AudioUrl):
|
1691
|
-
self._AudioUrl = AudioUrl
|
1984
|
+
具体音色种别详见说明“支持音色种别列表”,每个音色都支持 15 个目标语种。
|
1692
1985
|
|
1693
|
-
|
1694
|
-
def RemoveVocal(self):
|
1695
|
-
"""是否需要去除VideoUrl或AudioUrl中背景音,取值范围:0-不需要,1-需要,默认0 。
|
1696
|
-
:rtype: int
|
1986
|
+
:rtype: str
|
1697
1987
|
"""
|
1698
|
-
return self.
|
1988
|
+
return self._VoiceType
|
1699
1989
|
|
1700
|
-
@
|
1701
|
-
def
|
1702
|
-
self.
|
1990
|
+
@VoiceType.setter
|
1991
|
+
def VoiceType(self, VoiceType):
|
1992
|
+
self._VoiceType = VoiceType
|
1703
1993
|
|
1704
1994
|
@property
|
1705
1995
|
def Confirm(self):
|
1706
|
-
"""
|
1996
|
+
"""是否需要纠正视频中音频识别与翻译内容,取值范围:0-不需要,1-需要,默认0。
|
1997
|
+
|
1707
1998
|
:rtype: int
|
1708
1999
|
"""
|
1709
2000
|
return self._Confirm
|
@@ -1712,9 +2003,20 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1712
2003
|
def Confirm(self, Confirm):
|
1713
2004
|
self._Confirm = Confirm
|
1714
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
|
+
|
1715
2017
|
@property
|
1716
2018
|
def LipSync(self):
|
1717
|
-
"""是否开启口型驱动,0
|
2019
|
+
"""是否开启口型驱动,0-不开启,1-开启。默认0。
|
1718
2020
|
:rtype: int
|
1719
2021
|
"""
|
1720
2022
|
return self._LipSync
|
@@ -1724,30 +2026,27 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1724
2026
|
self._LipSync = LipSync
|
1725
2027
|
|
1726
2028
|
@property
|
1727
|
-
def
|
1728
|
-
"""
|
1729
|
-
|
1730
|
-
2)目标语种为zh,en时,该项为非必填,若填入,则对应填入的音色
|
1731
|
-
|
1732
|
-
具体音色包含请见“支持音色种别列表”
|
1733
|
-
:rtype: str
|
2029
|
+
def VideoLoop(self):
|
2030
|
+
"""当 AudioUrl 字段有输入音频时,如果输入音频时长大于输入视频时长,会拼接视频( 0-正向拼接、1-反向拼接 )对齐音频时长。默认 0。
|
2031
|
+
:rtype: int
|
1734
2032
|
"""
|
1735
|
-
return self.
|
2033
|
+
return self._VideoLoop
|
1736
2034
|
|
1737
|
-
@
|
1738
|
-
def
|
1739
|
-
self.
|
2035
|
+
@VideoLoop.setter
|
2036
|
+
def VideoLoop(self, VideoLoop):
|
2037
|
+
self._VideoLoop = VideoLoop
|
1740
2038
|
|
1741
2039
|
|
1742
2040
|
def _deserialize(self, params):
|
1743
2041
|
self._VideoUrl = params.get("VideoUrl")
|
1744
2042
|
self._SrcLang = params.get("SrcLang")
|
1745
|
-
self._DstLang = params.get("DstLang")
|
1746
2043
|
self._AudioUrl = params.get("AudioUrl")
|
1747
|
-
self.
|
2044
|
+
self._DstLang = params.get("DstLang")
|
2045
|
+
self._VoiceType = params.get("VoiceType")
|
1748
2046
|
self._Confirm = params.get("Confirm")
|
2047
|
+
self._RemoveVocal = params.get("RemoveVocal")
|
1749
2048
|
self._LipSync = params.get("LipSync")
|
1750
|
-
self.
|
2049
|
+
self._VideoLoop = params.get("VideoLoop")
|
1751
2050
|
memeber_set = set(params.keys())
|
1752
2051
|
for name, value in vars(self).items():
|
1753
2052
|
property_name = name[1:]
|
@@ -1765,7 +2064,7 @@ class SubmitVideoTranslateJobResponse(AbstractModel):
|
|
1765
2064
|
|
1766
2065
|
def __init__(self):
|
1767
2066
|
r"""
|
1768
|
-
:param _JobId: 视频转译任务的
|
2067
|
+
:param _JobId: 视频转译任务的ID
|
1769
2068
|
:type JobId: str
|
1770
2069
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1771
2070
|
:type RequestId: str
|
@@ -1775,7 +2074,7 @@ class SubmitVideoTranslateJobResponse(AbstractModel):
|
|
1775
2074
|
|
1776
2075
|
@property
|
1777
2076
|
def JobId(self):
|
1778
|
-
"""视频转译任务的
|
2077
|
+
"""视频转译任务的ID
|
1779
2078
|
:rtype: str
|
1780
2079
|
"""
|
1781
2080
|
return self._JobId
|