tencentcloud-sdk-python-vclm 3.0.1198__py2.py3-none-any.whl → 3.0.1199__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 +18 -0
- tencentcloud/vclm/v20240523/models.py +212 -0
- tencentcloud/vclm/v20240523/vclm_client.py +48 -0
- {tencentcloud_sdk_python_vclm-3.0.1198.dist-info → tencentcloud_sdk_python_vclm-3.0.1199.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_vclm-3.0.1199.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_vclm-3.0.1198.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_vclm-3.0.1198.dist-info → tencentcloud_sdk_python_vclm-3.0.1199.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_vclm-3.0.1198.dist-info → tencentcloud_sdk_python_vclm-3.0.1199.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -59,6 +59,9 @@ FAILEDOPERATION_JOBNOTFOUND = 'FailedOperation.JobNotFound'
|
|
59
59
|
# 任务队列已满,请稍后重试。
|
60
60
|
FAILEDOPERATION_JOBQUEUEFULL = 'FailedOperation.JobQueueFull'
|
61
61
|
|
62
|
+
# 音频审核失败
|
63
|
+
FAILEDOPERATION_MODERATIONAUDIOFAILED = 'FailedOperation.ModerationAudioFailed'
|
64
|
+
|
62
65
|
# 内容审核不通过。
|
63
66
|
FAILEDOPERATION_MODERATIONFAILED = 'FailedOperation.ModerationFailed'
|
64
67
|
|
@@ -113,6 +116,21 @@ INVALIDPARAMETER_INVALIDPARAMETER = 'InvalidParameter.InvalidParameter'
|
|
113
116
|
# 参数取值错误。
|
114
117
|
INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
115
118
|
|
119
|
+
# 不支持的音频时长。
|
120
|
+
INVALIDPARAMETERVALUE_INVALIDAUDIODURATION = 'InvalidParameterValue.InvalidAudioDuration'
|
121
|
+
|
122
|
+
# 不支持的图片长宽比。
|
123
|
+
INVALIDPARAMETERVALUE_INVALIDIMAGEASPECTRATIO = 'InvalidParameterValue.InvalidImageAspectRatio'
|
124
|
+
|
125
|
+
# 不支持的图片格式
|
126
|
+
INVALIDPARAMETERVALUE_INVALIDIMAGEFORMAT = 'InvalidParameterValue.InvalidImageFormat'
|
127
|
+
|
128
|
+
# 图片分辨率超限。
|
129
|
+
INVALIDPARAMETERVALUE_INVALIDIMAGERESOLUTION = 'InvalidParameterValue.InvalidImageResolution'
|
130
|
+
|
131
|
+
# 不支持的图片大小
|
132
|
+
INVALIDPARAMETERVALUE_INVALIDIMAGESIZE = 'InvalidParameterValue.InvalidImageSize'
|
133
|
+
|
116
134
|
# 不支持的视频宽高比。
|
117
135
|
INVALIDPARAMETERVALUE_INVALIDVIDEOASPECTRATIO = 'InvalidParameterValue.InvalidVideoAspectRatio'
|
118
136
|
|
@@ -319,6 +319,117 @@ class DescribeImageAnimateJobResponse(AbstractModel):
|
|
319
319
|
self._RequestId = params.get("RequestId")
|
320
320
|
|
321
321
|
|
322
|
+
class DescribePortraitSingJobRequest(AbstractModel):
|
323
|
+
"""DescribePortraitSingJob请求参数结构体
|
324
|
+
|
325
|
+
"""
|
326
|
+
|
327
|
+
def __init__(self):
|
328
|
+
r"""
|
329
|
+
:param _JobId: 任务ID
|
330
|
+
:type JobId: str
|
331
|
+
"""
|
332
|
+
self._JobId = None
|
333
|
+
|
334
|
+
@property
|
335
|
+
def JobId(self):
|
336
|
+
return self._JobId
|
337
|
+
|
338
|
+
@JobId.setter
|
339
|
+
def JobId(self, JobId):
|
340
|
+
self._JobId = JobId
|
341
|
+
|
342
|
+
|
343
|
+
def _deserialize(self, params):
|
344
|
+
self._JobId = params.get("JobId")
|
345
|
+
memeber_set = set(params.keys())
|
346
|
+
for name, value in vars(self).items():
|
347
|
+
property_name = name[1:]
|
348
|
+
if property_name in memeber_set:
|
349
|
+
memeber_set.remove(property_name)
|
350
|
+
if len(memeber_set) > 0:
|
351
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
class DescribePortraitSingJobResponse(AbstractModel):
|
356
|
+
"""DescribePortraitSingJob返回参数结构体
|
357
|
+
|
358
|
+
"""
|
359
|
+
|
360
|
+
def __init__(self):
|
361
|
+
r"""
|
362
|
+
:param _JobId: 任务ID
|
363
|
+
:type JobId: str
|
364
|
+
:param _StatusCode: 任务状态码
|
365
|
+
—RUN:处理中
|
366
|
+
—FAIL:处理失败
|
367
|
+
—STOP:处理终止
|
368
|
+
—DONE:处理完成
|
369
|
+
:type StatusCode: str
|
370
|
+
:param _StatusMsg: 任务状态信息
|
371
|
+
:type StatusMsg: str
|
372
|
+
:param _ResultVideoUrl: 生成视频的URL地址
|
373
|
+
有效期24小时
|
374
|
+
:type ResultVideoUrl: str
|
375
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
376
|
+
:type RequestId: str
|
377
|
+
"""
|
378
|
+
self._JobId = None
|
379
|
+
self._StatusCode = None
|
380
|
+
self._StatusMsg = None
|
381
|
+
self._ResultVideoUrl = None
|
382
|
+
self._RequestId = None
|
383
|
+
|
384
|
+
@property
|
385
|
+
def JobId(self):
|
386
|
+
return self._JobId
|
387
|
+
|
388
|
+
@JobId.setter
|
389
|
+
def JobId(self, JobId):
|
390
|
+
self._JobId = JobId
|
391
|
+
|
392
|
+
@property
|
393
|
+
def StatusCode(self):
|
394
|
+
return self._StatusCode
|
395
|
+
|
396
|
+
@StatusCode.setter
|
397
|
+
def StatusCode(self, StatusCode):
|
398
|
+
self._StatusCode = StatusCode
|
399
|
+
|
400
|
+
@property
|
401
|
+
def StatusMsg(self):
|
402
|
+
return self._StatusMsg
|
403
|
+
|
404
|
+
@StatusMsg.setter
|
405
|
+
def StatusMsg(self, StatusMsg):
|
406
|
+
self._StatusMsg = StatusMsg
|
407
|
+
|
408
|
+
@property
|
409
|
+
def ResultVideoUrl(self):
|
410
|
+
return self._ResultVideoUrl
|
411
|
+
|
412
|
+
@ResultVideoUrl.setter
|
413
|
+
def ResultVideoUrl(self, ResultVideoUrl):
|
414
|
+
self._ResultVideoUrl = ResultVideoUrl
|
415
|
+
|
416
|
+
@property
|
417
|
+
def RequestId(self):
|
418
|
+
return self._RequestId
|
419
|
+
|
420
|
+
@RequestId.setter
|
421
|
+
def RequestId(self, RequestId):
|
422
|
+
self._RequestId = RequestId
|
423
|
+
|
424
|
+
|
425
|
+
def _deserialize(self, params):
|
426
|
+
self._JobId = params.get("JobId")
|
427
|
+
self._StatusCode = params.get("StatusCode")
|
428
|
+
self._StatusMsg = params.get("StatusMsg")
|
429
|
+
self._ResultVideoUrl = params.get("ResultVideoUrl")
|
430
|
+
self._RequestId = params.get("RequestId")
|
431
|
+
|
432
|
+
|
322
433
|
class DescribeVideoStylizationJobRequest(AbstractModel):
|
323
434
|
"""DescribeVideoStylizationJob请求参数结构体
|
324
435
|
|
@@ -764,6 +875,107 @@ class SubmitImageAnimateJobResponse(AbstractModel):
|
|
764
875
|
self._RequestId = params.get("RequestId")
|
765
876
|
|
766
877
|
|
878
|
+
class SubmitPortraitSingJobRequest(AbstractModel):
|
879
|
+
"""SubmitPortraitSingJob请求参数结构体
|
880
|
+
|
881
|
+
"""
|
882
|
+
|
883
|
+
def __init__(self):
|
884
|
+
r"""
|
885
|
+
:param _AudioUrl: 传入音频URL地址。音频要求:
|
886
|
+
—音频时长:不超过60秒
|
887
|
+
—音频格式:mp3、wav、m4a
|
888
|
+
:type AudioUrl: str
|
889
|
+
:param _ImageUrl: 传入图片URL地址,图片要求:
|
890
|
+
—图片格式:jpg、jpeg、png
|
891
|
+
—图片分辨率:长边不超过2560
|
892
|
+
—图片大小:不超过6M
|
893
|
+
—图片宽高比:图片【宽:高】在1:2到2:1范围内
|
894
|
+
:type ImageUrl: str
|
895
|
+
:param _ImageBase64: 传入图片Base64编码。
|
896
|
+
—图片Base64编码与URL地址必传其一
|
897
|
+
:type ImageBase64: str
|
898
|
+
"""
|
899
|
+
self._AudioUrl = None
|
900
|
+
self._ImageUrl = None
|
901
|
+
self._ImageBase64 = None
|
902
|
+
|
903
|
+
@property
|
904
|
+
def AudioUrl(self):
|
905
|
+
return self._AudioUrl
|
906
|
+
|
907
|
+
@AudioUrl.setter
|
908
|
+
def AudioUrl(self, AudioUrl):
|
909
|
+
self._AudioUrl = AudioUrl
|
910
|
+
|
911
|
+
@property
|
912
|
+
def ImageUrl(self):
|
913
|
+
return self._ImageUrl
|
914
|
+
|
915
|
+
@ImageUrl.setter
|
916
|
+
def ImageUrl(self, ImageUrl):
|
917
|
+
self._ImageUrl = ImageUrl
|
918
|
+
|
919
|
+
@property
|
920
|
+
def ImageBase64(self):
|
921
|
+
return self._ImageBase64
|
922
|
+
|
923
|
+
@ImageBase64.setter
|
924
|
+
def ImageBase64(self, ImageBase64):
|
925
|
+
self._ImageBase64 = ImageBase64
|
926
|
+
|
927
|
+
|
928
|
+
def _deserialize(self, params):
|
929
|
+
self._AudioUrl = params.get("AudioUrl")
|
930
|
+
self._ImageUrl = params.get("ImageUrl")
|
931
|
+
self._ImageBase64 = params.get("ImageBase64")
|
932
|
+
memeber_set = set(params.keys())
|
933
|
+
for name, value in vars(self).items():
|
934
|
+
property_name = name[1:]
|
935
|
+
if property_name in memeber_set:
|
936
|
+
memeber_set.remove(property_name)
|
937
|
+
if len(memeber_set) > 0:
|
938
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
939
|
+
|
940
|
+
|
941
|
+
|
942
|
+
class SubmitPortraitSingJobResponse(AbstractModel):
|
943
|
+
"""SubmitPortraitSingJob返回参数结构体
|
944
|
+
|
945
|
+
"""
|
946
|
+
|
947
|
+
def __init__(self):
|
948
|
+
r"""
|
949
|
+
:param _JobId: 任务ID
|
950
|
+
:type JobId: str
|
951
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
952
|
+
:type RequestId: str
|
953
|
+
"""
|
954
|
+
self._JobId = None
|
955
|
+
self._RequestId = None
|
956
|
+
|
957
|
+
@property
|
958
|
+
def JobId(self):
|
959
|
+
return self._JobId
|
960
|
+
|
961
|
+
@JobId.setter
|
962
|
+
def JobId(self, JobId):
|
963
|
+
self._JobId = JobId
|
964
|
+
|
965
|
+
@property
|
966
|
+
def RequestId(self):
|
967
|
+
return self._RequestId
|
968
|
+
|
969
|
+
@RequestId.setter
|
970
|
+
def RequestId(self, RequestId):
|
971
|
+
self._RequestId = RequestId
|
972
|
+
|
973
|
+
|
974
|
+
def _deserialize(self, params):
|
975
|
+
self._JobId = params.get("JobId")
|
976
|
+
self._RequestId = params.get("RequestId")
|
977
|
+
|
978
|
+
|
767
979
|
class SubmitVideoStylizationJobRequest(AbstractModel):
|
768
980
|
"""SubmitVideoStylizationJob请求参数结构体
|
769
981
|
|
@@ -72,6 +72,30 @@ class VclmClient(AbstractClient):
|
|
72
72
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
73
73
|
|
74
74
|
|
75
|
+
def DescribePortraitSingJob(self, request):
|
76
|
+
"""用于查询图片唱演任务。
|
77
|
+
支持提交音频和图片生成唱演视频,满足社交娱乐、互动营销等场景的需求。
|
78
|
+
|
79
|
+
:param request: Request instance for DescribePortraitSingJob.
|
80
|
+
:type request: :class:`tencentcloud.vclm.v20240523.models.DescribePortraitSingJobRequest`
|
81
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.DescribePortraitSingJobResponse`
|
82
|
+
|
83
|
+
"""
|
84
|
+
try:
|
85
|
+
params = request._serialize()
|
86
|
+
headers = request.headers
|
87
|
+
body = self.call("DescribePortraitSingJob", params, headers=headers)
|
88
|
+
response = json.loads(body)
|
89
|
+
model = models.DescribePortraitSingJobResponse()
|
90
|
+
model._deserialize(response["Response"])
|
91
|
+
return model
|
92
|
+
except Exception as e:
|
93
|
+
if isinstance(e, TencentCloudSDKException):
|
94
|
+
raise
|
95
|
+
else:
|
96
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
97
|
+
|
98
|
+
|
75
99
|
def DescribeVideoStylizationJob(self, request):
|
76
100
|
"""用于查询视频风格化任务。视频风格化支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
|
77
101
|
|
@@ -141,6 +165,30 @@ class VclmClient(AbstractClient):
|
|
141
165
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
142
166
|
|
143
167
|
|
168
|
+
def SubmitPortraitSingJob(self, request):
|
169
|
+
"""用于提交图片唱演任务。
|
170
|
+
支持提交音频和图片生成唱演视频,满足社交娱乐、互动营销等场景的需求。
|
171
|
+
|
172
|
+
:param request: Request instance for SubmitPortraitSingJob.
|
173
|
+
:type request: :class:`tencentcloud.vclm.v20240523.models.SubmitPortraitSingJobRequest`
|
174
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.SubmitPortraitSingJobResponse`
|
175
|
+
|
176
|
+
"""
|
177
|
+
try:
|
178
|
+
params = request._serialize()
|
179
|
+
headers = request.headers
|
180
|
+
body = self.call("SubmitPortraitSingJob", params, headers=headers)
|
181
|
+
response = json.loads(body)
|
182
|
+
model = models.SubmitPortraitSingJobResponse()
|
183
|
+
model._deserialize(response["Response"])
|
184
|
+
return model
|
185
|
+
except Exception as e:
|
186
|
+
if isinstance(e, TencentCloudSDKException):
|
187
|
+
raise
|
188
|
+
else:
|
189
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
190
|
+
|
191
|
+
|
144
192
|
def SubmitVideoStylizationJob(self, request):
|
145
193
|
"""用于提交视频风格化任务。支持将输入视频生成特定风格的视频。生成后的视频画面风格多样、流畅自然,能够满足社交娱乐、互动营销、视频素材制作等场景的需求。
|
146
194
|
|
@@ -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.1199
|
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.1199)
|
19
19
|
|
20
20
|
============================
|
21
21
|
Tencent Cloud SDK for Python
|
@@ -0,0 +1,10 @@
|
|
1
|
+
tencentcloud/__init__.py,sha256=uFrFM8sUSYsLwBxWhKaYYBrr5J_CFIgJ4jMYQoieT_k,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=-25qGrIjvNRWXzO94VwZFnpsqiMASAxxBfDIMmoPkTQ,7437
|
5
|
+
tencentcloud/vclm/v20240523/models.py,sha256=Lc_PUI_RwfUvdkBYQkPCavq2Z1ssZ3f_grKr-PfyCXw,36026
|
6
|
+
tencentcloud/vclm/v20240523/vclm_client.py,sha256=QQ1lIjoAO_eWxERXOYmJCBNgN4TuV4LBIGgPEK5DhiI,10163
|
7
|
+
tencentcloud_sdk_python_vclm-3.0.1199.dist-info/METADATA,sha256=ZxRz7p4Civ9uTsPvxxbjqiD9DTdzsjVHUJ9NYKJCOw0,1497
|
8
|
+
tencentcloud_sdk_python_vclm-3.0.1199.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
9
|
+
tencentcloud_sdk_python_vclm-3.0.1199.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
10
|
+
tencentcloud_sdk_python_vclm-3.0.1199.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
tencentcloud/__init__.py,sha256=4wFA9hpqQCKwZlgywecsMnqC7cZLGbFSSOBN8_LSGxs,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=LGev8l934q9aBExQDXFwKItyUMMCp3hrL5Ij_QWRrsY,6738
|
5
|
-
tencentcloud/vclm/v20240523/models.py,sha256=1StvDQL3rADupwvpnEzFgGkmpujuqFgNPtdyG2G8xGk,30269
|
6
|
-
tencentcloud/vclm/v20240523/vclm_client.py,sha256=uX_N13oIbeD8cgIyDcEU0MotOKPopEz-djOyeOI_s8c,8109
|
7
|
-
tencentcloud_sdk_python_vclm-3.0.1198.dist-info/METADATA,sha256=bvBvjQ12avE1-TWIJqWqAwZ4c9pgs0Bsg7_cMm2XcWc,1497
|
8
|
-
tencentcloud_sdk_python_vclm-3.0.1198.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
9
|
-
tencentcloud_sdk_python_vclm-3.0.1198.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
10
|
-
tencentcloud_sdk_python_vclm-3.0.1198.dist-info/RECORD,,
|
File without changes
|
File without changes
|