tencentcloud-sdk-python-mps 3.1.109__tar.gz → 3.1.118__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.
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/setup.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/mps/v20190612/errorcodes.py +3 -0
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/mps/v20190612/models.py +812 -16
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/mps/v20190612/mps_client.py +69 -0
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/mps/v20190612/mps_client_async.py +54 -0
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_mps-3.1.118/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_mps-3.1.109/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/README.rst +0 -0
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/setup.cfg +0 -0
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/mps/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud/mps/v20190612/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.109 → tencentcloud_sdk_python_mps-3.1.118}/tencentcloud_sdk_python_mps.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mps
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.118
|
|
4
4
|
Summary: Tencent Cloud Mps 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<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.118
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-mps',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.118,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Mps SDK for Python',
|
|
@@ -257,6 +257,9 @@ INVALIDPARAMETERVALUE_DISABLEHIGHERVIDEORESOLUTION = 'InvalidParameterValue.Disa
|
|
|
257
257
|
# 水印文本重复
|
|
258
258
|
INVALIDPARAMETERVALUE_DUPLICATEDTEXTCONTENT = 'InvalidParameterValue.DuplicatedTextContent'
|
|
259
259
|
|
|
260
|
+
# Duration 参数过大
|
|
261
|
+
INVALIDPARAMETERVALUE_DURATIONTOOLONG = 'InvalidParameterValue.DurationTooLong'
|
|
262
|
+
|
|
260
263
|
# 模板开启的检测项为空。
|
|
261
264
|
INVALIDPARAMETERVALUE_EMPTYDETECTITEM = 'InvalidParameterValue.EmptyDetectItem'
|
|
262
265
|
|
|
@@ -12663,6 +12663,282 @@ class AiSampleWordInfo(AbstractModel):
|
|
|
12663
12663
|
|
|
12664
12664
|
|
|
12665
12665
|
|
|
12666
|
+
class AiTryOnConfig(AbstractModel):
|
|
12667
|
+
r"""虚拟试穿任务配置。
|
|
12668
|
+
|
|
12669
|
+
"""
|
|
12670
|
+
|
|
12671
|
+
def __init__(self):
|
|
12672
|
+
r"""
|
|
12673
|
+
:param _Model: <p>换装模型,取值:</p><ul><li>WAND-tryon-1.0-lite</li><li>WAND-tryon-1.0-flash</li><li>WAND-tryon-1.0-pro</li></ul>
|
|
12674
|
+
:type Model: str
|
|
12675
|
+
:param _Prompt: <p>换装指令。</p><p>为空时使用内置指令。</p>
|
|
12676
|
+
:type Prompt: str
|
|
12677
|
+
:param _Resolution: <p>输出图片分辨率,取值:</p><ul><li>1K</li><li>2K</li><li>4K</li></ul><p>默认值:1K</p>
|
|
12678
|
+
:type Resolution: str
|
|
12679
|
+
"""
|
|
12680
|
+
self._Model = None
|
|
12681
|
+
self._Prompt = None
|
|
12682
|
+
self._Resolution = None
|
|
12683
|
+
|
|
12684
|
+
@property
|
|
12685
|
+
def Model(self):
|
|
12686
|
+
r"""<p>换装模型,取值:</p><ul><li>WAND-tryon-1.0-lite</li><li>WAND-tryon-1.0-flash</li><li>WAND-tryon-1.0-pro</li></ul>
|
|
12687
|
+
:rtype: str
|
|
12688
|
+
"""
|
|
12689
|
+
return self._Model
|
|
12690
|
+
|
|
12691
|
+
@Model.setter
|
|
12692
|
+
def Model(self, Model):
|
|
12693
|
+
self._Model = Model
|
|
12694
|
+
|
|
12695
|
+
@property
|
|
12696
|
+
def Prompt(self):
|
|
12697
|
+
r"""<p>换装指令。</p><p>为空时使用内置指令。</p>
|
|
12698
|
+
:rtype: str
|
|
12699
|
+
"""
|
|
12700
|
+
return self._Prompt
|
|
12701
|
+
|
|
12702
|
+
@Prompt.setter
|
|
12703
|
+
def Prompt(self, Prompt):
|
|
12704
|
+
self._Prompt = Prompt
|
|
12705
|
+
|
|
12706
|
+
@property
|
|
12707
|
+
def Resolution(self):
|
|
12708
|
+
r"""<p>输出图片分辨率,取值:</p><ul><li>1K</li><li>2K</li><li>4K</li></ul><p>默认值:1K</p>
|
|
12709
|
+
:rtype: str
|
|
12710
|
+
"""
|
|
12711
|
+
return self._Resolution
|
|
12712
|
+
|
|
12713
|
+
@Resolution.setter
|
|
12714
|
+
def Resolution(self, Resolution):
|
|
12715
|
+
self._Resolution = Resolution
|
|
12716
|
+
|
|
12717
|
+
|
|
12718
|
+
def _deserialize(self, params):
|
|
12719
|
+
self._Model = params.get("Model")
|
|
12720
|
+
self._Prompt = params.get("Prompt")
|
|
12721
|
+
self._Resolution = params.get("Resolution")
|
|
12722
|
+
memeber_set = set(params.keys())
|
|
12723
|
+
for name, value in vars(self).items():
|
|
12724
|
+
property_name = name[1:]
|
|
12725
|
+
if property_name in memeber_set:
|
|
12726
|
+
memeber_set.remove(property_name)
|
|
12727
|
+
if len(memeber_set) > 0:
|
|
12728
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12729
|
+
|
|
12730
|
+
|
|
12731
|
+
|
|
12732
|
+
class AigcAudioExtraParam(AbstractModel):
|
|
12733
|
+
r"""Aigc生音频扩展参数。
|
|
12734
|
+
|
|
12735
|
+
"""
|
|
12736
|
+
|
|
12737
|
+
def __init__(self):
|
|
12738
|
+
r"""
|
|
12739
|
+
:param _ResourceId: <p>资源id,根据具体需要填写。</p>
|
|
12740
|
+
:type ResourceId: str
|
|
12741
|
+
"""
|
|
12742
|
+
self._ResourceId = None
|
|
12743
|
+
|
|
12744
|
+
@property
|
|
12745
|
+
def ResourceId(self):
|
|
12746
|
+
r"""<p>资源id,根据具体需要填写。</p>
|
|
12747
|
+
:rtype: str
|
|
12748
|
+
"""
|
|
12749
|
+
return self._ResourceId
|
|
12750
|
+
|
|
12751
|
+
@ResourceId.setter
|
|
12752
|
+
def ResourceId(self, ResourceId):
|
|
12753
|
+
self._ResourceId = ResourceId
|
|
12754
|
+
|
|
12755
|
+
|
|
12756
|
+
def _deserialize(self, params):
|
|
12757
|
+
self._ResourceId = params.get("ResourceId")
|
|
12758
|
+
memeber_set = set(params.keys())
|
|
12759
|
+
for name, value in vars(self).items():
|
|
12760
|
+
property_name = name[1:]
|
|
12761
|
+
if property_name in memeber_set:
|
|
12762
|
+
memeber_set.remove(property_name)
|
|
12763
|
+
if len(memeber_set) > 0:
|
|
12764
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12765
|
+
|
|
12766
|
+
|
|
12767
|
+
|
|
12768
|
+
class AigcAudioOutputAudioInfo(AbstractModel):
|
|
12769
|
+
r"""Aigc生音频任务,输出的音频信息。
|
|
12770
|
+
|
|
12771
|
+
"""
|
|
12772
|
+
|
|
12773
|
+
def __init__(self):
|
|
12774
|
+
r"""
|
|
12775
|
+
:param _Url: <p>音频URl。</p>
|
|
12776
|
+
:type Url: str
|
|
12777
|
+
:param _Duration: <p>音频时长。</p>
|
|
12778
|
+
:type Duration: int
|
|
12779
|
+
"""
|
|
12780
|
+
self._Url = None
|
|
12781
|
+
self._Duration = None
|
|
12782
|
+
|
|
12783
|
+
@property
|
|
12784
|
+
def Url(self):
|
|
12785
|
+
r"""<p>音频URl。</p>
|
|
12786
|
+
:rtype: str
|
|
12787
|
+
"""
|
|
12788
|
+
return self._Url
|
|
12789
|
+
|
|
12790
|
+
@Url.setter
|
|
12791
|
+
def Url(self, Url):
|
|
12792
|
+
self._Url = Url
|
|
12793
|
+
|
|
12794
|
+
@property
|
|
12795
|
+
def Duration(self):
|
|
12796
|
+
r"""<p>音频时长。</p>
|
|
12797
|
+
:rtype: int
|
|
12798
|
+
"""
|
|
12799
|
+
return self._Duration
|
|
12800
|
+
|
|
12801
|
+
@Duration.setter
|
|
12802
|
+
def Duration(self, Duration):
|
|
12803
|
+
self._Duration = Duration
|
|
12804
|
+
|
|
12805
|
+
|
|
12806
|
+
def _deserialize(self, params):
|
|
12807
|
+
self._Url = params.get("Url")
|
|
12808
|
+
self._Duration = params.get("Duration")
|
|
12809
|
+
memeber_set = set(params.keys())
|
|
12810
|
+
for name, value in vars(self).items():
|
|
12811
|
+
property_name = name[1:]
|
|
12812
|
+
if property_name in memeber_set:
|
|
12813
|
+
memeber_set.remove(property_name)
|
|
12814
|
+
if len(memeber_set) > 0:
|
|
12815
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12816
|
+
|
|
12817
|
+
|
|
12818
|
+
|
|
12819
|
+
class AigcAudioOutputVideoInfo(AbstractModel):
|
|
12820
|
+
r"""Aigc生音频任务,输出的视频信息。
|
|
12821
|
+
|
|
12822
|
+
"""
|
|
12823
|
+
|
|
12824
|
+
def __init__(self):
|
|
12825
|
+
r"""
|
|
12826
|
+
:param _Url: <p>视频URL。</p>
|
|
12827
|
+
:type Url: str
|
|
12828
|
+
:param _Duration: <p>视频时长。</p>
|
|
12829
|
+
:type Duration: int
|
|
12830
|
+
"""
|
|
12831
|
+
self._Url = None
|
|
12832
|
+
self._Duration = None
|
|
12833
|
+
|
|
12834
|
+
@property
|
|
12835
|
+
def Url(self):
|
|
12836
|
+
r"""<p>视频URL。</p>
|
|
12837
|
+
:rtype: str
|
|
12838
|
+
"""
|
|
12839
|
+
return self._Url
|
|
12840
|
+
|
|
12841
|
+
@Url.setter
|
|
12842
|
+
def Url(self, Url):
|
|
12843
|
+
self._Url = Url
|
|
12844
|
+
|
|
12845
|
+
@property
|
|
12846
|
+
def Duration(self):
|
|
12847
|
+
r"""<p>视频时长。</p>
|
|
12848
|
+
:rtype: int
|
|
12849
|
+
"""
|
|
12850
|
+
return self._Duration
|
|
12851
|
+
|
|
12852
|
+
@Duration.setter
|
|
12853
|
+
def Duration(self, Duration):
|
|
12854
|
+
self._Duration = Duration
|
|
12855
|
+
|
|
12856
|
+
|
|
12857
|
+
def _deserialize(self, params):
|
|
12858
|
+
self._Url = params.get("Url")
|
|
12859
|
+
self._Duration = params.get("Duration")
|
|
12860
|
+
memeber_set = set(params.keys())
|
|
12861
|
+
for name, value in vars(self).items():
|
|
12862
|
+
property_name = name[1:]
|
|
12863
|
+
if property_name in memeber_set:
|
|
12864
|
+
memeber_set.remove(property_name)
|
|
12865
|
+
if len(memeber_set) > 0:
|
|
12866
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12867
|
+
|
|
12868
|
+
|
|
12869
|
+
|
|
12870
|
+
class AigcAudioReferenceAudioInfo(AbstractModel):
|
|
12871
|
+
r"""参考音频信息。
|
|
12872
|
+
|
|
12873
|
+
"""
|
|
12874
|
+
|
|
12875
|
+
def __init__(self):
|
|
12876
|
+
r"""
|
|
12877
|
+
:param _AudioUrl: <p>参考音频URL信息。需外网可访问。</p>
|
|
12878
|
+
:type AudioUrl: str
|
|
12879
|
+
"""
|
|
12880
|
+
self._AudioUrl = None
|
|
12881
|
+
|
|
12882
|
+
@property
|
|
12883
|
+
def AudioUrl(self):
|
|
12884
|
+
r"""<p>参考音频URL信息。需外网可访问。</p>
|
|
12885
|
+
:rtype: str
|
|
12886
|
+
"""
|
|
12887
|
+
return self._AudioUrl
|
|
12888
|
+
|
|
12889
|
+
@AudioUrl.setter
|
|
12890
|
+
def AudioUrl(self, AudioUrl):
|
|
12891
|
+
self._AudioUrl = AudioUrl
|
|
12892
|
+
|
|
12893
|
+
|
|
12894
|
+
def _deserialize(self, params):
|
|
12895
|
+
self._AudioUrl = params.get("AudioUrl")
|
|
12896
|
+
memeber_set = set(params.keys())
|
|
12897
|
+
for name, value in vars(self).items():
|
|
12898
|
+
property_name = name[1:]
|
|
12899
|
+
if property_name in memeber_set:
|
|
12900
|
+
memeber_set.remove(property_name)
|
|
12901
|
+
if len(memeber_set) > 0:
|
|
12902
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12903
|
+
|
|
12904
|
+
|
|
12905
|
+
|
|
12906
|
+
class AigcAudioReferenceVideoInfo(AbstractModel):
|
|
12907
|
+
r"""用于AIGC视频生成的参考视频素材。
|
|
12908
|
+
|
|
12909
|
+
"""
|
|
12910
|
+
|
|
12911
|
+
def __init__(self):
|
|
12912
|
+
r"""
|
|
12913
|
+
:param _VideoUrl: <p>参考视频url。需要外网可访问。</p>
|
|
12914
|
+
:type VideoUrl: str
|
|
12915
|
+
"""
|
|
12916
|
+
self._VideoUrl = None
|
|
12917
|
+
|
|
12918
|
+
@property
|
|
12919
|
+
def VideoUrl(self):
|
|
12920
|
+
r"""<p>参考视频url。需要外网可访问。</p>
|
|
12921
|
+
:rtype: str
|
|
12922
|
+
"""
|
|
12923
|
+
return self._VideoUrl
|
|
12924
|
+
|
|
12925
|
+
@VideoUrl.setter
|
|
12926
|
+
def VideoUrl(self, VideoUrl):
|
|
12927
|
+
self._VideoUrl = VideoUrl
|
|
12928
|
+
|
|
12929
|
+
|
|
12930
|
+
def _deserialize(self, params):
|
|
12931
|
+
self._VideoUrl = params.get("VideoUrl")
|
|
12932
|
+
memeber_set = set(params.keys())
|
|
12933
|
+
for name, value in vars(self).items():
|
|
12934
|
+
property_name = name[1:]
|
|
12935
|
+
if property_name in memeber_set:
|
|
12936
|
+
memeber_set.remove(property_name)
|
|
12937
|
+
if len(memeber_set) > 0:
|
|
12938
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12939
|
+
|
|
12940
|
+
|
|
12941
|
+
|
|
12666
12942
|
class AigcImageExtraParam(AbstractModel):
|
|
12667
12943
|
r"""用于AIGC创作图片时用到的扩展参数信息。
|
|
12668
12944
|
|
|
@@ -16110,7 +16386,7 @@ class BlindWatermarkEmbedInfo(AbstractModel):
|
|
|
16110
16386
|
|
|
16111
16387
|
def __init__(self):
|
|
16112
16388
|
r"""
|
|
16113
|
-
:param _EmbedText:
|
|
16389
|
+
:param _EmbedText: <p>盲水印文字,经过URL安全的Base64编码的数据。Base64解码之后,少于12Byte将会填充0x00到12Byte,超过12Byte将会截断为12Byte。</p>
|
|
16114
16390
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
16115
16391
|
:type EmbedText: str
|
|
16116
16392
|
"""
|
|
@@ -16118,7 +16394,7 @@ class BlindWatermarkEmbedInfo(AbstractModel):
|
|
|
16118
16394
|
|
|
16119
16395
|
@property
|
|
16120
16396
|
def EmbedText(self):
|
|
16121
|
-
r"""
|
|
16397
|
+
r"""<p>盲水印文字,经过URL安全的Base64编码的数据。Base64解码之后,少于12Byte将会填充0x00到12Byte,超过12Byte将会截断为12Byte。</p>
|
|
16122
16398
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
16123
16399
|
:rtype: str
|
|
16124
16400
|
"""
|
|
@@ -20006,6 +20282,249 @@ class CreateAdaptiveDynamicStreamingTemplateResponse(AbstractModel):
|
|
|
20006
20282
|
self._RequestId = params.get("RequestId")
|
|
20007
20283
|
|
|
20008
20284
|
|
|
20285
|
+
class CreateAigcAudioTaskRequest(AbstractModel):
|
|
20286
|
+
r"""CreateAigcAudioTask请求参数结构体
|
|
20287
|
+
|
|
20288
|
+
"""
|
|
20289
|
+
|
|
20290
|
+
def __init__(self):
|
|
20291
|
+
r"""
|
|
20292
|
+
:param _ModelName: <p>模型名称。生音乐当前支持的模型: GL、MinimaxMusic。</p>
|
|
20293
|
+
:type ModelName: str
|
|
20294
|
+
:param _ModelVersion: <p>指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。<br>模型GL支持的版本号:2.0、3.0-clip、3.0-pro。<br>模型MinimaxMusic支持的版本号:2.0、2.5、2.6。</p>
|
|
20295
|
+
:type ModelVersion: str
|
|
20296
|
+
:param _SceneType: <p>指定场景生音频。音乐: music。</p>
|
|
20297
|
+
:type SceneType: str
|
|
20298
|
+
:param _Prompt: <p>生成视频的描述。(注:最大支持2000字符)。当未传入图片时,此参数必填。</p>
|
|
20299
|
+
:type Prompt: str
|
|
20300
|
+
:param _VideoInfos: <p>参考视频信息。仅部分模型支持。</p>
|
|
20301
|
+
:type VideoInfos: list of AigcAudioReferenceVideoInfo
|
|
20302
|
+
:param _AudioInfos: <p>传入参考音频信息。</p><p>比如传入音频生成音乐时需要传入。</p>
|
|
20303
|
+
:type AudioInfos: list of AigcAudioReferenceAudioInfo
|
|
20304
|
+
:param _OutputAudioFormat: <p>输出音频格式,默认不填。mp3、wav。</p>
|
|
20305
|
+
:type OutputAudioFormat: str
|
|
20306
|
+
:param _StoreCosParam: <p>文件结果指定存储Cos桶信息。 注意:需开通Cos,创建并授权MPS_QcsRole角色。</p>
|
|
20307
|
+
:type StoreCosParam: :class:`tencentcloud.mps.v20190612.models.AigcStoreCosParam`
|
|
20308
|
+
:param _ExtraParameters: <p>用于传入要求的额外参数。</p>
|
|
20309
|
+
:type ExtraParameters: :class:`tencentcloud.mps.v20190612.models.AigcAudioExtraParam`
|
|
20310
|
+
:param _AdditionalParameters: <p>用于传入一些模型需要的特殊场景参数,Json格式序列化成字符串。<br>示例MinimaxMusic模型传入歌词时:<br>{"lyric":{"小马在快乐奔跑,花儿在开放"}}</p>
|
|
20311
|
+
:type AdditionalParameters: str
|
|
20312
|
+
:param _Operator: <p>接口操作者名称。</p>
|
|
20313
|
+
:type Operator: str
|
|
20314
|
+
"""
|
|
20315
|
+
self._ModelName = None
|
|
20316
|
+
self._ModelVersion = None
|
|
20317
|
+
self._SceneType = None
|
|
20318
|
+
self._Prompt = None
|
|
20319
|
+
self._VideoInfos = None
|
|
20320
|
+
self._AudioInfos = None
|
|
20321
|
+
self._OutputAudioFormat = None
|
|
20322
|
+
self._StoreCosParam = None
|
|
20323
|
+
self._ExtraParameters = None
|
|
20324
|
+
self._AdditionalParameters = None
|
|
20325
|
+
self._Operator = None
|
|
20326
|
+
|
|
20327
|
+
@property
|
|
20328
|
+
def ModelName(self):
|
|
20329
|
+
r"""<p>模型名称。生音乐当前支持的模型: GL、MinimaxMusic。</p>
|
|
20330
|
+
:rtype: str
|
|
20331
|
+
"""
|
|
20332
|
+
return self._ModelName
|
|
20333
|
+
|
|
20334
|
+
@ModelName.setter
|
|
20335
|
+
def ModelName(self, ModelName):
|
|
20336
|
+
self._ModelName = ModelName
|
|
20337
|
+
|
|
20338
|
+
@property
|
|
20339
|
+
def ModelVersion(self):
|
|
20340
|
+
r"""<p>指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。<br>模型GL支持的版本号:2.0、3.0-clip、3.0-pro。<br>模型MinimaxMusic支持的版本号:2.0、2.5、2.6。</p>
|
|
20341
|
+
:rtype: str
|
|
20342
|
+
"""
|
|
20343
|
+
return self._ModelVersion
|
|
20344
|
+
|
|
20345
|
+
@ModelVersion.setter
|
|
20346
|
+
def ModelVersion(self, ModelVersion):
|
|
20347
|
+
self._ModelVersion = ModelVersion
|
|
20348
|
+
|
|
20349
|
+
@property
|
|
20350
|
+
def SceneType(self):
|
|
20351
|
+
r"""<p>指定场景生音频。音乐: music。</p>
|
|
20352
|
+
:rtype: str
|
|
20353
|
+
"""
|
|
20354
|
+
return self._SceneType
|
|
20355
|
+
|
|
20356
|
+
@SceneType.setter
|
|
20357
|
+
def SceneType(self, SceneType):
|
|
20358
|
+
self._SceneType = SceneType
|
|
20359
|
+
|
|
20360
|
+
@property
|
|
20361
|
+
def Prompt(self):
|
|
20362
|
+
r"""<p>生成视频的描述。(注:最大支持2000字符)。当未传入图片时,此参数必填。</p>
|
|
20363
|
+
:rtype: str
|
|
20364
|
+
"""
|
|
20365
|
+
return self._Prompt
|
|
20366
|
+
|
|
20367
|
+
@Prompt.setter
|
|
20368
|
+
def Prompt(self, Prompt):
|
|
20369
|
+
self._Prompt = Prompt
|
|
20370
|
+
|
|
20371
|
+
@property
|
|
20372
|
+
def VideoInfos(self):
|
|
20373
|
+
r"""<p>参考视频信息。仅部分模型支持。</p>
|
|
20374
|
+
:rtype: list of AigcAudioReferenceVideoInfo
|
|
20375
|
+
"""
|
|
20376
|
+
return self._VideoInfos
|
|
20377
|
+
|
|
20378
|
+
@VideoInfos.setter
|
|
20379
|
+
def VideoInfos(self, VideoInfos):
|
|
20380
|
+
self._VideoInfos = VideoInfos
|
|
20381
|
+
|
|
20382
|
+
@property
|
|
20383
|
+
def AudioInfos(self):
|
|
20384
|
+
r"""<p>传入参考音频信息。</p><p>比如传入音频生成音乐时需要传入。</p>
|
|
20385
|
+
:rtype: list of AigcAudioReferenceAudioInfo
|
|
20386
|
+
"""
|
|
20387
|
+
return self._AudioInfos
|
|
20388
|
+
|
|
20389
|
+
@AudioInfos.setter
|
|
20390
|
+
def AudioInfos(self, AudioInfos):
|
|
20391
|
+
self._AudioInfos = AudioInfos
|
|
20392
|
+
|
|
20393
|
+
@property
|
|
20394
|
+
def OutputAudioFormat(self):
|
|
20395
|
+
r"""<p>输出音频格式,默认不填。mp3、wav。</p>
|
|
20396
|
+
:rtype: str
|
|
20397
|
+
"""
|
|
20398
|
+
return self._OutputAudioFormat
|
|
20399
|
+
|
|
20400
|
+
@OutputAudioFormat.setter
|
|
20401
|
+
def OutputAudioFormat(self, OutputAudioFormat):
|
|
20402
|
+
self._OutputAudioFormat = OutputAudioFormat
|
|
20403
|
+
|
|
20404
|
+
@property
|
|
20405
|
+
def StoreCosParam(self):
|
|
20406
|
+
r"""<p>文件结果指定存储Cos桶信息。 注意:需开通Cos,创建并授权MPS_QcsRole角色。</p>
|
|
20407
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AigcStoreCosParam`
|
|
20408
|
+
"""
|
|
20409
|
+
return self._StoreCosParam
|
|
20410
|
+
|
|
20411
|
+
@StoreCosParam.setter
|
|
20412
|
+
def StoreCosParam(self, StoreCosParam):
|
|
20413
|
+
self._StoreCosParam = StoreCosParam
|
|
20414
|
+
|
|
20415
|
+
@property
|
|
20416
|
+
def ExtraParameters(self):
|
|
20417
|
+
r"""<p>用于传入要求的额外参数。</p>
|
|
20418
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AigcAudioExtraParam`
|
|
20419
|
+
"""
|
|
20420
|
+
return self._ExtraParameters
|
|
20421
|
+
|
|
20422
|
+
@ExtraParameters.setter
|
|
20423
|
+
def ExtraParameters(self, ExtraParameters):
|
|
20424
|
+
self._ExtraParameters = ExtraParameters
|
|
20425
|
+
|
|
20426
|
+
@property
|
|
20427
|
+
def AdditionalParameters(self):
|
|
20428
|
+
r"""<p>用于传入一些模型需要的特殊场景参数,Json格式序列化成字符串。<br>示例MinimaxMusic模型传入歌词时:<br>{"lyric":{"小马在快乐奔跑,花儿在开放"}}</p>
|
|
20429
|
+
:rtype: str
|
|
20430
|
+
"""
|
|
20431
|
+
return self._AdditionalParameters
|
|
20432
|
+
|
|
20433
|
+
@AdditionalParameters.setter
|
|
20434
|
+
def AdditionalParameters(self, AdditionalParameters):
|
|
20435
|
+
self._AdditionalParameters = AdditionalParameters
|
|
20436
|
+
|
|
20437
|
+
@property
|
|
20438
|
+
def Operator(self):
|
|
20439
|
+
r"""<p>接口操作者名称。</p>
|
|
20440
|
+
:rtype: str
|
|
20441
|
+
"""
|
|
20442
|
+
return self._Operator
|
|
20443
|
+
|
|
20444
|
+
@Operator.setter
|
|
20445
|
+
def Operator(self, Operator):
|
|
20446
|
+
self._Operator = Operator
|
|
20447
|
+
|
|
20448
|
+
|
|
20449
|
+
def _deserialize(self, params):
|
|
20450
|
+
self._ModelName = params.get("ModelName")
|
|
20451
|
+
self._ModelVersion = params.get("ModelVersion")
|
|
20452
|
+
self._SceneType = params.get("SceneType")
|
|
20453
|
+
self._Prompt = params.get("Prompt")
|
|
20454
|
+
if params.get("VideoInfos") is not None:
|
|
20455
|
+
self._VideoInfos = []
|
|
20456
|
+
for item in params.get("VideoInfos"):
|
|
20457
|
+
obj = AigcAudioReferenceVideoInfo()
|
|
20458
|
+
obj._deserialize(item)
|
|
20459
|
+
self._VideoInfos.append(obj)
|
|
20460
|
+
if params.get("AudioInfos") is not None:
|
|
20461
|
+
self._AudioInfos = []
|
|
20462
|
+
for item in params.get("AudioInfos"):
|
|
20463
|
+
obj = AigcAudioReferenceAudioInfo()
|
|
20464
|
+
obj._deserialize(item)
|
|
20465
|
+
self._AudioInfos.append(obj)
|
|
20466
|
+
self._OutputAudioFormat = params.get("OutputAudioFormat")
|
|
20467
|
+
if params.get("StoreCosParam") is not None:
|
|
20468
|
+
self._StoreCosParam = AigcStoreCosParam()
|
|
20469
|
+
self._StoreCosParam._deserialize(params.get("StoreCosParam"))
|
|
20470
|
+
if params.get("ExtraParameters") is not None:
|
|
20471
|
+
self._ExtraParameters = AigcAudioExtraParam()
|
|
20472
|
+
self._ExtraParameters._deserialize(params.get("ExtraParameters"))
|
|
20473
|
+
self._AdditionalParameters = params.get("AdditionalParameters")
|
|
20474
|
+
self._Operator = params.get("Operator")
|
|
20475
|
+
memeber_set = set(params.keys())
|
|
20476
|
+
for name, value in vars(self).items():
|
|
20477
|
+
property_name = name[1:]
|
|
20478
|
+
if property_name in memeber_set:
|
|
20479
|
+
memeber_set.remove(property_name)
|
|
20480
|
+
if len(memeber_set) > 0:
|
|
20481
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20482
|
+
|
|
20483
|
+
|
|
20484
|
+
|
|
20485
|
+
class CreateAigcAudioTaskResponse(AbstractModel):
|
|
20486
|
+
r"""CreateAigcAudioTask返回参数结构体
|
|
20487
|
+
|
|
20488
|
+
"""
|
|
20489
|
+
|
|
20490
|
+
def __init__(self):
|
|
20491
|
+
r"""
|
|
20492
|
+
:param _TaskId: <p>任务创建成功后,返回的任务ID。<br>调用查询接口,轮询获取任务进度及生成结果。</p>
|
|
20493
|
+
:type TaskId: str
|
|
20494
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20495
|
+
:type RequestId: str
|
|
20496
|
+
"""
|
|
20497
|
+
self._TaskId = None
|
|
20498
|
+
self._RequestId = None
|
|
20499
|
+
|
|
20500
|
+
@property
|
|
20501
|
+
def TaskId(self):
|
|
20502
|
+
r"""<p>任务创建成功后,返回的任务ID。<br>调用查询接口,轮询获取任务进度及生成结果。</p>
|
|
20503
|
+
:rtype: str
|
|
20504
|
+
"""
|
|
20505
|
+
return self._TaskId
|
|
20506
|
+
|
|
20507
|
+
@TaskId.setter
|
|
20508
|
+
def TaskId(self, TaskId):
|
|
20509
|
+
self._TaskId = TaskId
|
|
20510
|
+
|
|
20511
|
+
@property
|
|
20512
|
+
def RequestId(self):
|
|
20513
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
20514
|
+
:rtype: str
|
|
20515
|
+
"""
|
|
20516
|
+
return self._RequestId
|
|
20517
|
+
|
|
20518
|
+
@RequestId.setter
|
|
20519
|
+
def RequestId(self, RequestId):
|
|
20520
|
+
self._RequestId = RequestId
|
|
20521
|
+
|
|
20522
|
+
|
|
20523
|
+
def _deserialize(self, params):
|
|
20524
|
+
self._TaskId = params.get("TaskId")
|
|
20525
|
+
self._RequestId = params.get("RequestId")
|
|
20526
|
+
|
|
20527
|
+
|
|
20009
20528
|
class CreateAigcImageTaskRequest(AbstractModel):
|
|
20010
20529
|
r"""CreateAigcImageTask请求参数结构体
|
|
20011
20530
|
|
|
@@ -20255,7 +20774,7 @@ class CreateAigcVideoTaskRequest(AbstractModel):
|
|
|
20255
20774
|
:type ModelName: str
|
|
20256
20775
|
:param _ModelVersion: <p>指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。</p><ol><li>Hunyuan,可选 [1.5]。</li><li>Hailuo,可选 [02、2.3、2.3-fast]。</li><li>Kling,可选 [1.6、2.0、2.1、2.5、O1、2.6、3.0、3.0-Omni]。</li><li>Vidu,可选 [q2、q2-pro、q2-turbo、q3-pro、q3-turbo、q3、q3-mix]。</li><li>PixVerse,可选 [v5.6、v6、c1]。</li><li>H2,可选 [1.0]。</li></ol>
|
|
20257
20776
|
:type ModelVersion: str
|
|
20258
|
-
:param _SceneType: <p
|
|
20777
|
+
:param _SceneType: <p>指定场景生成视频。<br>注意:仅部分模型支持指定场景。</p><ol><li>Kling支持:动作控制,motion_control;数字人,avatar_i2v;对口型,lip_sync。</li><li>Mingmou支持:横转竖,land2port。</li><li>Vidu支持:特效模板,template_effect。</li><li>Hunyuan支持: 3d世界模型, 3d_scene;涉及的返回文件非视频。</li></ol>
|
|
20259
20778
|
:type SceneType: str
|
|
20260
20779
|
:param _Prompt: <p>生成视频的描述。当未传入图片时,此参数必填。</p>
|
|
20261
20780
|
:type Prompt: str
|
|
@@ -20322,7 +20841,7 @@ class CreateAigcVideoTaskRequest(AbstractModel):
|
|
|
20322
20841
|
|
|
20323
20842
|
@property
|
|
20324
20843
|
def SceneType(self):
|
|
20325
|
-
r"""<p
|
|
20844
|
+
r"""<p>指定场景生成视频。<br>注意:仅部分模型支持指定场景。</p><ol><li>Kling支持:动作控制,motion_control;数字人,avatar_i2v;对口型,lip_sync。</li><li>Mingmou支持:横转竖,land2port。</li><li>Vidu支持:特效模板,template_effect。</li><li>Hunyuan支持: 3d世界模型, 3d_scene;涉及的返回文件非视频。</li></ol>
|
|
20326
20845
|
:rtype: str
|
|
20327
20846
|
"""
|
|
20328
20847
|
return self._SceneType
|
|
@@ -30378,6 +30897,140 @@ class DescribeAdaptiveDynamicStreamingTemplatesResponse(AbstractModel):
|
|
|
30378
30897
|
self._RequestId = params.get("RequestId")
|
|
30379
30898
|
|
|
30380
30899
|
|
|
30900
|
+
class DescribeAigcAudioTaskRequest(AbstractModel):
|
|
30901
|
+
r"""DescribeAigcAudioTask请求参数结构体
|
|
30902
|
+
|
|
30903
|
+
"""
|
|
30904
|
+
|
|
30905
|
+
def __init__(self):
|
|
30906
|
+
r"""
|
|
30907
|
+
:param _TaskId: <p>创建AIGC生视频任务时,返回的任务ID。</p>
|
|
30908
|
+
:type TaskId: str
|
|
30909
|
+
"""
|
|
30910
|
+
self._TaskId = None
|
|
30911
|
+
|
|
30912
|
+
@property
|
|
30913
|
+
def TaskId(self):
|
|
30914
|
+
r"""<p>创建AIGC生视频任务时,返回的任务ID。</p>
|
|
30915
|
+
:rtype: str
|
|
30916
|
+
"""
|
|
30917
|
+
return self._TaskId
|
|
30918
|
+
|
|
30919
|
+
@TaskId.setter
|
|
30920
|
+
def TaskId(self, TaskId):
|
|
30921
|
+
self._TaskId = TaskId
|
|
30922
|
+
|
|
30923
|
+
|
|
30924
|
+
def _deserialize(self, params):
|
|
30925
|
+
self._TaskId = params.get("TaskId")
|
|
30926
|
+
memeber_set = set(params.keys())
|
|
30927
|
+
for name, value in vars(self).items():
|
|
30928
|
+
property_name = name[1:]
|
|
30929
|
+
if property_name in memeber_set:
|
|
30930
|
+
memeber_set.remove(property_name)
|
|
30931
|
+
if len(memeber_set) > 0:
|
|
30932
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30933
|
+
|
|
30934
|
+
|
|
30935
|
+
|
|
30936
|
+
class DescribeAigcAudioTaskResponse(AbstractModel):
|
|
30937
|
+
r"""DescribeAigcAudioTask返回参数结构体
|
|
30938
|
+
|
|
30939
|
+
"""
|
|
30940
|
+
|
|
30941
|
+
def __init__(self):
|
|
30942
|
+
r"""
|
|
30943
|
+
:param _Status: <p>任务当前状态。 WAIT:等待中, RUN:执行中, FAIL:任务失败, DONE:任务成功。</p>
|
|
30944
|
+
:type Status: str
|
|
30945
|
+
:param _Message: <p>当任务状态为 FAIL时,返回失败信息。</p>
|
|
30946
|
+
:type Message: str
|
|
30947
|
+
:param _AudioInfos: <p>输出的音频信息。</p>
|
|
30948
|
+
:type AudioInfos: list of AigcAudioOutputAudioInfo
|
|
30949
|
+
:param _VideoInfos: <p>输出的视频信息,仅视频配音等场景会输出。</p>
|
|
30950
|
+
:type VideoInfos: list of AigcAudioOutputVideoInfo
|
|
30951
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
30952
|
+
:type RequestId: str
|
|
30953
|
+
"""
|
|
30954
|
+
self._Status = None
|
|
30955
|
+
self._Message = None
|
|
30956
|
+
self._AudioInfos = None
|
|
30957
|
+
self._VideoInfos = None
|
|
30958
|
+
self._RequestId = None
|
|
30959
|
+
|
|
30960
|
+
@property
|
|
30961
|
+
def Status(self):
|
|
30962
|
+
r"""<p>任务当前状态。 WAIT:等待中, RUN:执行中, FAIL:任务失败, DONE:任务成功。</p>
|
|
30963
|
+
:rtype: str
|
|
30964
|
+
"""
|
|
30965
|
+
return self._Status
|
|
30966
|
+
|
|
30967
|
+
@Status.setter
|
|
30968
|
+
def Status(self, Status):
|
|
30969
|
+
self._Status = Status
|
|
30970
|
+
|
|
30971
|
+
@property
|
|
30972
|
+
def Message(self):
|
|
30973
|
+
r"""<p>当任务状态为 FAIL时,返回失败信息。</p>
|
|
30974
|
+
:rtype: str
|
|
30975
|
+
"""
|
|
30976
|
+
return self._Message
|
|
30977
|
+
|
|
30978
|
+
@Message.setter
|
|
30979
|
+
def Message(self, Message):
|
|
30980
|
+
self._Message = Message
|
|
30981
|
+
|
|
30982
|
+
@property
|
|
30983
|
+
def AudioInfos(self):
|
|
30984
|
+
r"""<p>输出的音频信息。</p>
|
|
30985
|
+
:rtype: list of AigcAudioOutputAudioInfo
|
|
30986
|
+
"""
|
|
30987
|
+
return self._AudioInfos
|
|
30988
|
+
|
|
30989
|
+
@AudioInfos.setter
|
|
30990
|
+
def AudioInfos(self, AudioInfos):
|
|
30991
|
+
self._AudioInfos = AudioInfos
|
|
30992
|
+
|
|
30993
|
+
@property
|
|
30994
|
+
def VideoInfos(self):
|
|
30995
|
+
r"""<p>输出的视频信息,仅视频配音等场景会输出。</p>
|
|
30996
|
+
:rtype: list of AigcAudioOutputVideoInfo
|
|
30997
|
+
"""
|
|
30998
|
+
return self._VideoInfos
|
|
30999
|
+
|
|
31000
|
+
@VideoInfos.setter
|
|
31001
|
+
def VideoInfos(self, VideoInfos):
|
|
31002
|
+
self._VideoInfos = VideoInfos
|
|
31003
|
+
|
|
31004
|
+
@property
|
|
31005
|
+
def RequestId(self):
|
|
31006
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
31007
|
+
:rtype: str
|
|
31008
|
+
"""
|
|
31009
|
+
return self._RequestId
|
|
31010
|
+
|
|
31011
|
+
@RequestId.setter
|
|
31012
|
+
def RequestId(self, RequestId):
|
|
31013
|
+
self._RequestId = RequestId
|
|
31014
|
+
|
|
31015
|
+
|
|
31016
|
+
def _deserialize(self, params):
|
|
31017
|
+
self._Status = params.get("Status")
|
|
31018
|
+
self._Message = params.get("Message")
|
|
31019
|
+
if params.get("AudioInfos") is not None:
|
|
31020
|
+
self._AudioInfos = []
|
|
31021
|
+
for item in params.get("AudioInfos"):
|
|
31022
|
+
obj = AigcAudioOutputAudioInfo()
|
|
31023
|
+
obj._deserialize(item)
|
|
31024
|
+
self._AudioInfos.append(obj)
|
|
31025
|
+
if params.get("VideoInfos") is not None:
|
|
31026
|
+
self._VideoInfos = []
|
|
31027
|
+
for item in params.get("VideoInfos"):
|
|
31028
|
+
obj = AigcAudioOutputVideoInfo()
|
|
31029
|
+
obj._deserialize(item)
|
|
31030
|
+
self._VideoInfos.append(obj)
|
|
31031
|
+
self._RequestId = params.get("RequestId")
|
|
31032
|
+
|
|
31033
|
+
|
|
30381
31034
|
class DescribeAigcImageTaskRequest(AbstractModel):
|
|
30382
31035
|
r"""DescribeAigcImageTask请求参数结构体
|
|
30383
31036
|
|
|
@@ -43131,6 +43784,132 @@ class DetectVideoSubtitleAreaResponse(AbstractModel):
|
|
|
43131
43784
|
self._RequestId = params.get("RequestId")
|
|
43132
43785
|
|
|
43133
43786
|
|
|
43787
|
+
class DetectVideoWatermarkRequest(AbstractModel):
|
|
43788
|
+
r"""DetectVideoWatermark请求参数结构体
|
|
43789
|
+
|
|
43790
|
+
"""
|
|
43791
|
+
|
|
43792
|
+
def __init__(self):
|
|
43793
|
+
r"""
|
|
43794
|
+
:param _InputInfo: <p>输入信息,当前仅支持 URL、COS</p>
|
|
43795
|
+
:type InputInfo: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
|
43796
|
+
:param _UserExtPara: <p>扩展参数,默认不填</p>
|
|
43797
|
+
:type UserExtPara: str
|
|
43798
|
+
"""
|
|
43799
|
+
self._InputInfo = None
|
|
43800
|
+
self._UserExtPara = None
|
|
43801
|
+
|
|
43802
|
+
@property
|
|
43803
|
+
def InputInfo(self):
|
|
43804
|
+
r"""<p>输入信息,当前仅支持 URL、COS</p>
|
|
43805
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
|
43806
|
+
"""
|
|
43807
|
+
return self._InputInfo
|
|
43808
|
+
|
|
43809
|
+
@InputInfo.setter
|
|
43810
|
+
def InputInfo(self, InputInfo):
|
|
43811
|
+
self._InputInfo = InputInfo
|
|
43812
|
+
|
|
43813
|
+
@property
|
|
43814
|
+
def UserExtPara(self):
|
|
43815
|
+
r"""<p>扩展参数,默认不填</p>
|
|
43816
|
+
:rtype: str
|
|
43817
|
+
"""
|
|
43818
|
+
return self._UserExtPara
|
|
43819
|
+
|
|
43820
|
+
@UserExtPara.setter
|
|
43821
|
+
def UserExtPara(self, UserExtPara):
|
|
43822
|
+
self._UserExtPara = UserExtPara
|
|
43823
|
+
|
|
43824
|
+
|
|
43825
|
+
def _deserialize(self, params):
|
|
43826
|
+
if params.get("InputInfo") is not None:
|
|
43827
|
+
self._InputInfo = MediaInputInfo()
|
|
43828
|
+
self._InputInfo._deserialize(params.get("InputInfo"))
|
|
43829
|
+
self._UserExtPara = params.get("UserExtPara")
|
|
43830
|
+
memeber_set = set(params.keys())
|
|
43831
|
+
for name, value in vars(self).items():
|
|
43832
|
+
property_name = name[1:]
|
|
43833
|
+
if property_name in memeber_set:
|
|
43834
|
+
memeber_set.remove(property_name)
|
|
43835
|
+
if len(memeber_set) > 0:
|
|
43836
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
43837
|
+
|
|
43838
|
+
|
|
43839
|
+
|
|
43840
|
+
class DetectVideoWatermarkResponse(AbstractModel):
|
|
43841
|
+
r"""DetectVideoWatermark返回参数结构体
|
|
43842
|
+
|
|
43843
|
+
"""
|
|
43844
|
+
|
|
43845
|
+
def __init__(self):
|
|
43846
|
+
r"""
|
|
43847
|
+
:param _Confidence: <p>是否存在水印的置信度</p><p>取值范围:[0, 100]</p>
|
|
43848
|
+
:type Confidence: float
|
|
43849
|
+
:param _HasWatermark: <p>视频中是否存在水印</p>
|
|
43850
|
+
:type HasWatermark: bool
|
|
43851
|
+
:param _Description: <p>关于水印的一些描述性说明</p>
|
|
43852
|
+
:type Description: str
|
|
43853
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
43854
|
+
:type RequestId: str
|
|
43855
|
+
"""
|
|
43856
|
+
self._Confidence = None
|
|
43857
|
+
self._HasWatermark = None
|
|
43858
|
+
self._Description = None
|
|
43859
|
+
self._RequestId = None
|
|
43860
|
+
|
|
43861
|
+
@property
|
|
43862
|
+
def Confidence(self):
|
|
43863
|
+
r"""<p>是否存在水印的置信度</p><p>取值范围:[0, 100]</p>
|
|
43864
|
+
:rtype: float
|
|
43865
|
+
"""
|
|
43866
|
+
return self._Confidence
|
|
43867
|
+
|
|
43868
|
+
@Confidence.setter
|
|
43869
|
+
def Confidence(self, Confidence):
|
|
43870
|
+
self._Confidence = Confidence
|
|
43871
|
+
|
|
43872
|
+
@property
|
|
43873
|
+
def HasWatermark(self):
|
|
43874
|
+
r"""<p>视频中是否存在水印</p>
|
|
43875
|
+
:rtype: bool
|
|
43876
|
+
"""
|
|
43877
|
+
return self._HasWatermark
|
|
43878
|
+
|
|
43879
|
+
@HasWatermark.setter
|
|
43880
|
+
def HasWatermark(self, HasWatermark):
|
|
43881
|
+
self._HasWatermark = HasWatermark
|
|
43882
|
+
|
|
43883
|
+
@property
|
|
43884
|
+
def Description(self):
|
|
43885
|
+
r"""<p>关于水印的一些描述性说明</p>
|
|
43886
|
+
:rtype: str
|
|
43887
|
+
"""
|
|
43888
|
+
return self._Description
|
|
43889
|
+
|
|
43890
|
+
@Description.setter
|
|
43891
|
+
def Description(self, Description):
|
|
43892
|
+
self._Description = Description
|
|
43893
|
+
|
|
43894
|
+
@property
|
|
43895
|
+
def RequestId(self):
|
|
43896
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
43897
|
+
:rtype: str
|
|
43898
|
+
"""
|
|
43899
|
+
return self._RequestId
|
|
43900
|
+
|
|
43901
|
+
@RequestId.setter
|
|
43902
|
+
def RequestId(self, RequestId):
|
|
43903
|
+
self._RequestId = RequestId
|
|
43904
|
+
|
|
43905
|
+
|
|
43906
|
+
def _deserialize(self, params):
|
|
43907
|
+
self._Confidence = params.get("Confidence")
|
|
43908
|
+
self._HasWatermark = params.get("HasWatermark")
|
|
43909
|
+
self._Description = params.get("Description")
|
|
43910
|
+
self._RequestId = params.get("RequestId")
|
|
43911
|
+
|
|
43912
|
+
|
|
43134
43913
|
class DiagnoseResult(AbstractModel):
|
|
43135
43914
|
r"""诊断结果项。
|
|
43136
43915
|
|
|
@@ -49769,22 +50548,24 @@ class ImageTaskInput(AbstractModel):
|
|
|
49769
50548
|
|
|
49770
50549
|
def __init__(self):
|
|
49771
50550
|
r"""
|
|
49772
|
-
:param _EncodeConfig:
|
|
50551
|
+
:param _EncodeConfig: <p>图片编码配置。</p>
|
|
49773
50552
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
49774
50553
|
:type EncodeConfig: :class:`tencentcloud.mps.v20190612.models.ImageEncodeConfig`
|
|
49775
|
-
:param _EnhanceConfig:
|
|
50554
|
+
:param _EnhanceConfig: <p>图片增强配置。</p>
|
|
49776
50555
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
49777
50556
|
:type EnhanceConfig: :class:`tencentcloud.mps.v20190612.models.ImageEnhanceConfig`
|
|
49778
|
-
:param _EraseConfig:
|
|
50557
|
+
:param _EraseConfig: <p>图片擦除配置。</p>
|
|
49779
50558
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
49780
50559
|
:type EraseConfig: :class:`tencentcloud.mps.v20190612.models.ImageEraseConfig`
|
|
49781
|
-
:param _BlindWatermarkConfig:
|
|
50560
|
+
:param _BlindWatermarkConfig: <p>盲水印配置。</p>
|
|
49782
50561
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
49783
50562
|
:type BlindWatermarkConfig: :class:`tencentcloud.mps.v20190612.models.BlindWatermarkConfig`
|
|
49784
|
-
:param _BeautyConfig:
|
|
50563
|
+
:param _BeautyConfig: <p>美颜配置。</p>
|
|
49785
50564
|
:type BeautyConfig: :class:`tencentcloud.mps.v20190612.models.BeautyConfig`
|
|
49786
|
-
:param _TransformConfig:
|
|
50565
|
+
:param _TransformConfig: <p>图片基础转换能力。</p>
|
|
49787
50566
|
:type TransformConfig: :class:`tencentcloud.mps.v20190612.models.ImageTransformConfig`
|
|
50567
|
+
:param _AiTryOnConfig: <p>Ai 换装配置。</p>
|
|
50568
|
+
:type AiTryOnConfig: :class:`tencentcloud.mps.v20190612.models.AiTryOnConfig`
|
|
49788
50569
|
"""
|
|
49789
50570
|
self._EncodeConfig = None
|
|
49790
50571
|
self._EnhanceConfig = None
|
|
@@ -49792,10 +50573,11 @@ class ImageTaskInput(AbstractModel):
|
|
|
49792
50573
|
self._BlindWatermarkConfig = None
|
|
49793
50574
|
self._BeautyConfig = None
|
|
49794
50575
|
self._TransformConfig = None
|
|
50576
|
+
self._AiTryOnConfig = None
|
|
49795
50577
|
|
|
49796
50578
|
@property
|
|
49797
50579
|
def EncodeConfig(self):
|
|
49798
|
-
r"""
|
|
50580
|
+
r"""<p>图片编码配置。</p>
|
|
49799
50581
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
49800
50582
|
:rtype: :class:`tencentcloud.mps.v20190612.models.ImageEncodeConfig`
|
|
49801
50583
|
"""
|
|
@@ -49807,7 +50589,7 @@ class ImageTaskInput(AbstractModel):
|
|
|
49807
50589
|
|
|
49808
50590
|
@property
|
|
49809
50591
|
def EnhanceConfig(self):
|
|
49810
|
-
r"""
|
|
50592
|
+
r"""<p>图片增强配置。</p>
|
|
49811
50593
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
49812
50594
|
:rtype: :class:`tencentcloud.mps.v20190612.models.ImageEnhanceConfig`
|
|
49813
50595
|
"""
|
|
@@ -49819,7 +50601,7 @@ class ImageTaskInput(AbstractModel):
|
|
|
49819
50601
|
|
|
49820
50602
|
@property
|
|
49821
50603
|
def EraseConfig(self):
|
|
49822
|
-
r"""
|
|
50604
|
+
r"""<p>图片擦除配置。</p>
|
|
49823
50605
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
49824
50606
|
:rtype: :class:`tencentcloud.mps.v20190612.models.ImageEraseConfig`
|
|
49825
50607
|
"""
|
|
@@ -49831,7 +50613,7 @@ class ImageTaskInput(AbstractModel):
|
|
|
49831
50613
|
|
|
49832
50614
|
@property
|
|
49833
50615
|
def BlindWatermarkConfig(self):
|
|
49834
|
-
r"""
|
|
50616
|
+
r"""<p>盲水印配置。</p>
|
|
49835
50617
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
49836
50618
|
:rtype: :class:`tencentcloud.mps.v20190612.models.BlindWatermarkConfig`
|
|
49837
50619
|
"""
|
|
@@ -49843,7 +50625,7 @@ class ImageTaskInput(AbstractModel):
|
|
|
49843
50625
|
|
|
49844
50626
|
@property
|
|
49845
50627
|
def BeautyConfig(self):
|
|
49846
|
-
r"""
|
|
50628
|
+
r"""<p>美颜配置。</p>
|
|
49847
50629
|
:rtype: :class:`tencentcloud.mps.v20190612.models.BeautyConfig`
|
|
49848
50630
|
"""
|
|
49849
50631
|
return self._BeautyConfig
|
|
@@ -49854,7 +50636,7 @@ class ImageTaskInput(AbstractModel):
|
|
|
49854
50636
|
|
|
49855
50637
|
@property
|
|
49856
50638
|
def TransformConfig(self):
|
|
49857
|
-
r"""
|
|
50639
|
+
r"""<p>图片基础转换能力。</p>
|
|
49858
50640
|
:rtype: :class:`tencentcloud.mps.v20190612.models.ImageTransformConfig`
|
|
49859
50641
|
"""
|
|
49860
50642
|
return self._TransformConfig
|
|
@@ -49863,6 +50645,17 @@ class ImageTaskInput(AbstractModel):
|
|
|
49863
50645
|
def TransformConfig(self, TransformConfig):
|
|
49864
50646
|
self._TransformConfig = TransformConfig
|
|
49865
50647
|
|
|
50648
|
+
@property
|
|
50649
|
+
def AiTryOnConfig(self):
|
|
50650
|
+
r"""<p>Ai 换装配置。</p>
|
|
50651
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AiTryOnConfig`
|
|
50652
|
+
"""
|
|
50653
|
+
return self._AiTryOnConfig
|
|
50654
|
+
|
|
50655
|
+
@AiTryOnConfig.setter
|
|
50656
|
+
def AiTryOnConfig(self, AiTryOnConfig):
|
|
50657
|
+
self._AiTryOnConfig = AiTryOnConfig
|
|
50658
|
+
|
|
49866
50659
|
|
|
49867
50660
|
def _deserialize(self, params):
|
|
49868
50661
|
if params.get("EncodeConfig") is not None:
|
|
@@ -49883,6 +50676,9 @@ class ImageTaskInput(AbstractModel):
|
|
|
49883
50676
|
if params.get("TransformConfig") is not None:
|
|
49884
50677
|
self._TransformConfig = ImageTransformConfig()
|
|
49885
50678
|
self._TransformConfig._deserialize(params.get("TransformConfig"))
|
|
50679
|
+
if params.get("AiTryOnConfig") is not None:
|
|
50680
|
+
self._AiTryOnConfig = AiTryOnConfig()
|
|
50681
|
+
self._AiTryOnConfig._deserialize(params.get("AiTryOnConfig"))
|
|
49886
50682
|
memeber_set = set(params.keys())
|
|
49887
50683
|
for name, value in vars(self).items():
|
|
49888
50684
|
property_name = name[1:]
|
|
@@ -234,6 +234,29 @@ class MpsClient(AbstractClient):
|
|
|
234
234
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
235
235
|
|
|
236
236
|
|
|
237
|
+
def CreateAigcAudioTask(self, request):
|
|
238
|
+
r"""调用该接口,用于创建AI生音频任务。
|
|
239
|
+
|
|
240
|
+
:param request: Request instance for CreateAigcAudioTask.
|
|
241
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.CreateAigcAudioTaskRequest`
|
|
242
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.CreateAigcAudioTaskResponse`
|
|
243
|
+
|
|
244
|
+
"""
|
|
245
|
+
try:
|
|
246
|
+
params = request._serialize()
|
|
247
|
+
headers = request.headers
|
|
248
|
+
body = self.call("CreateAigcAudioTask", params, headers=headers)
|
|
249
|
+
response = json.loads(body)
|
|
250
|
+
model = models.CreateAigcAudioTaskResponse()
|
|
251
|
+
model._deserialize(response["Response"])
|
|
252
|
+
return model
|
|
253
|
+
except Exception as e:
|
|
254
|
+
if isinstance(e, TencentCloudSDKException):
|
|
255
|
+
raise
|
|
256
|
+
else:
|
|
257
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
258
|
+
|
|
259
|
+
|
|
237
260
|
def CreateAigcImageTask(self, request):
|
|
238
261
|
r"""调用该接口用于创建AIGC生图片任务。
|
|
239
262
|
|
|
@@ -1967,6 +1990,29 @@ class MpsClient(AbstractClient):
|
|
|
1967
1990
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1968
1991
|
|
|
1969
1992
|
|
|
1993
|
+
def DescribeAigcAudioTask(self, request):
|
|
1994
|
+
r"""调用该接口,用于查询AIGC生视频任务的进度以及获取生成结果。
|
|
1995
|
+
|
|
1996
|
+
:param request: Request instance for DescribeAigcAudioTask.
|
|
1997
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.DescribeAigcAudioTaskRequest`
|
|
1998
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.DescribeAigcAudioTaskResponse`
|
|
1999
|
+
|
|
2000
|
+
"""
|
|
2001
|
+
try:
|
|
2002
|
+
params = request._serialize()
|
|
2003
|
+
headers = request.headers
|
|
2004
|
+
body = self.call("DescribeAigcAudioTask", params, headers=headers)
|
|
2005
|
+
response = json.loads(body)
|
|
2006
|
+
model = models.DescribeAigcAudioTaskResponse()
|
|
2007
|
+
model._deserialize(response["Response"])
|
|
2008
|
+
return model
|
|
2009
|
+
except Exception as e:
|
|
2010
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2011
|
+
raise
|
|
2012
|
+
else:
|
|
2013
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2014
|
+
|
|
2015
|
+
|
|
1970
2016
|
def DescribeAigcImageTask(self, request):
|
|
1971
2017
|
r"""调用该接口,查询AIGC生图片任务进度以及获取生成结果。
|
|
1972
2018
|
|
|
@@ -3512,6 +3558,29 @@ class MpsClient(AbstractClient):
|
|
|
3512
3558
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3513
3559
|
|
|
3514
3560
|
|
|
3561
|
+
def DetectVideoWatermark(self, request):
|
|
3562
|
+
r"""快速探测视频文件是否包含水印
|
|
3563
|
+
|
|
3564
|
+
:param request: Request instance for DetectVideoWatermark.
|
|
3565
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.DetectVideoWatermarkRequest`
|
|
3566
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.DetectVideoWatermarkResponse`
|
|
3567
|
+
|
|
3568
|
+
"""
|
|
3569
|
+
try:
|
|
3570
|
+
params = request._serialize()
|
|
3571
|
+
headers = request.headers
|
|
3572
|
+
body = self.call("DetectVideoWatermark", params, headers=headers)
|
|
3573
|
+
response = json.loads(body)
|
|
3574
|
+
model = models.DetectVideoWatermarkResponse()
|
|
3575
|
+
model._deserialize(response["Response"])
|
|
3576
|
+
return model
|
|
3577
|
+
except Exception as e:
|
|
3578
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3579
|
+
raise
|
|
3580
|
+
else:
|
|
3581
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3582
|
+
|
|
3583
|
+
|
|
3515
3584
|
def DisableSchedule(self, request):
|
|
3516
3585
|
r"""禁用自动化触发编排任务。
|
|
3517
3586
|
|
|
@@ -188,6 +188,24 @@ class MpsClient(AbstractClient):
|
|
|
188
188
|
|
|
189
189
|
return await self.call_and_deserialize(**kwargs)
|
|
190
190
|
|
|
191
|
+
async def CreateAigcAudioTask(
|
|
192
|
+
self,
|
|
193
|
+
request: models.CreateAigcAudioTaskRequest,
|
|
194
|
+
opts: Dict = None,
|
|
195
|
+
) -> models.CreateAigcAudioTaskResponse:
|
|
196
|
+
"""
|
|
197
|
+
调用该接口,用于创建AI生音频任务。
|
|
198
|
+
"""
|
|
199
|
+
|
|
200
|
+
kwargs = {}
|
|
201
|
+
kwargs["action"] = "CreateAigcAudioTask"
|
|
202
|
+
kwargs["params"] = request._serialize()
|
|
203
|
+
kwargs["resp_cls"] = models.CreateAigcAudioTaskResponse
|
|
204
|
+
kwargs["headers"] = request.headers
|
|
205
|
+
kwargs["opts"] = opts or {}
|
|
206
|
+
|
|
207
|
+
return await self.call_and_deserialize(**kwargs)
|
|
208
|
+
|
|
191
209
|
async def CreateAigcImageTask(
|
|
192
210
|
self,
|
|
193
211
|
request: models.CreateAigcImageTaskRequest,
|
|
@@ -1551,6 +1569,24 @@ class MpsClient(AbstractClient):
|
|
|
1551
1569
|
|
|
1552
1570
|
return await self.call_and_deserialize(**kwargs)
|
|
1553
1571
|
|
|
1572
|
+
async def DescribeAigcAudioTask(
|
|
1573
|
+
self,
|
|
1574
|
+
request: models.DescribeAigcAudioTaskRequest,
|
|
1575
|
+
opts: Dict = None,
|
|
1576
|
+
) -> models.DescribeAigcAudioTaskResponse:
|
|
1577
|
+
"""
|
|
1578
|
+
调用该接口,用于查询AIGC生视频任务的进度以及获取生成结果。
|
|
1579
|
+
"""
|
|
1580
|
+
|
|
1581
|
+
kwargs = {}
|
|
1582
|
+
kwargs["action"] = "DescribeAigcAudioTask"
|
|
1583
|
+
kwargs["params"] = request._serialize()
|
|
1584
|
+
kwargs["resp_cls"] = models.DescribeAigcAudioTaskResponse
|
|
1585
|
+
kwargs["headers"] = request.headers
|
|
1586
|
+
kwargs["opts"] = opts or {}
|
|
1587
|
+
|
|
1588
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1589
|
+
|
|
1554
1590
|
async def DescribeAigcImageTask(
|
|
1555
1591
|
self,
|
|
1556
1592
|
request: models.DescribeAigcImageTaskRequest,
|
|
@@ -2761,6 +2797,24 @@ class MpsClient(AbstractClient):
|
|
|
2761
2797
|
|
|
2762
2798
|
return await self.call_and_deserialize(**kwargs)
|
|
2763
2799
|
|
|
2800
|
+
async def DetectVideoWatermark(
|
|
2801
|
+
self,
|
|
2802
|
+
request: models.DetectVideoWatermarkRequest,
|
|
2803
|
+
opts: Dict = None,
|
|
2804
|
+
) -> models.DetectVideoWatermarkResponse:
|
|
2805
|
+
"""
|
|
2806
|
+
快速探测视频文件是否包含水印
|
|
2807
|
+
"""
|
|
2808
|
+
|
|
2809
|
+
kwargs = {}
|
|
2810
|
+
kwargs["action"] = "DetectVideoWatermark"
|
|
2811
|
+
kwargs["params"] = request._serialize()
|
|
2812
|
+
kwargs["resp_cls"] = models.DetectVideoWatermarkResponse
|
|
2813
|
+
kwargs["headers"] = request.headers
|
|
2814
|
+
kwargs["opts"] = opts or {}
|
|
2815
|
+
|
|
2816
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2817
|
+
|
|
2764
2818
|
async def DisableSchedule(
|
|
2765
2819
|
self,
|
|
2766
2820
|
request: models.DisableScheduleRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mps
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.118
|
|
4
4
|
Summary: Tencent Cloud Mps 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<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.118
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.118
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.109
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|