tencentcloud-sdk-python-vclm 3.0.1249__tar.gz → 3.0.1254__tar.gz

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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/setup.py +1 -1
  3. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/tencentcloud/vclm/v20240523/errorcodes.py +6 -0
  5. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/tencentcloud/vclm/v20240523/models.py +60 -9
  6. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/tencentcloud_sdk_python_vclm.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-vclm-3.0.1254/tencentcloud_sdk_python_vclm.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-vclm-3.0.1249/tencentcloud_sdk_python_vclm.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/README.rst +0 -0
  10. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/tencentcloud/vclm/__init__.py +0 -0
  12. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/tencentcloud/vclm/v20240523/__init__.py +0 -0
  13. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/tencentcloud/vclm/v20240523/vclm_client.py +0 -0
  14. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/tencentcloud_sdk_python_vclm.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/tencentcloud_sdk_python_vclm.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-vclm-3.0.1249 → tencentcloud-sdk-python-vclm-3.0.1254}/tencentcloud_sdk_python_vclm.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-vclm
3
- Version: 3.0.1249
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
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-vclm',
11
- install_requires=["tencentcloud-sdk-python-common==3.0.1249"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1254"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Vclm SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1249'
17
+ __version__ = '3.0.1254'
@@ -164,6 +164,9 @@ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
164
164
  # 不支持的音频时长。
165
165
  INVALIDPARAMETERVALUE_INVALIDAUDIODURATION = 'InvalidParameterValue.InvalidAudioDuration'
166
166
 
167
+ # 不支持的音频格式。
168
+ INVALIDPARAMETERVALUE_INVALIDAUDIOFORMAT = 'InvalidParameterValue.InvalidAudioFormat'
169
+
167
170
  # 不支持的图片长宽比。
168
171
  INVALIDPARAMETERVALUE_INVALIDIMAGEASPECTRATIO = 'InvalidParameterValue.InvalidImageAspectRatio'
169
172
 
@@ -176,6 +179,9 @@ INVALIDPARAMETERVALUE_INVALIDIMAGERESOLUTION = 'InvalidParameterValue.InvalidIma
176
179
  # 不支持的图片大小
177
180
  INVALIDPARAMETERVALUE_INVALIDIMAGESIZE = 'InvalidParameterValue.InvalidImageSize'
178
181
 
182
+ # 不支持的模型。
183
+ INVALIDPARAMETERVALUE_INVALIDMODEL = 'InvalidParameterValue.InvalidModel'
184
+
179
185
  # 不支持的视频宽高比。
180
186
  INVALIDPARAMETERVALUE_INVALIDVIDEOASPECTRATIO = 'InvalidParameterValue.InvalidVideoAspectRatio'
181
187
 
@@ -381,6 +381,10 @@ class DescribePortraitSingJobResponse(AbstractModel):
381
381
  :type StatusCode: str
382
382
  :param _StatusMsg: 任务状态信息
383
383
  :type StatusMsg: str
384
+ :param _ErrorCode: 错误码
385
+ :type ErrorCode: str
386
+ :param _ErrorMessage: 错误信息
387
+ :type ErrorMessage: str
384
388
  :param _ResultVideoUrl: 生成视频的URL地址
385
389
  有效期24小时
386
390
  :type ResultVideoUrl: str
@@ -390,6 +394,8 @@ class DescribePortraitSingJobResponse(AbstractModel):
390
394
  self._JobId = None
391
395
  self._StatusCode = None
392
396
  self._StatusMsg = None
397
+ self._ErrorCode = None
398
+ self._ErrorMessage = None
393
399
  self._ResultVideoUrl = None
394
400
  self._RequestId = None
395
401
 
@@ -417,6 +423,22 @@ class DescribePortraitSingJobResponse(AbstractModel):
417
423
  def StatusMsg(self, StatusMsg):
418
424
  self._StatusMsg = StatusMsg
419
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
+
420
442
  @property
421
443
  def ResultVideoUrl(self):
422
444
  return self._ResultVideoUrl
@@ -438,6 +460,8 @@ class DescribePortraitSingJobResponse(AbstractModel):
438
460
  self._JobId = params.get("JobId")
439
461
  self._StatusCode = params.get("StatusCode")
440
462
  self._StatusMsg = params.get("StatusMsg")
463
+ self._ErrorCode = params.get("ErrorCode")
464
+ self._ErrorMessage = params.get("ErrorMessage")
441
465
  self._ResultVideoUrl = params.get("ResultVideoUrl")
442
466
  self._RequestId = params.get("RequestId")
443
467
 
@@ -919,23 +943,29 @@ class SubmitPortraitSingJobRequest(AbstractModel):
919
943
 
920
944
  def __init__(self):
921
945
  r"""
922
- :param _AudioUrl: 传入音频URL地址。音频要求:
923
- —音频时长:不超过60秒
924
- —音频格式:mp3、wav、m4a
946
+ :param _AudioUrl: 传入音频URL地址,音频要求:
947
+ - 音频时长:2秒 - 60秒
948
+ - 音频格式:mp3、wav、m4a
925
949
  :type AudioUrl: str
926
950
  :param _ImageUrl: 传入图片URL地址,图片要求:
927
- —图片格式:jpg、jpeg、png
928
- —图片分辨率:长边不超过2560
929
- —图片大小:不超过6M
930
- —图片宽高比:图片【宽:高】在1:2到2:1范围内
951
+ - 图片格式:jpg、jpeg、png、bmp、webp
952
+ - 图片分辨率:192~4096
953
+ - 图片大小:不超过10M
954
+ - 图片宽高比:图片【宽:高】在1:2到2:1范围内
955
+ - 图片内容:避免上传无人脸/宠物脸或脸部过小、不完整、不清晰、偏转角度过大的图片。
931
956
  :type ImageUrl: str
932
- :param _ImageBase64: 传入图片Base64编码。
933
- —图片Base64编码与URL地址必传其一
957
+ :param _ImageBase64: 传入图片Base64编码,编码后请求体大小不超过10M。
958
+ 图片Base64编码与URL地址必传其一,如果都传以ImageBase64为准。
934
959
  :type ImageBase64: str
960
+ :param _Mode: 唱演模式,默认使用人像模式。
961
+ Person:人像模式,仅支持上传人像图片,人像生成效果更好,如果图中未检测到有效人脸将被拦截,生成时会将视频短边分辨率放缩至512。
962
+ Pet:宠物模式,支持宠物等非人像图片,固定生成512:512分辨率视频。
963
+ :type Mode: str
935
964
  """
936
965
  self._AudioUrl = None
937
966
  self._ImageUrl = None
938
967
  self._ImageBase64 = None
968
+ self._Mode = None
939
969
 
940
970
  @property
941
971
  def AudioUrl(self):
@@ -961,11 +991,20 @@ class SubmitPortraitSingJobRequest(AbstractModel):
961
991
  def ImageBase64(self, ImageBase64):
962
992
  self._ImageBase64 = ImageBase64
963
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
+
964
1002
 
965
1003
  def _deserialize(self, params):
966
1004
  self._AudioUrl = params.get("AudioUrl")
967
1005
  self._ImageUrl = params.get("ImageUrl")
968
1006
  self._ImageBase64 = params.get("ImageBase64")
1007
+ self._Mode = params.get("Mode")
969
1008
  memeber_set = set(params.keys())
970
1009
  for name, value in vars(self).items():
971
1010
  property_name = name[1:]
@@ -1138,6 +1177,8 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
1138
1177
  时长要求:【10~300】秒
1139
1178
  大小要求:不超过 100M。
1140
1179
  :type AudioUrl: str
1180
+ :param _RemoveVocal: 是否需要去除VideoUrl或AudioUrl中背景音,取值范围:0-不需要,1-需要,默认0 。
1181
+ :type RemoveVocal: int
1141
1182
  :param _Confirm: 是否需要确认翻译结果0:不需要,1:需要
1142
1183
  :type Confirm: int
1143
1184
  :param _LipSync: 是否开启口型驱动,0:不开启,1:开启。默认开启。
@@ -1153,6 +1194,7 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
1153
1194
  self._SrcLang = None
1154
1195
  self._DstLang = None
1155
1196
  self._AudioUrl = None
1197
+ self._RemoveVocal = None
1156
1198
  self._Confirm = None
1157
1199
  self._LipSync = None
1158
1200
  self._VoiceType = None
@@ -1189,6 +1231,14 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
1189
1231
  def AudioUrl(self, AudioUrl):
1190
1232
  self._AudioUrl = AudioUrl
1191
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
+
1192
1242
  @property
1193
1243
  def Confirm(self):
1194
1244
  return self._Confirm
@@ -1219,6 +1269,7 @@ zh(简体中文)、en(英语)、ar(阿拉伯语)、de(德语)、es(西班牙语)
1219
1269
  self._SrcLang = params.get("SrcLang")
1220
1270
  self._DstLang = params.get("DstLang")
1221
1271
  self._AudioUrl = params.get("AudioUrl")
1272
+ self._RemoveVocal = params.get("RemoveVocal")
1222
1273
  self._Confirm = params.get("Confirm")
1223
1274
  self._LipSync = params.get("LipSync")
1224
1275
  self._VoiceType = params.get("VoiceType")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-vclm
3
- Version: 3.0.1249
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1254
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1249