tencentcloud-sdk-python-mps 3.1.81__tar.gz → 3.1.85__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.81 → tencentcloud_sdk_python_mps-3.1.85}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/setup.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/mps/v20190612/models.py +532 -92
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/mps/v20190612/mps_client.py +46 -0
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/mps/v20190612/mps_client_async.py +36 -0
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_mps-3.1.85/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_mps-3.1.81/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/README.rst +0 -0
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/setup.cfg +0 -0
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/mps/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/mps/v20190612/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.81 → tencentcloud_sdk_python_mps-3.1.85}/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.85
|
|
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.85
|
|
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.85,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Mps SDK for Python',
|
|
@@ -12655,31 +12655,20 @@ class AigcImageExtraParam(AbstractModel):
|
|
|
12655
12655
|
|
|
12656
12656
|
def __init__(self):
|
|
12657
12657
|
r"""
|
|
12658
|
-
:param _AspectRatio:
|
|
12659
|
-
|
|
12660
|
-
不同模型支持的宽高比:
|
|
12661
|
-
1. GEM支持:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9 和 21:9。
|
|
12662
|
-
|
|
12663
|
-
注:具体模型的宽高比参数,可查看相应模型官网获取更完整描述。
|
|
12658
|
+
:param _AspectRatio: <p>指定所生成视频的宽高比。</p><p>不同模型支持的宽高比:</p><ol><li>GEM支持:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9 和 21:9。</li></ol><p>注:具体模型的宽高比参数,可查看相应模型官网获取更完整描述。</p>
|
|
12664
12659
|
:type AspectRatio: str
|
|
12665
|
-
:param _Resolution:
|
|
12666
|
-
|
|
12667
|
-
支持该参数的模型:
|
|
12668
|
-
支持选择: 720P, 1080P, 2K, 4K。
|
|
12669
|
-
|
|
12660
|
+
:param _Resolution: <p>指定图片输出分辨率。</p><p>支持该参数的模型:<br>支持选择: 720P, 1080P, 2K, 4K。</p>
|
|
12670
12661
|
:type Resolution: str
|
|
12662
|
+
:param _LogoAdd: <p>是否添加图标水印。默认不加。1-添加,0-不添加。</p><p>取值范围:[0, 1]</p><p>默认值:0</p>
|
|
12663
|
+
:type LogoAdd: int
|
|
12671
12664
|
"""
|
|
12672
12665
|
self._AspectRatio = None
|
|
12673
12666
|
self._Resolution = None
|
|
12667
|
+
self._LogoAdd = None
|
|
12674
12668
|
|
|
12675
12669
|
@property
|
|
12676
12670
|
def AspectRatio(self):
|
|
12677
|
-
r"""
|
|
12678
|
-
|
|
12679
|
-
不同模型支持的宽高比:
|
|
12680
|
-
1. GEM支持:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9 和 21:9。
|
|
12681
|
-
|
|
12682
|
-
注:具体模型的宽高比参数,可查看相应模型官网获取更完整描述。
|
|
12671
|
+
r"""<p>指定所生成视频的宽高比。</p><p>不同模型支持的宽高比:</p><ol><li>GEM支持:1:1、3:2、2:3、3:4、4:3、4:5、5:4、9:16、16:9 和 21:9。</li></ol><p>注:具体模型的宽高比参数,可查看相应模型官网获取更完整描述。</p>
|
|
12683
12672
|
:rtype: str
|
|
12684
12673
|
"""
|
|
12685
12674
|
return self._AspectRatio
|
|
@@ -12690,11 +12679,7 @@ class AigcImageExtraParam(AbstractModel):
|
|
|
12690
12679
|
|
|
12691
12680
|
@property
|
|
12692
12681
|
def Resolution(self):
|
|
12693
|
-
r"""
|
|
12694
|
-
|
|
12695
|
-
支持该参数的模型:
|
|
12696
|
-
支持选择: 720P, 1080P, 2K, 4K。
|
|
12697
|
-
|
|
12682
|
+
r"""<p>指定图片输出分辨率。</p><p>支持该参数的模型:<br>支持选择: 720P, 1080P, 2K, 4K。</p>
|
|
12698
12683
|
:rtype: str
|
|
12699
12684
|
"""
|
|
12700
12685
|
return self._Resolution
|
|
@@ -12703,10 +12688,22 @@ class AigcImageExtraParam(AbstractModel):
|
|
|
12703
12688
|
def Resolution(self, Resolution):
|
|
12704
12689
|
self._Resolution = Resolution
|
|
12705
12690
|
|
|
12691
|
+
@property
|
|
12692
|
+
def LogoAdd(self):
|
|
12693
|
+
r"""<p>是否添加图标水印。默认不加。1-添加,0-不添加。</p><p>取值范围:[0, 1]</p><p>默认值:0</p>
|
|
12694
|
+
:rtype: int
|
|
12695
|
+
"""
|
|
12696
|
+
return self._LogoAdd
|
|
12697
|
+
|
|
12698
|
+
@LogoAdd.setter
|
|
12699
|
+
def LogoAdd(self, LogoAdd):
|
|
12700
|
+
self._LogoAdd = LogoAdd
|
|
12701
|
+
|
|
12706
12702
|
|
|
12707
12703
|
def _deserialize(self, params):
|
|
12708
12704
|
self._AspectRatio = params.get("AspectRatio")
|
|
12709
12705
|
self._Resolution = params.get("Resolution")
|
|
12706
|
+
self._LogoAdd = params.get("LogoAdd")
|
|
12710
12707
|
memeber_set = set(params.keys())
|
|
12711
12708
|
for name, value in vars(self).items():
|
|
12712
12709
|
property_name = name[1:]
|
|
@@ -20322,9 +20319,9 @@ class CreateAigcVideoTaskRequest(AbstractModel):
|
|
|
20322
20319
|
|
|
20323
20320
|
def __init__(self):
|
|
20324
20321
|
r"""
|
|
20325
|
-
:param _ModelName: <p>模型名称。<br>当前支持的模型列表:<br>Hunyuan,<br>Hailuo,<br>Kling,<br>Vidu,<br>OS,<br>GV。</p>
|
|
20322
|
+
:param _ModelName: <p>模型名称。<br>当前支持的模型列表:<br>Hunyuan,<br>Hailuo,<br>Kling,<br>Vidu,<br>OS,<br>GV,<br>PixVerse。</p>
|
|
20326
20323
|
:type ModelName: str
|
|
20327
|
-
:param _ModelVersion: <p>指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。</p><ol><li>Hailuo, 可选[02、2.3]。</li><li>Kling,可选[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]。</li><li>GV, 可选[3.1]。</li><li>OS,可选[2.0]。</li></ol>
|
|
20324
|
+
:param _ModelVersion: <p>指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。</p><ol><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>GV, 可选[3.1、3.1-fast]。</li><li>OS,可选[2.0]。</li><li>PixVerse,可选[v5.6、v6、c1]</li></ol>
|
|
20328
20325
|
:type ModelVersion: str
|
|
20329
20326
|
:param _SceneType: <p>指定场景生视频。<br>注意:仅部分模型支持指定场景。</p><ol><li>Kling支持动作控制,motion_control。</li><li>Mingmou支持横转竖,land2port。</li><li>Vidu支持特效模板,template_effect。</li></ol>
|
|
20330
20327
|
:type SceneType: str
|
|
@@ -20371,7 +20368,7 @@ class CreateAigcVideoTaskRequest(AbstractModel):
|
|
|
20371
20368
|
|
|
20372
20369
|
@property
|
|
20373
20370
|
def ModelName(self):
|
|
20374
|
-
r"""<p>模型名称。<br>当前支持的模型列表:<br>Hunyuan,<br>Hailuo,<br>Kling,<br>Vidu,<br>OS,<br>GV。</p>
|
|
20371
|
+
r"""<p>模型名称。<br>当前支持的模型列表:<br>Hunyuan,<br>Hailuo,<br>Kling,<br>Vidu,<br>OS,<br>GV,<br>PixVerse。</p>
|
|
20375
20372
|
:rtype: str
|
|
20376
20373
|
"""
|
|
20377
20374
|
return self._ModelName
|
|
@@ -20382,7 +20379,7 @@ class CreateAigcVideoTaskRequest(AbstractModel):
|
|
|
20382
20379
|
|
|
20383
20380
|
@property
|
|
20384
20381
|
def ModelVersion(self):
|
|
20385
|
-
r"""<p>指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。</p><ol><li>Hailuo, 可选[02、2.3]。</li><li>Kling,可选[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]。</li><li>GV, 可选[3.1]。</li><li>OS,可选[2.0]。</li></ol>
|
|
20382
|
+
r"""<p>指定模型特定版本号。默认使用系统当前所支持的模型稳定版本。</p><ol><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>GV, 可选[3.1、3.1-fast]。</li><li>OS,可选[2.0]。</li><li>PixVerse,可选[v5.6、v6、c1]</li></ol>
|
|
20386
20383
|
:rtype: str
|
|
20387
20384
|
"""
|
|
20388
20385
|
return self._ModelVersion
|
|
@@ -25734,20 +25731,22 @@ class CreateStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
25734
25731
|
|
|
25735
25732
|
def __init__(self):
|
|
25736
25733
|
r"""
|
|
25737
|
-
:param _Name: Program
|
|
25734
|
+
:param _Name: <p>Program名称。</p>
|
|
25738
25735
|
:type Name: str
|
|
25739
|
-
:param _AttachedChannel:
|
|
25736
|
+
:param _AttachedChannel: <p>绑定的channel。</p>
|
|
25740
25737
|
:type AttachedChannel: str
|
|
25741
|
-
:param _SourceType:
|
|
25738
|
+
:param _SourceType: <p>编排的目标source的类型,分直播Live和点播VOD。Tier为Basic时只支持VOD,Tier为Standard时支持Live和VOD</p>
|
|
25742
25739
|
:type SourceType: str
|
|
25743
|
-
:param _SourceLocationId:
|
|
25740
|
+
:param _SourceLocationId: <p>关联的source location。</p>
|
|
25744
25741
|
:type SourceLocationId: str
|
|
25745
|
-
:param _SourceName:
|
|
25742
|
+
:param _SourceName: <p>关联的直播or点播,source名称,location下全局唯一。</p>
|
|
25746
25743
|
:type SourceName: str
|
|
25747
|
-
:param _PlaybackConf: PlaybackConf
|
|
25744
|
+
:param _PlaybackConf: <p>PlaybackConf。</p>
|
|
25748
25745
|
:type PlaybackConf: :class:`tencentcloud.mps.v20190612.models.PlaybackInfoReq`
|
|
25749
|
-
:param _AdBreaks: AdBreaks,只有source类型为Vod
|
|
25746
|
+
:param _AdBreaks: <p>AdBreaks,只有source类型为Vod时有效。</p>
|
|
25750
25747
|
:type AdBreaks: list of AdBreakInfo
|
|
25748
|
+
:param _VodAcquisitionMethod: <p>VOD获取方式,支持PreCaching和DynamicUpdating,默认PreCaching,仅Linear频道支持</p>
|
|
25749
|
+
:type VodAcquisitionMethod: str
|
|
25751
25750
|
"""
|
|
25752
25751
|
self._Name = None
|
|
25753
25752
|
self._AttachedChannel = None
|
|
@@ -25756,10 +25755,11 @@ class CreateStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
25756
25755
|
self._SourceName = None
|
|
25757
25756
|
self._PlaybackConf = None
|
|
25758
25757
|
self._AdBreaks = None
|
|
25758
|
+
self._VodAcquisitionMethod = None
|
|
25759
25759
|
|
|
25760
25760
|
@property
|
|
25761
25761
|
def Name(self):
|
|
25762
|
-
r"""Program
|
|
25762
|
+
r"""<p>Program名称。</p>
|
|
25763
25763
|
:rtype: str
|
|
25764
25764
|
"""
|
|
25765
25765
|
return self._Name
|
|
@@ -25770,7 +25770,7 @@ class CreateStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
25770
25770
|
|
|
25771
25771
|
@property
|
|
25772
25772
|
def AttachedChannel(self):
|
|
25773
|
-
r"""
|
|
25773
|
+
r"""<p>绑定的channel。</p>
|
|
25774
25774
|
:rtype: str
|
|
25775
25775
|
"""
|
|
25776
25776
|
return self._AttachedChannel
|
|
@@ -25781,7 +25781,7 @@ class CreateStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
25781
25781
|
|
|
25782
25782
|
@property
|
|
25783
25783
|
def SourceType(self):
|
|
25784
|
-
r"""
|
|
25784
|
+
r"""<p>编排的目标source的类型,分直播Live和点播VOD。Tier为Basic时只支持VOD,Tier为Standard时支持Live和VOD</p>
|
|
25785
25785
|
:rtype: str
|
|
25786
25786
|
"""
|
|
25787
25787
|
return self._SourceType
|
|
@@ -25792,7 +25792,7 @@ class CreateStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
25792
25792
|
|
|
25793
25793
|
@property
|
|
25794
25794
|
def SourceLocationId(self):
|
|
25795
|
-
r"""
|
|
25795
|
+
r"""<p>关联的source location。</p>
|
|
25796
25796
|
:rtype: str
|
|
25797
25797
|
"""
|
|
25798
25798
|
return self._SourceLocationId
|
|
@@ -25803,7 +25803,7 @@ class CreateStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
25803
25803
|
|
|
25804
25804
|
@property
|
|
25805
25805
|
def SourceName(self):
|
|
25806
|
-
r"""
|
|
25806
|
+
r"""<p>关联的直播or点播,source名称,location下全局唯一。</p>
|
|
25807
25807
|
:rtype: str
|
|
25808
25808
|
"""
|
|
25809
25809
|
return self._SourceName
|
|
@@ -25814,7 +25814,7 @@ class CreateStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
25814
25814
|
|
|
25815
25815
|
@property
|
|
25816
25816
|
def PlaybackConf(self):
|
|
25817
|
-
r"""PlaybackConf
|
|
25817
|
+
r"""<p>PlaybackConf。</p>
|
|
25818
25818
|
:rtype: :class:`tencentcloud.mps.v20190612.models.PlaybackInfoReq`
|
|
25819
25819
|
"""
|
|
25820
25820
|
return self._PlaybackConf
|
|
@@ -25825,7 +25825,7 @@ class CreateStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
25825
25825
|
|
|
25826
25826
|
@property
|
|
25827
25827
|
def AdBreaks(self):
|
|
25828
|
-
r"""AdBreaks,只有source类型为Vod
|
|
25828
|
+
r"""<p>AdBreaks,只有source类型为Vod时有效。</p>
|
|
25829
25829
|
:rtype: list of AdBreakInfo
|
|
25830
25830
|
"""
|
|
25831
25831
|
return self._AdBreaks
|
|
@@ -25834,6 +25834,17 @@ class CreateStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
25834
25834
|
def AdBreaks(self, AdBreaks):
|
|
25835
25835
|
self._AdBreaks = AdBreaks
|
|
25836
25836
|
|
|
25837
|
+
@property
|
|
25838
|
+
def VodAcquisitionMethod(self):
|
|
25839
|
+
r"""<p>VOD获取方式,支持PreCaching和DynamicUpdating,默认PreCaching,仅Linear频道支持</p>
|
|
25840
|
+
:rtype: str
|
|
25841
|
+
"""
|
|
25842
|
+
return self._VodAcquisitionMethod
|
|
25843
|
+
|
|
25844
|
+
@VodAcquisitionMethod.setter
|
|
25845
|
+
def VodAcquisitionMethod(self, VodAcquisitionMethod):
|
|
25846
|
+
self._VodAcquisitionMethod = VodAcquisitionMethod
|
|
25847
|
+
|
|
25837
25848
|
|
|
25838
25849
|
def _deserialize(self, params):
|
|
25839
25850
|
self._Name = params.get("Name")
|
|
@@ -25850,6 +25861,7 @@ class CreateStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
25850
25861
|
obj = AdBreakInfo()
|
|
25851
25862
|
obj._deserialize(item)
|
|
25852
25863
|
self._AdBreaks.append(obj)
|
|
25864
|
+
self._VodAcquisitionMethod = params.get("VodAcquisitionMethod")
|
|
25853
25865
|
memeber_set = set(params.keys())
|
|
25854
25866
|
for name, value in vars(self).items():
|
|
25855
25867
|
property_name = name[1:]
|
|
@@ -25867,7 +25879,7 @@ class CreateStreamPackageLinearAssemblyProgramResponse(AbstractModel):
|
|
|
25867
25879
|
|
|
25868
25880
|
def __init__(self):
|
|
25869
25881
|
r"""
|
|
25870
|
-
:param _Info: channel
|
|
25882
|
+
:param _Info: <p>channel信息。</p>
|
|
25871
25883
|
:type Info: :class:`tencentcloud.mps.v20190612.models.LinearAssemblyProgramInfo`
|
|
25872
25884
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
25873
25885
|
:type RequestId: str
|
|
@@ -25877,7 +25889,7 @@ class CreateStreamPackageLinearAssemblyProgramResponse(AbstractModel):
|
|
|
25877
25889
|
|
|
25878
25890
|
@property
|
|
25879
25891
|
def Info(self):
|
|
25880
|
-
r"""channel
|
|
25892
|
+
r"""<p>channel信息。</p>
|
|
25881
25893
|
:rtype: :class:`tencentcloud.mps.v20190612.models.LinearAssemblyProgramInfo`
|
|
25882
25894
|
"""
|
|
25883
25895
|
return self._Info
|
|
@@ -41118,6 +41130,160 @@ class DescribeTasksResponse(AbstractModel):
|
|
|
41118
41130
|
self._RequestId = params.get("RequestId")
|
|
41119
41131
|
|
|
41120
41132
|
|
|
41133
|
+
class DescribeTextToSpeechAsyncTaskRequest(AbstractModel):
|
|
41134
|
+
r"""DescribeTextToSpeechAsyncTask请求参数结构体
|
|
41135
|
+
|
|
41136
|
+
"""
|
|
41137
|
+
|
|
41138
|
+
def __init__(self):
|
|
41139
|
+
r"""
|
|
41140
|
+
:param _TaskId: <p>任务ID</p>
|
|
41141
|
+
:type TaskId: str
|
|
41142
|
+
"""
|
|
41143
|
+
self._TaskId = None
|
|
41144
|
+
|
|
41145
|
+
@property
|
|
41146
|
+
def TaskId(self):
|
|
41147
|
+
r"""<p>任务ID</p>
|
|
41148
|
+
:rtype: str
|
|
41149
|
+
"""
|
|
41150
|
+
return self._TaskId
|
|
41151
|
+
|
|
41152
|
+
@TaskId.setter
|
|
41153
|
+
def TaskId(self, TaskId):
|
|
41154
|
+
self._TaskId = TaskId
|
|
41155
|
+
|
|
41156
|
+
|
|
41157
|
+
def _deserialize(self, params):
|
|
41158
|
+
self._TaskId = params.get("TaskId")
|
|
41159
|
+
memeber_set = set(params.keys())
|
|
41160
|
+
for name, value in vars(self).items():
|
|
41161
|
+
property_name = name[1:]
|
|
41162
|
+
if property_name in memeber_set:
|
|
41163
|
+
memeber_set.remove(property_name)
|
|
41164
|
+
if len(memeber_set) > 0:
|
|
41165
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
41166
|
+
|
|
41167
|
+
|
|
41168
|
+
|
|
41169
|
+
class DescribeTextToSpeechAsyncTaskResponse(AbstractModel):
|
|
41170
|
+
r"""DescribeTextToSpeechAsyncTask返回参数结构体
|
|
41171
|
+
|
|
41172
|
+
"""
|
|
41173
|
+
|
|
41174
|
+
def __init__(self):
|
|
41175
|
+
r"""
|
|
41176
|
+
:param _ErrorCode: <p>错误码,成功时返回0</p>
|
|
41177
|
+
:type ErrorCode: int
|
|
41178
|
+
:param _Msg: <p>错误信息,成功时返回success</p>
|
|
41179
|
+
:type Msg: str
|
|
41180
|
+
:param _Status: <p>任务状态</p><p>枚举值:</p><ul><li>success: 成功</li><li>fail: 失败</li><li>processing: 处理中</li></ul>
|
|
41181
|
+
:type Status: str
|
|
41182
|
+
:param _AudioUrl: <p>合成音频url</p>
|
|
41183
|
+
:type AudioUrl: str
|
|
41184
|
+
:param _VoiceId: <p>使用的音色ID</p>
|
|
41185
|
+
:type VoiceId: str
|
|
41186
|
+
:param _ExtInfo: <p>扩展信息</p>
|
|
41187
|
+
:type ExtInfo: str
|
|
41188
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
41189
|
+
:type RequestId: str
|
|
41190
|
+
"""
|
|
41191
|
+
self._ErrorCode = None
|
|
41192
|
+
self._Msg = None
|
|
41193
|
+
self._Status = None
|
|
41194
|
+
self._AudioUrl = None
|
|
41195
|
+
self._VoiceId = None
|
|
41196
|
+
self._ExtInfo = None
|
|
41197
|
+
self._RequestId = None
|
|
41198
|
+
|
|
41199
|
+
@property
|
|
41200
|
+
def ErrorCode(self):
|
|
41201
|
+
r"""<p>错误码,成功时返回0</p>
|
|
41202
|
+
:rtype: int
|
|
41203
|
+
"""
|
|
41204
|
+
return self._ErrorCode
|
|
41205
|
+
|
|
41206
|
+
@ErrorCode.setter
|
|
41207
|
+
def ErrorCode(self, ErrorCode):
|
|
41208
|
+
self._ErrorCode = ErrorCode
|
|
41209
|
+
|
|
41210
|
+
@property
|
|
41211
|
+
def Msg(self):
|
|
41212
|
+
r"""<p>错误信息,成功时返回success</p>
|
|
41213
|
+
:rtype: str
|
|
41214
|
+
"""
|
|
41215
|
+
return self._Msg
|
|
41216
|
+
|
|
41217
|
+
@Msg.setter
|
|
41218
|
+
def Msg(self, Msg):
|
|
41219
|
+
self._Msg = Msg
|
|
41220
|
+
|
|
41221
|
+
@property
|
|
41222
|
+
def Status(self):
|
|
41223
|
+
r"""<p>任务状态</p><p>枚举值:</p><ul><li>success: 成功</li><li>fail: 失败</li><li>processing: 处理中</li></ul>
|
|
41224
|
+
:rtype: str
|
|
41225
|
+
"""
|
|
41226
|
+
return self._Status
|
|
41227
|
+
|
|
41228
|
+
@Status.setter
|
|
41229
|
+
def Status(self, Status):
|
|
41230
|
+
self._Status = Status
|
|
41231
|
+
|
|
41232
|
+
@property
|
|
41233
|
+
def AudioUrl(self):
|
|
41234
|
+
r"""<p>合成音频url</p>
|
|
41235
|
+
:rtype: str
|
|
41236
|
+
"""
|
|
41237
|
+
return self._AudioUrl
|
|
41238
|
+
|
|
41239
|
+
@AudioUrl.setter
|
|
41240
|
+
def AudioUrl(self, AudioUrl):
|
|
41241
|
+
self._AudioUrl = AudioUrl
|
|
41242
|
+
|
|
41243
|
+
@property
|
|
41244
|
+
def VoiceId(self):
|
|
41245
|
+
r"""<p>使用的音色ID</p>
|
|
41246
|
+
:rtype: str
|
|
41247
|
+
"""
|
|
41248
|
+
return self._VoiceId
|
|
41249
|
+
|
|
41250
|
+
@VoiceId.setter
|
|
41251
|
+
def VoiceId(self, VoiceId):
|
|
41252
|
+
self._VoiceId = VoiceId
|
|
41253
|
+
|
|
41254
|
+
@property
|
|
41255
|
+
def ExtInfo(self):
|
|
41256
|
+
r"""<p>扩展信息</p>
|
|
41257
|
+
:rtype: str
|
|
41258
|
+
"""
|
|
41259
|
+
return self._ExtInfo
|
|
41260
|
+
|
|
41261
|
+
@ExtInfo.setter
|
|
41262
|
+
def ExtInfo(self, ExtInfo):
|
|
41263
|
+
self._ExtInfo = ExtInfo
|
|
41264
|
+
|
|
41265
|
+
@property
|
|
41266
|
+
def RequestId(self):
|
|
41267
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
41268
|
+
:rtype: str
|
|
41269
|
+
"""
|
|
41270
|
+
return self._RequestId
|
|
41271
|
+
|
|
41272
|
+
@RequestId.setter
|
|
41273
|
+
def RequestId(self, RequestId):
|
|
41274
|
+
self._RequestId = RequestId
|
|
41275
|
+
|
|
41276
|
+
|
|
41277
|
+
def _deserialize(self, params):
|
|
41278
|
+
self._ErrorCode = params.get("ErrorCode")
|
|
41279
|
+
self._Msg = params.get("Msg")
|
|
41280
|
+
self._Status = params.get("Status")
|
|
41281
|
+
self._AudioUrl = params.get("AudioUrl")
|
|
41282
|
+
self._VoiceId = params.get("VoiceId")
|
|
41283
|
+
self._ExtInfo = params.get("ExtInfo")
|
|
41284
|
+
self._RequestId = params.get("RequestId")
|
|
41285
|
+
|
|
41286
|
+
|
|
41121
41287
|
class DescribeTranscodeTemplatesRequest(AbstractModel):
|
|
41122
41288
|
r"""DescribeTranscodeTemplates请求参数结构体
|
|
41123
41289
|
|
|
@@ -49975,28 +50141,30 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
49975
50141
|
|
|
49976
50142
|
def __init__(self):
|
|
49977
50143
|
r"""
|
|
49978
|
-
:param _Name: program
|
|
50144
|
+
:param _Name: <p>program名称。</p>
|
|
49979
50145
|
:type Name: str
|
|
49980
|
-
:param _SourceType:
|
|
50146
|
+
:param _SourceType: <p>编排的目标source的类型,分直播和点播。</p>
|
|
49981
50147
|
:type SourceType: str
|
|
49982
|
-
:param _SourceLocationId:
|
|
50148
|
+
:param _SourceLocationId: <p>关联的source location id。</p>
|
|
49983
50149
|
:type SourceLocationId: str
|
|
49984
|
-
:param _SourceId: SourceId,唯一标识一个source
|
|
50150
|
+
:param _SourceId: <p>SourceId,唯一标识一个source。</p>
|
|
49985
50151
|
:type SourceId: str
|
|
49986
|
-
:param _SourceName:
|
|
50152
|
+
:param _SourceName: <p>关联的直播or点播,source名称,location下全局唯一。</p>
|
|
49987
50153
|
:type SourceName: str
|
|
49988
|
-
:param _AttachedChannel:
|
|
50154
|
+
:param _AttachedChannel: <p>绑定的channel。</p>
|
|
49989
50155
|
:type AttachedChannel: str
|
|
49990
|
-
:param _PlaybackConf:
|
|
50156
|
+
:param _PlaybackConf: <p>播放配置。</p>
|
|
49991
50157
|
:type PlaybackConf: :class:`tencentcloud.mps.v20190612.models.PlaybackInfo`
|
|
49992
|
-
:param _AdBreaks: AdBreaks
|
|
50158
|
+
:param _AdBreaks: <p>AdBreaks。</p>
|
|
49993
50159
|
:type AdBreaks: list of AdBreakInfo
|
|
49994
|
-
:param _Id: Id
|
|
50160
|
+
:param _Id: <p>Id。</p>
|
|
49995
50161
|
:type Id: str
|
|
49996
|
-
:param _Region: Region
|
|
50162
|
+
:param _Region: <p>Region。</p>
|
|
49997
50163
|
:type Region: str
|
|
49998
|
-
:param _SourceLocationName: SourceLocation
|
|
50164
|
+
:param _SourceLocationName: <p>SourceLocation名称。</p>
|
|
49999
50165
|
:type SourceLocationName: str
|
|
50166
|
+
:param _VodAcquisitionMethod: <p>VOD获取方式,支持PreCaching和DynamicUpdating,默认PreCaching,仅Linear频道支持</p>
|
|
50167
|
+
:type VodAcquisitionMethod: str
|
|
50000
50168
|
"""
|
|
50001
50169
|
self._Name = None
|
|
50002
50170
|
self._SourceType = None
|
|
@@ -50009,10 +50177,11 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50009
50177
|
self._Id = None
|
|
50010
50178
|
self._Region = None
|
|
50011
50179
|
self._SourceLocationName = None
|
|
50180
|
+
self._VodAcquisitionMethod = None
|
|
50012
50181
|
|
|
50013
50182
|
@property
|
|
50014
50183
|
def Name(self):
|
|
50015
|
-
r"""program
|
|
50184
|
+
r"""<p>program名称。</p>
|
|
50016
50185
|
:rtype: str
|
|
50017
50186
|
"""
|
|
50018
50187
|
return self._Name
|
|
@@ -50023,7 +50192,7 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50023
50192
|
|
|
50024
50193
|
@property
|
|
50025
50194
|
def SourceType(self):
|
|
50026
|
-
r"""
|
|
50195
|
+
r"""<p>编排的目标source的类型,分直播和点播。</p>
|
|
50027
50196
|
:rtype: str
|
|
50028
50197
|
"""
|
|
50029
50198
|
return self._SourceType
|
|
@@ -50034,7 +50203,7 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50034
50203
|
|
|
50035
50204
|
@property
|
|
50036
50205
|
def SourceLocationId(self):
|
|
50037
|
-
r"""
|
|
50206
|
+
r"""<p>关联的source location id。</p>
|
|
50038
50207
|
:rtype: str
|
|
50039
50208
|
"""
|
|
50040
50209
|
return self._SourceLocationId
|
|
@@ -50045,7 +50214,7 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50045
50214
|
|
|
50046
50215
|
@property
|
|
50047
50216
|
def SourceId(self):
|
|
50048
|
-
r"""SourceId,唯一标识一个source
|
|
50217
|
+
r"""<p>SourceId,唯一标识一个source。</p>
|
|
50049
50218
|
:rtype: str
|
|
50050
50219
|
"""
|
|
50051
50220
|
return self._SourceId
|
|
@@ -50056,7 +50225,7 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50056
50225
|
|
|
50057
50226
|
@property
|
|
50058
50227
|
def SourceName(self):
|
|
50059
|
-
r"""
|
|
50228
|
+
r"""<p>关联的直播or点播,source名称,location下全局唯一。</p>
|
|
50060
50229
|
:rtype: str
|
|
50061
50230
|
"""
|
|
50062
50231
|
return self._SourceName
|
|
@@ -50067,7 +50236,7 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50067
50236
|
|
|
50068
50237
|
@property
|
|
50069
50238
|
def AttachedChannel(self):
|
|
50070
|
-
r"""
|
|
50239
|
+
r"""<p>绑定的channel。</p>
|
|
50071
50240
|
:rtype: str
|
|
50072
50241
|
"""
|
|
50073
50242
|
return self._AttachedChannel
|
|
@@ -50078,7 +50247,7 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50078
50247
|
|
|
50079
50248
|
@property
|
|
50080
50249
|
def PlaybackConf(self):
|
|
50081
|
-
r"""
|
|
50250
|
+
r"""<p>播放配置。</p>
|
|
50082
50251
|
:rtype: :class:`tencentcloud.mps.v20190612.models.PlaybackInfo`
|
|
50083
50252
|
"""
|
|
50084
50253
|
return self._PlaybackConf
|
|
@@ -50089,7 +50258,7 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50089
50258
|
|
|
50090
50259
|
@property
|
|
50091
50260
|
def AdBreaks(self):
|
|
50092
|
-
r"""AdBreaks
|
|
50261
|
+
r"""<p>AdBreaks。</p>
|
|
50093
50262
|
:rtype: list of AdBreakInfo
|
|
50094
50263
|
"""
|
|
50095
50264
|
return self._AdBreaks
|
|
@@ -50100,7 +50269,7 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50100
50269
|
|
|
50101
50270
|
@property
|
|
50102
50271
|
def Id(self):
|
|
50103
|
-
r"""Id
|
|
50272
|
+
r"""<p>Id。</p>
|
|
50104
50273
|
:rtype: str
|
|
50105
50274
|
"""
|
|
50106
50275
|
return self._Id
|
|
@@ -50111,7 +50280,7 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50111
50280
|
|
|
50112
50281
|
@property
|
|
50113
50282
|
def Region(self):
|
|
50114
|
-
r"""Region
|
|
50283
|
+
r"""<p>Region。</p>
|
|
50115
50284
|
:rtype: str
|
|
50116
50285
|
"""
|
|
50117
50286
|
return self._Region
|
|
@@ -50122,7 +50291,7 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50122
50291
|
|
|
50123
50292
|
@property
|
|
50124
50293
|
def SourceLocationName(self):
|
|
50125
|
-
r"""SourceLocation
|
|
50294
|
+
r"""<p>SourceLocation名称。</p>
|
|
50126
50295
|
:rtype: str
|
|
50127
50296
|
"""
|
|
50128
50297
|
return self._SourceLocationName
|
|
@@ -50131,6 +50300,17 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50131
50300
|
def SourceLocationName(self, SourceLocationName):
|
|
50132
50301
|
self._SourceLocationName = SourceLocationName
|
|
50133
50302
|
|
|
50303
|
+
@property
|
|
50304
|
+
def VodAcquisitionMethod(self):
|
|
50305
|
+
r"""<p>VOD获取方式,支持PreCaching和DynamicUpdating,默认PreCaching,仅Linear频道支持</p>
|
|
50306
|
+
:rtype: str
|
|
50307
|
+
"""
|
|
50308
|
+
return self._VodAcquisitionMethod
|
|
50309
|
+
|
|
50310
|
+
@VodAcquisitionMethod.setter
|
|
50311
|
+
def VodAcquisitionMethod(self, VodAcquisitionMethod):
|
|
50312
|
+
self._VodAcquisitionMethod = VodAcquisitionMethod
|
|
50313
|
+
|
|
50134
50314
|
|
|
50135
50315
|
def _deserialize(self, params):
|
|
50136
50316
|
self._Name = params.get("Name")
|
|
@@ -50151,6 +50331,7 @@ class LinearAssemblyProgramInfo(AbstractModel):
|
|
|
50151
50331
|
self._Id = params.get("Id")
|
|
50152
50332
|
self._Region = params.get("Region")
|
|
50153
50333
|
self._SourceLocationName = params.get("SourceLocationName")
|
|
50334
|
+
self._VodAcquisitionMethod = params.get("VodAcquisitionMethod")
|
|
50154
50335
|
memeber_set = set(params.keys())
|
|
50155
50336
|
for name, value in vars(self).items():
|
|
50156
50337
|
property_name = name[1:]
|
|
@@ -62389,20 +62570,22 @@ class ModifyStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
62389
62570
|
|
|
62390
62571
|
def __init__(self):
|
|
62391
62572
|
r"""
|
|
62392
|
-
:param _Id: Program Id
|
|
62573
|
+
:param _Id: <p>Program Id。</p>
|
|
62393
62574
|
:type Id: str
|
|
62394
|
-
:param _Name:
|
|
62575
|
+
:param _Name: <p>修改后的名称。</p>
|
|
62395
62576
|
:type Name: str
|
|
62396
|
-
:param _SourceType:
|
|
62577
|
+
:param _SourceType: <p>编排的目标source的类型,分直播和点播。Tier为Basic时只支持VOD,Tier为Standard时支持Live和VOD</p>
|
|
62397
62578
|
:type SourceType: str
|
|
62398
|
-
:param _SourceLocationId:
|
|
62579
|
+
:param _SourceLocationId: <p>关联的source location。</p>
|
|
62399
62580
|
:type SourceLocationId: str
|
|
62400
|
-
:param _SourceName:
|
|
62581
|
+
:param _SourceName: <p>关联的直播or点播,source名称,location下全局唯一。</p>
|
|
62401
62582
|
:type SourceName: str
|
|
62402
|
-
:param _PlaybackConf: PlaybackConf
|
|
62583
|
+
:param _PlaybackConf: <p>PlaybackConf。</p>
|
|
62403
62584
|
:type PlaybackConf: :class:`tencentcloud.mps.v20190612.models.PlaybackInfoReq`
|
|
62404
|
-
:param _AdBreaks: AdBreaks
|
|
62585
|
+
:param _AdBreaks: <p>AdBreaks。</p>
|
|
62405
62586
|
:type AdBreaks: list of AdBreakInfo
|
|
62587
|
+
:param _VodAcquisitionMethod: <p>VOD获取方式,支持PreCaching和DynamicUpdating,默认PreCaching,仅Linear频道支持</p>
|
|
62588
|
+
:type VodAcquisitionMethod: str
|
|
62406
62589
|
"""
|
|
62407
62590
|
self._Id = None
|
|
62408
62591
|
self._Name = None
|
|
@@ -62411,10 +62594,11 @@ class ModifyStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
62411
62594
|
self._SourceName = None
|
|
62412
62595
|
self._PlaybackConf = None
|
|
62413
62596
|
self._AdBreaks = None
|
|
62597
|
+
self._VodAcquisitionMethod = None
|
|
62414
62598
|
|
|
62415
62599
|
@property
|
|
62416
62600
|
def Id(self):
|
|
62417
|
-
r"""Program Id
|
|
62601
|
+
r"""<p>Program Id。</p>
|
|
62418
62602
|
:rtype: str
|
|
62419
62603
|
"""
|
|
62420
62604
|
return self._Id
|
|
@@ -62425,7 +62609,7 @@ class ModifyStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
62425
62609
|
|
|
62426
62610
|
@property
|
|
62427
62611
|
def Name(self):
|
|
62428
|
-
r"""
|
|
62612
|
+
r"""<p>修改后的名称。</p>
|
|
62429
62613
|
:rtype: str
|
|
62430
62614
|
"""
|
|
62431
62615
|
return self._Name
|
|
@@ -62436,7 +62620,7 @@ class ModifyStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
62436
62620
|
|
|
62437
62621
|
@property
|
|
62438
62622
|
def SourceType(self):
|
|
62439
|
-
r"""
|
|
62623
|
+
r"""<p>编排的目标source的类型,分直播和点播。Tier为Basic时只支持VOD,Tier为Standard时支持Live和VOD</p>
|
|
62440
62624
|
:rtype: str
|
|
62441
62625
|
"""
|
|
62442
62626
|
return self._SourceType
|
|
@@ -62447,7 +62631,7 @@ class ModifyStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
62447
62631
|
|
|
62448
62632
|
@property
|
|
62449
62633
|
def SourceLocationId(self):
|
|
62450
|
-
r"""
|
|
62634
|
+
r"""<p>关联的source location。</p>
|
|
62451
62635
|
:rtype: str
|
|
62452
62636
|
"""
|
|
62453
62637
|
return self._SourceLocationId
|
|
@@ -62458,7 +62642,7 @@ class ModifyStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
62458
62642
|
|
|
62459
62643
|
@property
|
|
62460
62644
|
def SourceName(self):
|
|
62461
|
-
r"""
|
|
62645
|
+
r"""<p>关联的直播or点播,source名称,location下全局唯一。</p>
|
|
62462
62646
|
:rtype: str
|
|
62463
62647
|
"""
|
|
62464
62648
|
return self._SourceName
|
|
@@ -62469,7 +62653,7 @@ class ModifyStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
62469
62653
|
|
|
62470
62654
|
@property
|
|
62471
62655
|
def PlaybackConf(self):
|
|
62472
|
-
r"""PlaybackConf
|
|
62656
|
+
r"""<p>PlaybackConf。</p>
|
|
62473
62657
|
:rtype: :class:`tencentcloud.mps.v20190612.models.PlaybackInfoReq`
|
|
62474
62658
|
"""
|
|
62475
62659
|
return self._PlaybackConf
|
|
@@ -62480,7 +62664,7 @@ class ModifyStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
62480
62664
|
|
|
62481
62665
|
@property
|
|
62482
62666
|
def AdBreaks(self):
|
|
62483
|
-
r"""AdBreaks
|
|
62667
|
+
r"""<p>AdBreaks。</p>
|
|
62484
62668
|
:rtype: list of AdBreakInfo
|
|
62485
62669
|
"""
|
|
62486
62670
|
return self._AdBreaks
|
|
@@ -62489,6 +62673,17 @@ class ModifyStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
62489
62673
|
def AdBreaks(self, AdBreaks):
|
|
62490
62674
|
self._AdBreaks = AdBreaks
|
|
62491
62675
|
|
|
62676
|
+
@property
|
|
62677
|
+
def VodAcquisitionMethod(self):
|
|
62678
|
+
r"""<p>VOD获取方式,支持PreCaching和DynamicUpdating,默认PreCaching,仅Linear频道支持</p>
|
|
62679
|
+
:rtype: str
|
|
62680
|
+
"""
|
|
62681
|
+
return self._VodAcquisitionMethod
|
|
62682
|
+
|
|
62683
|
+
@VodAcquisitionMethod.setter
|
|
62684
|
+
def VodAcquisitionMethod(self, VodAcquisitionMethod):
|
|
62685
|
+
self._VodAcquisitionMethod = VodAcquisitionMethod
|
|
62686
|
+
|
|
62492
62687
|
|
|
62493
62688
|
def _deserialize(self, params):
|
|
62494
62689
|
self._Id = params.get("Id")
|
|
@@ -62505,6 +62700,7 @@ class ModifyStreamPackageLinearAssemblyProgramRequest(AbstractModel):
|
|
|
62505
62700
|
obj = AdBreakInfo()
|
|
62506
62701
|
obj._deserialize(item)
|
|
62507
62702
|
self._AdBreaks.append(obj)
|
|
62703
|
+
self._VodAcquisitionMethod = params.get("VodAcquisitionMethod")
|
|
62508
62704
|
memeber_set = set(params.keys())
|
|
62509
62705
|
for name, value in vars(self).items():
|
|
62510
62706
|
property_name = name[1:]
|
|
@@ -72355,32 +72551,38 @@ class SSAIChannelInfo(AbstractModel):
|
|
|
72355
72551
|
|
|
72356
72552
|
def __init__(self):
|
|
72357
72553
|
r"""
|
|
72358
|
-
:param _ID:
|
|
72554
|
+
:param _ID: <p>频道ID,全局唯一标识。</p>
|
|
72359
72555
|
:type ID: str
|
|
72360
|
-
:param _Name:
|
|
72556
|
+
:param _Name: <p>频道名称。</p>
|
|
72361
72557
|
:type Name: str
|
|
72362
|
-
:param _ContentSource:
|
|
72558
|
+
:param _ContentSource: <p>广告源信息。</p>
|
|
72363
72559
|
:type ContentSource: str
|
|
72364
|
-
:param _PlaybackPrefix:
|
|
72560
|
+
:param _PlaybackPrefix: <p>播放地址。兼容旧版本参数,推荐使用HlsPlaybackPrefix或DashPlaybackPrefix</p>
|
|
72365
72561
|
:type PlaybackPrefix: str
|
|
72366
|
-
:param
|
|
72562
|
+
:param _HlsPlaybackPrefix: <p>hls播放地址</p>
|
|
72563
|
+
:type HlsPlaybackPrefix: str
|
|
72564
|
+
:param _DashPlaybackPrefix: <p>dash播放地址</p>
|
|
72565
|
+
:type DashPlaybackPrefix: str
|
|
72566
|
+
:param _SSAIInfo: <p>广告插入SSAI配置信息。</p>
|
|
72367
72567
|
:type SSAIInfo: :class:`tencentcloud.mps.v20190612.models.SSAIConf`
|
|
72368
|
-
:param _Region:
|
|
72568
|
+
:param _Region: <p>地域信息。</p>
|
|
72369
72569
|
:type Region: str
|
|
72370
|
-
:param _SessionInitPrefix:
|
|
72570
|
+
:param _SessionInitPrefix: <p>用于clickthrough地址</p>
|
|
72371
72571
|
:type SessionInitPrefix: str
|
|
72372
72572
|
"""
|
|
72373
72573
|
self._ID = None
|
|
72374
72574
|
self._Name = None
|
|
72375
72575
|
self._ContentSource = None
|
|
72376
72576
|
self._PlaybackPrefix = None
|
|
72577
|
+
self._HlsPlaybackPrefix = None
|
|
72578
|
+
self._DashPlaybackPrefix = None
|
|
72377
72579
|
self._SSAIInfo = None
|
|
72378
72580
|
self._Region = None
|
|
72379
72581
|
self._SessionInitPrefix = None
|
|
72380
72582
|
|
|
72381
72583
|
@property
|
|
72382
72584
|
def ID(self):
|
|
72383
|
-
r"""
|
|
72585
|
+
r"""<p>频道ID,全局唯一标识。</p>
|
|
72384
72586
|
:rtype: str
|
|
72385
72587
|
"""
|
|
72386
72588
|
return self._ID
|
|
@@ -72391,7 +72593,7 @@ class SSAIChannelInfo(AbstractModel):
|
|
|
72391
72593
|
|
|
72392
72594
|
@property
|
|
72393
72595
|
def Name(self):
|
|
72394
|
-
r"""
|
|
72596
|
+
r"""<p>频道名称。</p>
|
|
72395
72597
|
:rtype: str
|
|
72396
72598
|
"""
|
|
72397
72599
|
return self._Name
|
|
@@ -72402,7 +72604,7 @@ class SSAIChannelInfo(AbstractModel):
|
|
|
72402
72604
|
|
|
72403
72605
|
@property
|
|
72404
72606
|
def ContentSource(self):
|
|
72405
|
-
r"""
|
|
72607
|
+
r"""<p>广告源信息。</p>
|
|
72406
72608
|
:rtype: str
|
|
72407
72609
|
"""
|
|
72408
72610
|
return self._ContentSource
|
|
@@ -72413,7 +72615,7 @@ class SSAIChannelInfo(AbstractModel):
|
|
|
72413
72615
|
|
|
72414
72616
|
@property
|
|
72415
72617
|
def PlaybackPrefix(self):
|
|
72416
|
-
r"""
|
|
72618
|
+
r"""<p>播放地址。兼容旧版本参数,推荐使用HlsPlaybackPrefix或DashPlaybackPrefix</p>
|
|
72417
72619
|
:rtype: str
|
|
72418
72620
|
"""
|
|
72419
72621
|
return self._PlaybackPrefix
|
|
@@ -72422,9 +72624,31 @@ class SSAIChannelInfo(AbstractModel):
|
|
|
72422
72624
|
def PlaybackPrefix(self, PlaybackPrefix):
|
|
72423
72625
|
self._PlaybackPrefix = PlaybackPrefix
|
|
72424
72626
|
|
|
72627
|
+
@property
|
|
72628
|
+
def HlsPlaybackPrefix(self):
|
|
72629
|
+
r"""<p>hls播放地址</p>
|
|
72630
|
+
:rtype: str
|
|
72631
|
+
"""
|
|
72632
|
+
return self._HlsPlaybackPrefix
|
|
72633
|
+
|
|
72634
|
+
@HlsPlaybackPrefix.setter
|
|
72635
|
+
def HlsPlaybackPrefix(self, HlsPlaybackPrefix):
|
|
72636
|
+
self._HlsPlaybackPrefix = HlsPlaybackPrefix
|
|
72637
|
+
|
|
72638
|
+
@property
|
|
72639
|
+
def DashPlaybackPrefix(self):
|
|
72640
|
+
r"""<p>dash播放地址</p>
|
|
72641
|
+
:rtype: str
|
|
72642
|
+
"""
|
|
72643
|
+
return self._DashPlaybackPrefix
|
|
72644
|
+
|
|
72645
|
+
@DashPlaybackPrefix.setter
|
|
72646
|
+
def DashPlaybackPrefix(self, DashPlaybackPrefix):
|
|
72647
|
+
self._DashPlaybackPrefix = DashPlaybackPrefix
|
|
72648
|
+
|
|
72425
72649
|
@property
|
|
72426
72650
|
def SSAIInfo(self):
|
|
72427
|
-
r"""
|
|
72651
|
+
r"""<p>广告插入SSAI配置信息。</p>
|
|
72428
72652
|
:rtype: :class:`tencentcloud.mps.v20190612.models.SSAIConf`
|
|
72429
72653
|
"""
|
|
72430
72654
|
return self._SSAIInfo
|
|
@@ -72435,7 +72659,7 @@ class SSAIChannelInfo(AbstractModel):
|
|
|
72435
72659
|
|
|
72436
72660
|
@property
|
|
72437
72661
|
def Region(self):
|
|
72438
|
-
r"""
|
|
72662
|
+
r"""<p>地域信息。</p>
|
|
72439
72663
|
:rtype: str
|
|
72440
72664
|
"""
|
|
72441
72665
|
return self._Region
|
|
@@ -72446,7 +72670,7 @@ class SSAIChannelInfo(AbstractModel):
|
|
|
72446
72670
|
|
|
72447
72671
|
@property
|
|
72448
72672
|
def SessionInitPrefix(self):
|
|
72449
|
-
r"""
|
|
72673
|
+
r"""<p>用于clickthrough地址</p>
|
|
72450
72674
|
:rtype: str
|
|
72451
72675
|
"""
|
|
72452
72676
|
return self._SessionInitPrefix
|
|
@@ -72461,6 +72685,8 @@ class SSAIChannelInfo(AbstractModel):
|
|
|
72461
72685
|
self._Name = params.get("Name")
|
|
72462
72686
|
self._ContentSource = params.get("ContentSource")
|
|
72463
72687
|
self._PlaybackPrefix = params.get("PlaybackPrefix")
|
|
72688
|
+
self._HlsPlaybackPrefix = params.get("HlsPlaybackPrefix")
|
|
72689
|
+
self._DashPlaybackPrefix = params.get("DashPlaybackPrefix")
|
|
72464
72690
|
if params.get("SSAIInfo") is not None:
|
|
72465
72691
|
self._SSAIInfo = SSAIConf()
|
|
72466
72692
|
self._SSAIInfo._deserialize(params.get("SSAIInfo"))
|
|
@@ -72519,6 +72745,14 @@ class SSAIConf(AbstractModel):
|
|
|
72519
72745
|
:type PreRollMaxAllowedDuration: int
|
|
72520
72746
|
:param _MultiRequest: <p>是否开启多次请求ADS,开启后将优先请求ADS,请求失败后再请求兜底广告</p>
|
|
72521
72747
|
:type MultiRequest: bool
|
|
72748
|
+
:param _DashOriginManifestType: <p>dash周期类型:SinglePeriod 或 MultiPeriod,默认 MultiPeriod</p>
|
|
72749
|
+
:type DashOriginManifestType: str
|
|
72750
|
+
:param _SlateOnEmptyVast: <p>Empty VAST时是否播放Slate,默认开启(true)</p>
|
|
72751
|
+
:type SlateOnEmptyVast: bool
|
|
72752
|
+
:param _SCTEMarkerDuration: <p>SCTE marker duration,默认180,范围0-3600</p>
|
|
72753
|
+
:type SCTEMarkerDuration: int
|
|
72754
|
+
:param _SecurityGroupId: <p>安全组Id</p>
|
|
72755
|
+
:type SecurityGroupId: str
|
|
72522
72756
|
"""
|
|
72523
72757
|
self._AdsUrl = None
|
|
72524
72758
|
self._AdsUrls = None
|
|
@@ -72536,6 +72770,10 @@ class SSAIConf(AbstractModel):
|
|
|
72536
72770
|
self._PreRollAdsUrls = None
|
|
72537
72771
|
self._PreRollMaxAllowedDuration = None
|
|
72538
72772
|
self._MultiRequest = None
|
|
72773
|
+
self._DashOriginManifestType = None
|
|
72774
|
+
self._SlateOnEmptyVast = None
|
|
72775
|
+
self._SCTEMarkerDuration = None
|
|
72776
|
+
self._SecurityGroupId = None
|
|
72539
72777
|
|
|
72540
72778
|
@property
|
|
72541
72779
|
def AdsUrl(self):
|
|
@@ -72717,6 +72955,50 @@ class SSAIConf(AbstractModel):
|
|
|
72717
72955
|
def MultiRequest(self, MultiRequest):
|
|
72718
72956
|
self._MultiRequest = MultiRequest
|
|
72719
72957
|
|
|
72958
|
+
@property
|
|
72959
|
+
def DashOriginManifestType(self):
|
|
72960
|
+
r"""<p>dash周期类型:SinglePeriod 或 MultiPeriod,默认 MultiPeriod</p>
|
|
72961
|
+
:rtype: str
|
|
72962
|
+
"""
|
|
72963
|
+
return self._DashOriginManifestType
|
|
72964
|
+
|
|
72965
|
+
@DashOriginManifestType.setter
|
|
72966
|
+
def DashOriginManifestType(self, DashOriginManifestType):
|
|
72967
|
+
self._DashOriginManifestType = DashOriginManifestType
|
|
72968
|
+
|
|
72969
|
+
@property
|
|
72970
|
+
def SlateOnEmptyVast(self):
|
|
72971
|
+
r"""<p>Empty VAST时是否播放Slate,默认开启(true)</p>
|
|
72972
|
+
:rtype: bool
|
|
72973
|
+
"""
|
|
72974
|
+
return self._SlateOnEmptyVast
|
|
72975
|
+
|
|
72976
|
+
@SlateOnEmptyVast.setter
|
|
72977
|
+
def SlateOnEmptyVast(self, SlateOnEmptyVast):
|
|
72978
|
+
self._SlateOnEmptyVast = SlateOnEmptyVast
|
|
72979
|
+
|
|
72980
|
+
@property
|
|
72981
|
+
def SCTEMarkerDuration(self):
|
|
72982
|
+
r"""<p>SCTE marker duration,默认180,范围0-3600</p>
|
|
72983
|
+
:rtype: int
|
|
72984
|
+
"""
|
|
72985
|
+
return self._SCTEMarkerDuration
|
|
72986
|
+
|
|
72987
|
+
@SCTEMarkerDuration.setter
|
|
72988
|
+
def SCTEMarkerDuration(self, SCTEMarkerDuration):
|
|
72989
|
+
self._SCTEMarkerDuration = SCTEMarkerDuration
|
|
72990
|
+
|
|
72991
|
+
@property
|
|
72992
|
+
def SecurityGroupId(self):
|
|
72993
|
+
r"""<p>安全组Id</p>
|
|
72994
|
+
:rtype: str
|
|
72995
|
+
"""
|
|
72996
|
+
return self._SecurityGroupId
|
|
72997
|
+
|
|
72998
|
+
@SecurityGroupId.setter
|
|
72999
|
+
def SecurityGroupId(self, SecurityGroupId):
|
|
73000
|
+
self._SecurityGroupId = SecurityGroupId
|
|
73001
|
+
|
|
72720
73002
|
|
|
72721
73003
|
def _deserialize(self, params):
|
|
72722
73004
|
self._AdsUrl = params.get("AdsUrl")
|
|
@@ -72740,6 +73022,10 @@ class SSAIConf(AbstractModel):
|
|
|
72740
73022
|
self._PreRollAdsUrls = params.get("PreRollAdsUrls")
|
|
72741
73023
|
self._PreRollMaxAllowedDuration = params.get("PreRollMaxAllowedDuration")
|
|
72742
73024
|
self._MultiRequest = params.get("MultiRequest")
|
|
73025
|
+
self._DashOriginManifestType = params.get("DashOriginManifestType")
|
|
73026
|
+
self._SlateOnEmptyVast = params.get("SlateOnEmptyVast")
|
|
73027
|
+
self._SCTEMarkerDuration = params.get("SCTEMarkerDuration")
|
|
73028
|
+
self._SecurityGroupId = params.get("SecurityGroupId")
|
|
72743
73029
|
memeber_set = set(params.keys())
|
|
72744
73030
|
for name, value in vars(self).items():
|
|
72745
73031
|
property_name = name[1:]
|
|
@@ -83753,6 +84039,160 @@ class TerrorismOcrReviewTemplateInfoForUpdate(AbstractModel):
|
|
|
83753
84039
|
|
|
83754
84040
|
|
|
83755
84041
|
|
|
84042
|
+
class TextToSpeechAsyncRequest(AbstractModel):
|
|
84043
|
+
r"""TextToSpeechAsync请求参数结构体
|
|
84044
|
+
|
|
84045
|
+
"""
|
|
84046
|
+
|
|
84047
|
+
def __init__(self):
|
|
84048
|
+
r"""
|
|
84049
|
+
:param _Text: <p>语音合成文本</p>
|
|
84050
|
+
:type Text: str
|
|
84051
|
+
:param _VoiceId: <p>音色ID</p>
|
|
84052
|
+
:type VoiceId: str
|
|
84053
|
+
:param _TextLang: <p>文本语言,默认中文</p>
|
|
84054
|
+
:type TextLang: str
|
|
84055
|
+
:param _ExtParam: <p>扩展参数,json字符串</p><p>synExt Object 语音合成扩展参数<br> duration Float 合成音频时长,单位秒,示例:5.2<br> sampleRate Integer 合成音频采样率,默认16000,支持[8000,16000,22050,32000,44100]<br> pitch Integer 音调,默认0原音色输出,取值[-12, 12]</p><p>transExt Object 翻译扩展参数<br> transInfo Object<br> transDst String 目标语言,如en<br> transRequirement String 翻译要求</p>
|
|
84056
|
+
:type ExtParam: str
|
|
84057
|
+
"""
|
|
84058
|
+
self._Text = None
|
|
84059
|
+
self._VoiceId = None
|
|
84060
|
+
self._TextLang = None
|
|
84061
|
+
self._ExtParam = None
|
|
84062
|
+
|
|
84063
|
+
@property
|
|
84064
|
+
def Text(self):
|
|
84065
|
+
r"""<p>语音合成文本</p>
|
|
84066
|
+
:rtype: str
|
|
84067
|
+
"""
|
|
84068
|
+
return self._Text
|
|
84069
|
+
|
|
84070
|
+
@Text.setter
|
|
84071
|
+
def Text(self, Text):
|
|
84072
|
+
self._Text = Text
|
|
84073
|
+
|
|
84074
|
+
@property
|
|
84075
|
+
def VoiceId(self):
|
|
84076
|
+
r"""<p>音色ID</p>
|
|
84077
|
+
:rtype: str
|
|
84078
|
+
"""
|
|
84079
|
+
return self._VoiceId
|
|
84080
|
+
|
|
84081
|
+
@VoiceId.setter
|
|
84082
|
+
def VoiceId(self, VoiceId):
|
|
84083
|
+
self._VoiceId = VoiceId
|
|
84084
|
+
|
|
84085
|
+
@property
|
|
84086
|
+
def TextLang(self):
|
|
84087
|
+
r"""<p>文本语言,默认中文</p>
|
|
84088
|
+
:rtype: str
|
|
84089
|
+
"""
|
|
84090
|
+
return self._TextLang
|
|
84091
|
+
|
|
84092
|
+
@TextLang.setter
|
|
84093
|
+
def TextLang(self, TextLang):
|
|
84094
|
+
self._TextLang = TextLang
|
|
84095
|
+
|
|
84096
|
+
@property
|
|
84097
|
+
def ExtParam(self):
|
|
84098
|
+
r"""<p>扩展参数,json字符串</p><p>synExt Object 语音合成扩展参数<br> duration Float 合成音频时长,单位秒,示例:5.2<br> sampleRate Integer 合成音频采样率,默认16000,支持[8000,16000,22050,32000,44100]<br> pitch Integer 音调,默认0原音色输出,取值[-12, 12]</p><p>transExt Object 翻译扩展参数<br> transInfo Object<br> transDst String 目标语言,如en<br> transRequirement String 翻译要求</p>
|
|
84099
|
+
:rtype: str
|
|
84100
|
+
"""
|
|
84101
|
+
return self._ExtParam
|
|
84102
|
+
|
|
84103
|
+
@ExtParam.setter
|
|
84104
|
+
def ExtParam(self, ExtParam):
|
|
84105
|
+
self._ExtParam = ExtParam
|
|
84106
|
+
|
|
84107
|
+
|
|
84108
|
+
def _deserialize(self, params):
|
|
84109
|
+
self._Text = params.get("Text")
|
|
84110
|
+
self._VoiceId = params.get("VoiceId")
|
|
84111
|
+
self._TextLang = params.get("TextLang")
|
|
84112
|
+
self._ExtParam = params.get("ExtParam")
|
|
84113
|
+
memeber_set = set(params.keys())
|
|
84114
|
+
for name, value in vars(self).items():
|
|
84115
|
+
property_name = name[1:]
|
|
84116
|
+
if property_name in memeber_set:
|
|
84117
|
+
memeber_set.remove(property_name)
|
|
84118
|
+
if len(memeber_set) > 0:
|
|
84119
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
84120
|
+
|
|
84121
|
+
|
|
84122
|
+
|
|
84123
|
+
class TextToSpeechAsyncResponse(AbstractModel):
|
|
84124
|
+
r"""TextToSpeechAsync返回参数结构体
|
|
84125
|
+
|
|
84126
|
+
"""
|
|
84127
|
+
|
|
84128
|
+
def __init__(self):
|
|
84129
|
+
r"""
|
|
84130
|
+
:param _ErrorCode: <p>错误码,成功时返回0</p>
|
|
84131
|
+
:type ErrorCode: int
|
|
84132
|
+
:param _Msg: <p>错误信息,成功时返回success</p>
|
|
84133
|
+
:type Msg: str
|
|
84134
|
+
:param _TaskId: <p>任务ID,使用该ID查询结果</p>
|
|
84135
|
+
:type TaskId: str
|
|
84136
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
84137
|
+
:type RequestId: str
|
|
84138
|
+
"""
|
|
84139
|
+
self._ErrorCode = None
|
|
84140
|
+
self._Msg = None
|
|
84141
|
+
self._TaskId = None
|
|
84142
|
+
self._RequestId = None
|
|
84143
|
+
|
|
84144
|
+
@property
|
|
84145
|
+
def ErrorCode(self):
|
|
84146
|
+
r"""<p>错误码,成功时返回0</p>
|
|
84147
|
+
:rtype: int
|
|
84148
|
+
"""
|
|
84149
|
+
return self._ErrorCode
|
|
84150
|
+
|
|
84151
|
+
@ErrorCode.setter
|
|
84152
|
+
def ErrorCode(self, ErrorCode):
|
|
84153
|
+
self._ErrorCode = ErrorCode
|
|
84154
|
+
|
|
84155
|
+
@property
|
|
84156
|
+
def Msg(self):
|
|
84157
|
+
r"""<p>错误信息,成功时返回success</p>
|
|
84158
|
+
:rtype: str
|
|
84159
|
+
"""
|
|
84160
|
+
return self._Msg
|
|
84161
|
+
|
|
84162
|
+
@Msg.setter
|
|
84163
|
+
def Msg(self, Msg):
|
|
84164
|
+
self._Msg = Msg
|
|
84165
|
+
|
|
84166
|
+
@property
|
|
84167
|
+
def TaskId(self):
|
|
84168
|
+
r"""<p>任务ID,使用该ID查询结果</p>
|
|
84169
|
+
:rtype: str
|
|
84170
|
+
"""
|
|
84171
|
+
return self._TaskId
|
|
84172
|
+
|
|
84173
|
+
@TaskId.setter
|
|
84174
|
+
def TaskId(self, TaskId):
|
|
84175
|
+
self._TaskId = TaskId
|
|
84176
|
+
|
|
84177
|
+
@property
|
|
84178
|
+
def RequestId(self):
|
|
84179
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
84180
|
+
:rtype: str
|
|
84181
|
+
"""
|
|
84182
|
+
return self._RequestId
|
|
84183
|
+
|
|
84184
|
+
@RequestId.setter
|
|
84185
|
+
def RequestId(self, RequestId):
|
|
84186
|
+
self._RequestId = RequestId
|
|
84187
|
+
|
|
84188
|
+
|
|
84189
|
+
def _deserialize(self, params):
|
|
84190
|
+
self._ErrorCode = params.get("ErrorCode")
|
|
84191
|
+
self._Msg = params.get("Msg")
|
|
84192
|
+
self._TaskId = params.get("TaskId")
|
|
84193
|
+
self._RequestId = params.get("RequestId")
|
|
84194
|
+
|
|
84195
|
+
|
|
83756
84196
|
class TextTranslationRequest(AbstractModel):
|
|
83757
84197
|
r"""TextTranslation请求参数结构体
|
|
83758
84198
|
|
|
@@ -3234,6 +3234,29 @@ class MpsClient(AbstractClient):
|
|
|
3234
3234
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3235
3235
|
|
|
3236
3236
|
|
|
3237
|
+
def DescribeTextToSpeechAsyncTask(self, request):
|
|
3238
|
+
r"""查询异步语音合成任务结果
|
|
3239
|
+
|
|
3240
|
+
:param request: Request instance for DescribeTextToSpeechAsyncTask.
|
|
3241
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.DescribeTextToSpeechAsyncTaskRequest`
|
|
3242
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.DescribeTextToSpeechAsyncTaskResponse`
|
|
3243
|
+
|
|
3244
|
+
"""
|
|
3245
|
+
try:
|
|
3246
|
+
params = request._serialize()
|
|
3247
|
+
headers = request.headers
|
|
3248
|
+
body = self.call("DescribeTextToSpeechAsyncTask", params, headers=headers)
|
|
3249
|
+
response = json.loads(body)
|
|
3250
|
+
model = models.DescribeTextToSpeechAsyncTaskResponse()
|
|
3251
|
+
model._deserialize(response["Response"])
|
|
3252
|
+
return model
|
|
3253
|
+
except Exception as e:
|
|
3254
|
+
if isinstance(e, TencentCloudSDKException):
|
|
3255
|
+
raise
|
|
3256
|
+
else:
|
|
3257
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
3258
|
+
|
|
3259
|
+
|
|
3237
3260
|
def DescribeTranscodeTemplates(self, request):
|
|
3238
3261
|
r"""根据转码模板唯一标识,获取转码模板详情列表。返回结果包含符合条件的所有用户自定义模板及[系统预置转码模板](https://cloud.tencent.com/document/product/266/33476#.E9.A2.84.E7.BD.AE.E8.BD.AC.E7.A0.81.E6.A8.A1.E6.9D.BF)。
|
|
3239
3262
|
|
|
@@ -4724,6 +4747,29 @@ class MpsClient(AbstractClient):
|
|
|
4724
4747
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4725
4748
|
|
|
4726
4749
|
|
|
4750
|
+
def TextToSpeechAsync(self, request):
|
|
4751
|
+
r"""异步语音合成接口,支持长文本转语音
|
|
4752
|
+
|
|
4753
|
+
:param request: Request instance for TextToSpeechAsync.
|
|
4754
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.TextToSpeechAsyncRequest`
|
|
4755
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.TextToSpeechAsyncResponse`
|
|
4756
|
+
|
|
4757
|
+
"""
|
|
4758
|
+
try:
|
|
4759
|
+
params = request._serialize()
|
|
4760
|
+
headers = request.headers
|
|
4761
|
+
body = self.call("TextToSpeechAsync", params, headers=headers)
|
|
4762
|
+
response = json.loads(body)
|
|
4763
|
+
model = models.TextToSpeechAsyncResponse()
|
|
4764
|
+
model._deserialize(response["Response"])
|
|
4765
|
+
return model
|
|
4766
|
+
except Exception as e:
|
|
4767
|
+
if isinstance(e, TencentCloudSDKException):
|
|
4768
|
+
raise
|
|
4769
|
+
else:
|
|
4770
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
4771
|
+
|
|
4772
|
+
|
|
4727
4773
|
def TextTranslation(self, request):
|
|
4728
4774
|
r"""文本翻译,使用 翻译字幕(附加语种)计费项,按1100字符(按照 Unicode 码点数 统计,hello 算5个字符,你好 算2个字符)/分钟折算到时长计费
|
|
4729
4775
|
|
|
@@ -2543,6 +2543,24 @@ class MpsClient(AbstractClient):
|
|
|
2543
2543
|
|
|
2544
2544
|
return await self.call_and_deserialize(**kwargs)
|
|
2545
2545
|
|
|
2546
|
+
async def DescribeTextToSpeechAsyncTask(
|
|
2547
|
+
self,
|
|
2548
|
+
request: models.DescribeTextToSpeechAsyncTaskRequest,
|
|
2549
|
+
opts: Dict = None,
|
|
2550
|
+
) -> models.DescribeTextToSpeechAsyncTaskResponse:
|
|
2551
|
+
"""
|
|
2552
|
+
查询异步语音合成任务结果
|
|
2553
|
+
"""
|
|
2554
|
+
|
|
2555
|
+
kwargs = {}
|
|
2556
|
+
kwargs["action"] = "DescribeTextToSpeechAsyncTask"
|
|
2557
|
+
kwargs["params"] = request._serialize()
|
|
2558
|
+
kwargs["resp_cls"] = models.DescribeTextToSpeechAsyncTaskResponse
|
|
2559
|
+
kwargs["headers"] = request.headers
|
|
2560
|
+
kwargs["opts"] = opts or {}
|
|
2561
|
+
|
|
2562
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2563
|
+
|
|
2546
2564
|
async def DescribeTranscodeTemplates(
|
|
2547
2565
|
self,
|
|
2548
2566
|
request: models.DescribeTranscodeTemplatesRequest,
|
|
@@ -3718,6 +3736,24 @@ class MpsClient(AbstractClient):
|
|
|
3718
3736
|
|
|
3719
3737
|
return await self.call_and_deserialize(**kwargs)
|
|
3720
3738
|
|
|
3739
|
+
async def TextToSpeechAsync(
|
|
3740
|
+
self,
|
|
3741
|
+
request: models.TextToSpeechAsyncRequest,
|
|
3742
|
+
opts: Dict = None,
|
|
3743
|
+
) -> models.TextToSpeechAsyncResponse:
|
|
3744
|
+
"""
|
|
3745
|
+
异步语音合成接口,支持长文本转语音
|
|
3746
|
+
"""
|
|
3747
|
+
|
|
3748
|
+
kwargs = {}
|
|
3749
|
+
kwargs["action"] = "TextToSpeechAsync"
|
|
3750
|
+
kwargs["params"] = request._serialize()
|
|
3751
|
+
kwargs["resp_cls"] = models.TextToSpeechAsyncResponse
|
|
3752
|
+
kwargs["headers"] = request.headers
|
|
3753
|
+
kwargs["opts"] = opts or {}
|
|
3754
|
+
|
|
3755
|
+
return await self.call_and_deserialize(**kwargs)
|
|
3756
|
+
|
|
3721
3757
|
async def TextTranslation(
|
|
3722
3758
|
self,
|
|
3723
3759
|
request: models.TextTranslationRequest,
|
|
@@ -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.85
|
|
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.85
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.85
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.81
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|