tencentcloud-sdk-python-vclm 3.0.1231__py2.py3-none-any.whl → 3.0.1254__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/errorcodes.py +9 -0
- tencentcloud/vclm/v20240523/models.py +85 -9
- {tencentcloud_sdk_python_vclm-3.0.1231.dist-info → tencentcloud_sdk_python_vclm-3.0.1254.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_vclm-3.0.1254.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_vclm-3.0.1231.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_vclm-3.0.1231.dist-info → tencentcloud_sdk_python_vclm-3.0.1254.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_vclm-3.0.1231.dist-info → tencentcloud_sdk_python_vclm-3.0.1254.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -68,6 +68,9 @@ FAILEDOPERATION_IMAGENOTSUPPORTED = 'FailedOperation.ImageNotSupported'
|
|
68
68
|
# 输入图高宽比未在1.2~2.0范围内
|
69
69
|
FAILEDOPERATION_IMAGERADIOEXCCEED = 'FailedOperation.ImageRadioExcceed'
|
70
70
|
|
71
|
+
# 图片高宽比超过限制。
|
72
|
+
FAILEDOPERATION_IMAGERATIOEXCCEED = 'FailedOperation.ImageRatioExcceed'
|
73
|
+
|
71
74
|
# 图片分辨率过大。
|
72
75
|
FAILEDOPERATION_IMAGERESOLUTIONEXCEED = 'FailedOperation.ImageResolutionExceed'
|
73
76
|
|
@@ -161,6 +164,9 @@ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
161
164
|
# 不支持的音频时长。
|
162
165
|
INVALIDPARAMETERVALUE_INVALIDAUDIODURATION = 'InvalidParameterValue.InvalidAudioDuration'
|
163
166
|
|
167
|
+
# 不支持的音频格式。
|
168
|
+
INVALIDPARAMETERVALUE_INVALIDAUDIOFORMAT = 'InvalidParameterValue.InvalidAudioFormat'
|
169
|
+
|
164
170
|
# 不支持的图片长宽比。
|
165
171
|
INVALIDPARAMETERVALUE_INVALIDIMAGEASPECTRATIO = 'InvalidParameterValue.InvalidImageAspectRatio'
|
166
172
|
|
@@ -173,6 +179,9 @@ INVALIDPARAMETERVALUE_INVALIDIMAGERESOLUTION = 'InvalidParameterValue.InvalidIma
|
|
173
179
|
# 不支持的图片大小
|
174
180
|
INVALIDPARAMETERVALUE_INVALIDIMAGESIZE = 'InvalidParameterValue.InvalidImageSize'
|
175
181
|
|
182
|
+
# 不支持的模型。
|
183
|
+
INVALIDPARAMETERVALUE_INVALIDMODEL = 'InvalidParameterValue.InvalidModel'
|
184
|
+
|
176
185
|
# 不支持的视频宽高比。
|
177
186
|
INVALIDPARAMETERVALUE_INVALIDVIDEOASPECTRATIO = 'InvalidParameterValue.InvalidVideoAspectRatio'
|
178
187
|
|
@@ -261,6 +261,8 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
261
261
|
:type ErrorMessage: str
|
262
262
|
:param _ResultVideoUrl: 结果视频URL。有效期 24 小时。
|
263
263
|
:type ResultVideoUrl: str
|
264
|
+
:param _MaskVideoUrl: 掩码视频链接
|
265
|
+
:type MaskVideoUrl: str
|
264
266
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
265
267
|
:type RequestId: str
|
266
268
|
"""
|
@@ -268,6 +270,7 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
268
270
|
self._ErrorCode = None
|
269
271
|
self._ErrorMessage = None
|
270
272
|
self._ResultVideoUrl = None
|
273
|
+
self._MaskVideoUrl = None
|
271
274
|
self._RequestId = None
|
272
275
|
|
273
276
|
@property
|
@@ -302,6 +305,14 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
302
305
|
def ResultVideoUrl(self, ResultVideoUrl):
|
303
306
|
self._ResultVideoUrl = ResultVideoUrl
|
304
307
|
|
308
|
+
@property
|
309
|
+
def MaskVideoUrl(self):
|
310
|
+
return self._MaskVideoUrl
|
311
|
+
|
312
|
+
@MaskVideoUrl.setter
|
313
|
+
def MaskVideoUrl(self, MaskVideoUrl):
|
314
|
+
self._MaskVideoUrl = MaskVideoUrl
|
315
|
+
|
305
316
|
@property
|
306
317
|
def RequestId(self):
|
307
318
|
return self._RequestId
|
@@ -316,6 +327,7 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
316
327
|
self._ErrorCode = params.get("ErrorCode")
|
317
328
|
self._ErrorMessage = params.get("ErrorMessage")
|
318
329
|
self._ResultVideoUrl = params.get("ResultVideoUrl")
|
330
|
+
self._MaskVideoUrl = params.get("MaskVideoUrl")
|
319
331
|
self._RequestId = params.get("RequestId")
|
320
332
|
|
321
333
|
|
@@ -369,6 +381,10 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
369
381
|
:type StatusCode: str
|
370
382
|
:param _StatusMsg: 任务状态信息
|
371
383
|
:type StatusMsg: str
|
384
|
+
:param _ErrorCode: 错误码
|
385
|
+
:type ErrorCode: str
|
386
|
+
:param _ErrorMessage: 错误信息
|
387
|
+
:type ErrorMessage: str
|
372
388
|
:param _ResultVideoUrl: 生成视频的URL地址
|
373
389
|
有效期24小时
|
374
390
|
:type ResultVideoUrl: str
|
@@ -378,6 +394,8 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
378
394
|
self._JobId = None
|
379
395
|
self._StatusCode = None
|
380
396
|
self._StatusMsg = None
|
397
|
+
self._ErrorCode = None
|
398
|
+
self._ErrorMessage = None
|
381
399
|
self._ResultVideoUrl = None
|
382
400
|
self._RequestId = None
|
383
401
|
|
@@ -405,6 +423,22 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
405
423
|
def StatusMsg(self, StatusMsg):
|
406
424
|
self._StatusMsg = StatusMsg
|
407
425
|
|
426
|
+
@property
|
427
|
+
def ErrorCode(self):
|
428
|
+
return self._ErrorCode
|
429
|
+
|
430
|
+
@ErrorCode.setter
|
431
|
+
def ErrorCode(self, ErrorCode):
|
432
|
+
self._ErrorCode = ErrorCode
|
433
|
+
|
434
|
+
@property
|
435
|
+
def ErrorMessage(self):
|
436
|
+
return self._ErrorMessage
|
437
|
+
|
438
|
+
@ErrorMessage.setter
|
439
|
+
def ErrorMessage(self, ErrorMessage):
|
440
|
+
self._ErrorMessage = ErrorMessage
|
441
|
+
|
408
442
|
@property
|
409
443
|
def ResultVideoUrl(self):
|
410
444
|
return self._ResultVideoUrl
|
@@ -426,6 +460,8 @@ class DescribePortraitSingJobResponse(AbstractModel):
|
|
426
460
|
self._JobId = params.get("JobId")
|
427
461
|
self._StatusCode = params.get("StatusCode")
|
428
462
|
self._StatusMsg = params.get("StatusMsg")
|
463
|
+
self._ErrorCode = params.get("ErrorCode")
|
464
|
+
self._ErrorMessage = params.get("ErrorMessage")
|
429
465
|
self._ResultVideoUrl = params.get("ResultVideoUrl")
|
430
466
|
self._RequestId = params.get("RequestId")
|
431
467
|
|
@@ -786,12 +822,16 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
786
822
|
:type EnableAudio: bool
|
787
823
|
:param _EnableBodyJoins: 是否检测输入图人体12个身体部位(头部、颈部、右肩、右肘、右腕、左肩、左肘、左腕、右髋、左髋,、左膝、右膝)。默认不检测。
|
788
824
|
:type EnableBodyJoins: bool
|
825
|
+
:param _EnableSegment: 最终视频是否保留原图的背景(该模式对于tuziwu、huajiangwu不生效)
|
826
|
+
|
827
|
+
:type EnableSegment: bool
|
789
828
|
"""
|
790
829
|
self._ImageUrl = None
|
791
830
|
self._ImageBase64 = None
|
792
831
|
self._TemplateId = None
|
793
832
|
self._EnableAudio = None
|
794
833
|
self._EnableBodyJoins = None
|
834
|
+
self._EnableSegment = None
|
795
835
|
|
796
836
|
@property
|
797
837
|
def ImageUrl(self):
|
@@ -833,6 +873,14 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
833
873
|
def EnableBodyJoins(self, EnableBodyJoins):
|
834
874
|
self._EnableBodyJoins = EnableBodyJoins
|
835
875
|
|
876
|
+
@property
|
877
|
+
def EnableSegment(self):
|
878
|
+
return self._EnableSegment
|
879
|
+
|
880
|
+
@EnableSegment.setter
|
881
|
+
def EnableSegment(self, EnableSegment):
|
882
|
+
self._EnableSegment = EnableSegment
|
883
|
+
|
836
884
|
|
837
885
|
def _deserialize(self, params):
|
838
886
|
self._ImageUrl = params.get("ImageUrl")
|
@@ -840,6 +888,7 @@ class SubmitImageAnimateJobRequest(AbstractModel):
|
|
840
888
|
self._TemplateId = params.get("TemplateId")
|
841
889
|
self._EnableAudio = params.get("EnableAudio")
|
842
890
|
self._EnableBodyJoins = params.get("EnableBodyJoins")
|
891
|
+
self._EnableSegment = params.get("EnableSegment")
|
843
892
|
memeber_set = set(params.keys())
|
844
893
|
for name, value in vars(self).items():
|
845
894
|
property_name = name[1:]
|
@@ -894,23 +943,29 @@ class SubmitPortraitSingJobRequest(AbstractModel):
|
|
894
943
|
|
895
944
|
def __init__(self):
|
896
945
|
r"""
|
897
|
-
:param _AudioUrl: 传入音频URL
|
898
|
-
|
899
|
-
|
946
|
+
:param _AudioUrl: 传入音频URL地址,音频要求:
|
947
|
+
- 音频时长:2秒 - 60秒
|
948
|
+
- 音频格式:mp3、wav、m4a
|
900
949
|
:type AudioUrl: str
|
901
950
|
:param _ImageUrl: 传入图片URL地址,图片要求:
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
951
|
+
- 图片格式:jpg、jpeg、png、bmp、webp
|
952
|
+
- 图片分辨率:192~4096
|
953
|
+
- 图片大小:不超过10M
|
954
|
+
- 图片宽高比:图片【宽:高】在1:2到2:1范围内
|
955
|
+
- 图片内容:避免上传无人脸/宠物脸或脸部过小、不完整、不清晰、偏转角度过大的图片。
|
906
956
|
:type ImageUrl: str
|
907
|
-
:param _ImageBase64: 传入图片Base64
|
908
|
-
|
957
|
+
:param _ImageBase64: 传入图片Base64编码,编码后请求体大小不超过10M。
|
958
|
+
图片Base64编码与URL地址必传其一,如果都传以ImageBase64为准。
|
909
959
|
:type ImageBase64: str
|
960
|
+
:param _Mode: 唱演模式,默认使用人像模式。
|
961
|
+
Person:人像模式,仅支持上传人像图片,人像生成效果更好,如果图中未检测到有效人脸将被拦截,生成时会将视频短边分辨率放缩至512。
|
962
|
+
Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨率视频。
|
963
|
+
:type Mode: str
|
910
964
|
"""
|
911
965
|
self._AudioUrl = None
|
912
966
|
self._ImageUrl = None
|
913
967
|
self._ImageBase64 = None
|
968
|
+
self._Mode = None
|
914
969
|
|
915
970
|
@property
|
916
971
|
def AudioUrl(self):
|
@@ -936,11 +991,20 @@ class SubmitPortraitSingJobRequest(AbstractModel):
|
|
936
991
|
def ImageBase64(self, ImageBase64):
|
937
992
|
self._ImageBase64 = ImageBase64
|
938
993
|
|
994
|
+
@property
|
995
|
+
def Mode(self):
|
996
|
+
return self._Mode
|
997
|
+
|
998
|
+
@Mode.setter
|
999
|
+
def Mode(self, Mode):
|
1000
|
+
self._Mode = Mode
|
1001
|
+
|
939
1002
|
|
940
1003
|
def _deserialize(self, params):
|
941
1004
|
self._AudioUrl = params.get("AudioUrl")
|
942
1005
|
self._ImageUrl = params.get("ImageUrl")
|
943
1006
|
self._ImageBase64 = params.get("ImageBase64")
|
1007
|
+
self._Mode = params.get("Mode")
|
944
1008
|
memeber_set = set(params.keys())
|
945
1009
|
for name, value in vars(self).items():
|
946
1010
|
property_name = name[1:]
|
@@ -1113,6 +1177,8 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1113
1177
|
时长要求:【10~300】秒
|
1114
1178
|
大小要求:不超过 100M。
|
1115
1179
|
:type AudioUrl: str
|
1180
|
+
:param _RemoveVocal: 是否需要去除VideoUrl或AudioUrl中背景音,取值范围:0-不需要,1-需要,默认0 。
|
1181
|
+
:type RemoveVocal: int
|
1116
1182
|
:param _Confirm: 是否需要确认翻译结果0:不需要,1:需要
|
1117
1183
|
:type Confirm: int
|
1118
1184
|
:param _LipSync: 是否开启口型驱动,0:不开启,1:开启。默认开启。
|
@@ -1128,6 +1194,7 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1128
1194
|
self._SrcLang = None
|
1129
1195
|
self._DstLang = None
|
1130
1196
|
self._AudioUrl = None
|
1197
|
+
self._RemoveVocal = None
|
1131
1198
|
self._Confirm = None
|
1132
1199
|
self._LipSync = None
|
1133
1200
|
self._VoiceType = None
|
@@ -1164,6 +1231,14 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1164
1231
|
def AudioUrl(self, AudioUrl):
|
1165
1232
|
self._AudioUrl = AudioUrl
|
1166
1233
|
|
1234
|
+
@property
|
1235
|
+
def RemoveVocal(self):
|
1236
|
+
return self._RemoveVocal
|
1237
|
+
|
1238
|
+
@RemoveVocal.setter
|
1239
|
+
def RemoveVocal(self, RemoveVocal):
|
1240
|
+
self._RemoveVocal = RemoveVocal
|
1241
|
+
|
1167
1242
|
@property
|
1168
1243
|
def Confirm(self):
|
1169
1244
|
return self._Confirm
|
@@ -1194,6 +1269,7 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
|
|
1194
1269
|
self._SrcLang = params.get("SrcLang")
|
1195
1270
|
self._DstLang = params.get("DstLang")
|
1196
1271
|
self._AudioUrl = params.get("AudioUrl")
|
1272
|
+
self._RemoveVocal = params.get("RemoveVocal")
|
1197
1273
|
self._Confirm = params.get("Confirm")
|
1198
1274
|
self._LipSync = params.get("LipSync")
|
1199
1275
|
self._VoiceType = params.get("VoiceType")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tencentcloud-sdk-python-vclm
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1254
|
4
4
|
Summary: Tencent Cloud Vclm SDK for Python
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
6
6
|
Author: Tencent Cloud
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common (==3.0.
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common (==3.0.1254)
|
19
19
|
|
20
20
|
============================
|
21
21
|
Tencent Cloud SDK for Python
|
@@ -0,0 +1,10 @@
|
|
1
|
+
tencentcloud/__init__.py,sha256=QJ1PuxKsl7QJYXPA2FbFA0G3DXfPkcIWnVTvn1TVm6A,631
|
2
|
+
tencentcloud/vclm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
+
tencentcloud/vclm/v20240523/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
+
tencentcloud/vclm/v20240523/errorcodes.py,sha256=A268nNBKnYI7qv_KCNz8gURi1y91tzz0ho2aqKMhe5k,9879
|
5
|
+
tencentcloud/vclm/v20240523/models.py,sha256=ECSbVF34iSVlzkwA7p2efWpvvocUxgre6iUetr9_DZw,40365
|
6
|
+
tencentcloud/vclm/v20240523/vclm_client.py,sha256=Karo2Q2sIi1_vWltJDVTt1mfzyVoZK0W61xmLgIoTYE,14182
|
7
|
+
tencentcloud_sdk_python_vclm-3.0.1254.dist-info/METADATA,sha256=CxEqBkKA8Zga8LOGykqha4O-KYJxwc14lMoZPZQABoI,1497
|
8
|
+
tencentcloud_sdk_python_vclm-3.0.1254.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
9
|
+
tencentcloud_sdk_python_vclm-3.0.1254.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
10
|
+
tencentcloud_sdk_python_vclm-3.0.1254.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
tencentcloud/__init__.py,sha256=gVLzPeGyj_h2uaRThWoZCE8gMihKZDNQrHpJKN38bIQ,631
|
2
|
-
tencentcloud/vclm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
tencentcloud/vclm/v20240523/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
tencentcloud/vclm/v20240523/errorcodes.py,sha256=FVEtNtmkiOzF8r35yn-zMi8wgmnA21NwgAU2NpDdzLA,9557
|
5
|
-
tencentcloud/vclm/v20240523/models.py,sha256=qulBDmUbTZb4MR1JDz7C4mOU2_lIhcV42StY_3gOv5A,37715
|
6
|
-
tencentcloud/vclm/v20240523/vclm_client.py,sha256=Karo2Q2sIi1_vWltJDVTt1mfzyVoZK0W61xmLgIoTYE,14182
|
7
|
-
tencentcloud_sdk_python_vclm-3.0.1231.dist-info/METADATA,sha256=WByztmO8CQeLcpVjRe80KMHvhzSvOBt9NOtcZoIeuaI,1497
|
8
|
-
tencentcloud_sdk_python_vclm-3.0.1231.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
9
|
-
tencentcloud_sdk_python_vclm-3.0.1231.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
10
|
-
tencentcloud_sdk_python_vclm-3.0.1231.dist-info/RECORD,,
|
File without changes
|
File without changes
|