tencentcloud-sdk-python-mps 3.1.99__tar.gz → 3.1.101__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.99 → tencentcloud_sdk_python_mps-3.1.101}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/setup.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/mps/v20190612/models.py +126 -2
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/mps/v20190612/mps_client.py +23 -0
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/mps/v20190612/mps_client_async.py +18 -0
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_mps-3.1.101/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_mps-3.1.99/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/README.rst +0 -0
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/setup.cfg +0 -0
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/mps/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/mps/v20190612/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.99 → tencentcloud_sdk_python_mps-3.1.101}/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.101
|
|
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.101
|
|
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.101,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Mps SDK for Python',
|
|
@@ -29571,6 +29571,115 @@ class DeleteTranscodeTemplateResponse(AbstractModel):
|
|
|
29571
29571
|
self._RequestId = params.get("RequestId")
|
|
29572
29572
|
|
|
29573
29573
|
|
|
29574
|
+
class DeleteVoiceRequest(AbstractModel):
|
|
29575
|
+
r"""DeleteVoice请求参数结构体
|
|
29576
|
+
|
|
29577
|
+
"""
|
|
29578
|
+
|
|
29579
|
+
def __init__(self):
|
|
29580
|
+
r"""
|
|
29581
|
+
:param _VoiceId: <p>音色Id</p>
|
|
29582
|
+
:type VoiceId: str
|
|
29583
|
+
:param _ExtParam: <p>扩展参数,json字符串</p>
|
|
29584
|
+
:type ExtParam: str
|
|
29585
|
+
"""
|
|
29586
|
+
self._VoiceId = None
|
|
29587
|
+
self._ExtParam = None
|
|
29588
|
+
|
|
29589
|
+
@property
|
|
29590
|
+
def VoiceId(self):
|
|
29591
|
+
r"""<p>音色Id</p>
|
|
29592
|
+
:rtype: str
|
|
29593
|
+
"""
|
|
29594
|
+
return self._VoiceId
|
|
29595
|
+
|
|
29596
|
+
@VoiceId.setter
|
|
29597
|
+
def VoiceId(self, VoiceId):
|
|
29598
|
+
self._VoiceId = VoiceId
|
|
29599
|
+
|
|
29600
|
+
@property
|
|
29601
|
+
def ExtParam(self):
|
|
29602
|
+
r"""<p>扩展参数,json字符串</p>
|
|
29603
|
+
:rtype: str
|
|
29604
|
+
"""
|
|
29605
|
+
return self._ExtParam
|
|
29606
|
+
|
|
29607
|
+
@ExtParam.setter
|
|
29608
|
+
def ExtParam(self, ExtParam):
|
|
29609
|
+
self._ExtParam = ExtParam
|
|
29610
|
+
|
|
29611
|
+
|
|
29612
|
+
def _deserialize(self, params):
|
|
29613
|
+
self._VoiceId = params.get("VoiceId")
|
|
29614
|
+
self._ExtParam = params.get("ExtParam")
|
|
29615
|
+
memeber_set = set(params.keys())
|
|
29616
|
+
for name, value in vars(self).items():
|
|
29617
|
+
property_name = name[1:]
|
|
29618
|
+
if property_name in memeber_set:
|
|
29619
|
+
memeber_set.remove(property_name)
|
|
29620
|
+
if len(memeber_set) > 0:
|
|
29621
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
29622
|
+
|
|
29623
|
+
|
|
29624
|
+
|
|
29625
|
+
class DeleteVoiceResponse(AbstractModel):
|
|
29626
|
+
r"""DeleteVoice返回参数结构体
|
|
29627
|
+
|
|
29628
|
+
"""
|
|
29629
|
+
|
|
29630
|
+
def __init__(self):
|
|
29631
|
+
r"""
|
|
29632
|
+
:param _ErrorCode: <p>错误码,成功时返回0</p>
|
|
29633
|
+
:type ErrorCode: int
|
|
29634
|
+
:param _Msg: <p>错误信息,成功时返回success</p>
|
|
29635
|
+
:type Msg: str
|
|
29636
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
29637
|
+
:type RequestId: str
|
|
29638
|
+
"""
|
|
29639
|
+
self._ErrorCode = None
|
|
29640
|
+
self._Msg = None
|
|
29641
|
+
self._RequestId = None
|
|
29642
|
+
|
|
29643
|
+
@property
|
|
29644
|
+
def ErrorCode(self):
|
|
29645
|
+
r"""<p>错误码,成功时返回0</p>
|
|
29646
|
+
:rtype: int
|
|
29647
|
+
"""
|
|
29648
|
+
return self._ErrorCode
|
|
29649
|
+
|
|
29650
|
+
@ErrorCode.setter
|
|
29651
|
+
def ErrorCode(self, ErrorCode):
|
|
29652
|
+
self._ErrorCode = ErrorCode
|
|
29653
|
+
|
|
29654
|
+
@property
|
|
29655
|
+
def Msg(self):
|
|
29656
|
+
r"""<p>错误信息,成功时返回success</p>
|
|
29657
|
+
:rtype: str
|
|
29658
|
+
"""
|
|
29659
|
+
return self._Msg
|
|
29660
|
+
|
|
29661
|
+
@Msg.setter
|
|
29662
|
+
def Msg(self, Msg):
|
|
29663
|
+
self._Msg = Msg
|
|
29664
|
+
|
|
29665
|
+
@property
|
|
29666
|
+
def RequestId(self):
|
|
29667
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
29668
|
+
:rtype: str
|
|
29669
|
+
"""
|
|
29670
|
+
return self._RequestId
|
|
29671
|
+
|
|
29672
|
+
@RequestId.setter
|
|
29673
|
+
def RequestId(self, RequestId):
|
|
29674
|
+
self._RequestId = RequestId
|
|
29675
|
+
|
|
29676
|
+
|
|
29677
|
+
def _deserialize(self, params):
|
|
29678
|
+
self._ErrorCode = params.get("ErrorCode")
|
|
29679
|
+
self._Msg = params.get("Msg")
|
|
29680
|
+
self._RequestId = params.get("RequestId")
|
|
29681
|
+
|
|
29682
|
+
|
|
29574
29683
|
class DeleteWatermarkTemplateRequest(AbstractModel):
|
|
29575
29684
|
r"""DeleteWatermarkTemplate请求参数结构体
|
|
29576
29685
|
|
|
@@ -82647,7 +82756,7 @@ class SyncDubbingRequest(AbstractModel):
|
|
|
82647
82756
|
:type Output: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
|
|
82648
82757
|
:param _ResourceId: <p>资源ID,需要保证对应资源是开启状态。默认为账号主资源ID。</p>
|
|
82649
82758
|
:type ResourceId: str
|
|
82650
|
-
:param _ExtParam: <p>扩展参数,json字符串</p><p>synExt Object 语音合成扩展参数<br>
|
|
82759
|
+
:param _ExtParam: <p>扩展参数,json字符串</p><p><strong>synExt</strong> Object 语音合成扩展参数<br> <strong>duration</strong> Float 合成音频时长(单位秒),默认不控制时长。示例:5.2<br> <strong>sampleRate</strong> Integer 合成音频采样率,默认16000,支持[8000,16000,22050,24000,32000,44100]<br> <strong>pitch</strong> Integer 音调,默认0原音色输出,取值[-12, 12]<br><strong>cloneExt</strong> Object 音色克隆扩展参数<br> <strong>timeRanges</strong> Float[][] 指定克隆音频时间范围(单位秒),默认取音频前20s。示例:[[5.2, 10], [45, 59.8]]</p>
|
|
82651
82760
|
:type ExtParam: str
|
|
82652
82761
|
"""
|
|
82653
82762
|
self._Text = None
|
|
@@ -82762,7 +82871,7 @@ class SyncDubbingRequest(AbstractModel):
|
|
|
82762
82871
|
|
|
82763
82872
|
@property
|
|
82764
82873
|
def ExtParam(self):
|
|
82765
|
-
r"""<p>扩展参数,json字符串</p><p>synExt Object 语音合成扩展参数<br>
|
|
82874
|
+
r"""<p>扩展参数,json字符串</p><p><strong>synExt</strong> Object 语音合成扩展参数<br> <strong>duration</strong> Float 合成音频时长(单位秒),默认不控制时长。示例:5.2<br> <strong>sampleRate</strong> Integer 合成音频采样率,默认16000,支持[8000,16000,22050,24000,32000,44100]<br> <strong>pitch</strong> Integer 音调,默认0原音色输出,取值[-12, 12]<br><strong>cloneExt</strong> Object 音色克隆扩展参数<br> <strong>timeRanges</strong> Float[][] 指定克隆音频时间范围(单位秒),默认取音频前20s。示例:[[5.2, 10], [45, 59.8]]</p>
|
|
82766
82875
|
:rtype: str
|
|
82767
82876
|
"""
|
|
82768
82877
|
return self._ExtParam
|
|
@@ -90011,6 +90120,8 @@ class VoiceProfile(AbstractModel):
|
|
|
90011
90120
|
:type Gender: str
|
|
90012
90121
|
:param _Age: <p>年龄</p><p>枚举值:</p><ul><li>child: 儿童</li><li>teenager: 少年</li><li>youth: 青年</li><li>middle_aged: 中年</li><li>senior: 老年</li><li>unknown: 未知</li></ul>
|
|
90013
90122
|
:type Age: str
|
|
90123
|
+
:param _Languages: <p>语言,当前支持:<br>zh 中文 (Chinese)<br>en 英语 (English)<br>ja 日语 (Japanese)<br>de 德语 (German)<br>fr 法语 (French)<br>ko 韩语 (Korean)<br>ru 俄语 (Russian)<br>uk 乌克兰语 (Ukrainian)<br>pt 葡萄牙语 (Portuguese)<br>it 意大利语 (Italian)<br>es 西班牙语 (Spanish)<br>id 印度尼西亚语 (Indonesian)<br>nl 荷兰语 (Dutch)<br>tr 土耳其语 (Turkish)<br>fil 菲律宾语 (Filipino)<br>ms 马来语 (Malay)<br>el 希腊语 (Greek)<br>fi 芬兰语 (Finnish)<br>hr 克罗地亚语 (Croatian)<br>sk 斯洛伐克语 (Slovak)<br>pl 波兰语 (Polish)<br>sv 瑞典语 (Swedish)<br>hi 印地语 (Hindi)<br>bg 保加利亚语 (Bulgarian)<br>ro 罗马尼亚语 (Romanian)<br>ar 阿拉伯语 (Arabic)<br>cs 捷克语 (Czech)<br>da 丹麦语 (Danish)<br>ta 泰米尔语 (Tamil)<br>hun 匈牙利语(Hungarian)<br>vi 越南语(Vietnamese)<br>no 挪威语(Norwegian)<br>yue 粤语(Cantonese)<br>th 泰语(Thai)<br>he 希伯来语(Hebrew)<br>ca 加泰罗尼亚语(Catalan)<br>nn 尼诺斯克语(Nynorsk)<br>af 阿非利卡语(Afrikaans)<br>fa 波斯语(Persian)<br>sl 斯洛文尼亚语(Slovenian)</p>
|
|
90124
|
+
:type Languages: list of str
|
|
90014
90125
|
:param _Labels: <p>标签</p>
|
|
90015
90126
|
:type Labels: list of str
|
|
90016
90127
|
:param _Scenes: <p>使用场景</p>
|
|
@@ -90020,6 +90131,7 @@ class VoiceProfile(AbstractModel):
|
|
|
90020
90131
|
self._Description = None
|
|
90021
90132
|
self._Gender = None
|
|
90022
90133
|
self._Age = None
|
|
90134
|
+
self._Languages = None
|
|
90023
90135
|
self._Labels = None
|
|
90024
90136
|
self._Scenes = None
|
|
90025
90137
|
|
|
@@ -90067,6 +90179,17 @@ class VoiceProfile(AbstractModel):
|
|
|
90067
90179
|
def Age(self, Age):
|
|
90068
90180
|
self._Age = Age
|
|
90069
90181
|
|
|
90182
|
+
@property
|
|
90183
|
+
def Languages(self):
|
|
90184
|
+
r"""<p>语言,当前支持:<br>zh 中文 (Chinese)<br>en 英语 (English)<br>ja 日语 (Japanese)<br>de 德语 (German)<br>fr 法语 (French)<br>ko 韩语 (Korean)<br>ru 俄语 (Russian)<br>uk 乌克兰语 (Ukrainian)<br>pt 葡萄牙语 (Portuguese)<br>it 意大利语 (Italian)<br>es 西班牙语 (Spanish)<br>id 印度尼西亚语 (Indonesian)<br>nl 荷兰语 (Dutch)<br>tr 土耳其语 (Turkish)<br>fil 菲律宾语 (Filipino)<br>ms 马来语 (Malay)<br>el 希腊语 (Greek)<br>fi 芬兰语 (Finnish)<br>hr 克罗地亚语 (Croatian)<br>sk 斯洛伐克语 (Slovak)<br>pl 波兰语 (Polish)<br>sv 瑞典语 (Swedish)<br>hi 印地语 (Hindi)<br>bg 保加利亚语 (Bulgarian)<br>ro 罗马尼亚语 (Romanian)<br>ar 阿拉伯语 (Arabic)<br>cs 捷克语 (Czech)<br>da 丹麦语 (Danish)<br>ta 泰米尔语 (Tamil)<br>hun 匈牙利语(Hungarian)<br>vi 越南语(Vietnamese)<br>no 挪威语(Norwegian)<br>yue 粤语(Cantonese)<br>th 泰语(Thai)<br>he 希伯来语(Hebrew)<br>ca 加泰罗尼亚语(Catalan)<br>nn 尼诺斯克语(Nynorsk)<br>af 阿非利卡语(Afrikaans)<br>fa 波斯语(Persian)<br>sl 斯洛文尼亚语(Slovenian)</p>
|
|
90185
|
+
:rtype: list of str
|
|
90186
|
+
"""
|
|
90187
|
+
return self._Languages
|
|
90188
|
+
|
|
90189
|
+
@Languages.setter
|
|
90190
|
+
def Languages(self, Languages):
|
|
90191
|
+
self._Languages = Languages
|
|
90192
|
+
|
|
90070
90193
|
@property
|
|
90071
90194
|
def Labels(self):
|
|
90072
90195
|
r"""<p>标签</p>
|
|
@@ -90095,6 +90218,7 @@ class VoiceProfile(AbstractModel):
|
|
|
90095
90218
|
self._Description = params.get("Description")
|
|
90096
90219
|
self._Gender = params.get("Gender")
|
|
90097
90220
|
self._Age = params.get("Age")
|
|
90221
|
+
self._Languages = params.get("Languages")
|
|
90098
90222
|
self._Labels = params.get("Labels")
|
|
90099
90223
|
self._Scenes = params.get("Scenes")
|
|
90100
90224
|
memeber_set = set(params.keys())
|
|
@@ -1806,6 +1806,29 @@ class MpsClient(AbstractClient):
|
|
|
1806
1806
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1807
1807
|
|
|
1808
1808
|
|
|
1809
|
+
def DeleteVoice(self, request):
|
|
1810
|
+
r"""删除音色(通过音色克隆或设计创建的)。
|
|
1811
|
+
|
|
1812
|
+
:param request: Request instance for DeleteVoice.
|
|
1813
|
+
:type request: :class:`tencentcloud.mps.v20190612.models.DeleteVoiceRequest`
|
|
1814
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.DeleteVoiceResponse`
|
|
1815
|
+
|
|
1816
|
+
"""
|
|
1817
|
+
try:
|
|
1818
|
+
params = request._serialize()
|
|
1819
|
+
headers = request.headers
|
|
1820
|
+
body = self.call("DeleteVoice", params, headers=headers)
|
|
1821
|
+
response = json.loads(body)
|
|
1822
|
+
model = models.DeleteVoiceResponse()
|
|
1823
|
+
model._deserialize(response["Response"])
|
|
1824
|
+
return model
|
|
1825
|
+
except Exception as e:
|
|
1826
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1827
|
+
raise
|
|
1828
|
+
else:
|
|
1829
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1830
|
+
|
|
1831
|
+
|
|
1809
1832
|
def DeleteWatermarkTemplate(self, request):
|
|
1810
1833
|
r"""删除用户自定义水印模板。
|
|
1811
1834
|
|
|
@@ -1425,6 +1425,24 @@ class MpsClient(AbstractClient):
|
|
|
1425
1425
|
|
|
1426
1426
|
return await self.call_and_deserialize(**kwargs)
|
|
1427
1427
|
|
|
1428
|
+
async def DeleteVoice(
|
|
1429
|
+
self,
|
|
1430
|
+
request: models.DeleteVoiceRequest,
|
|
1431
|
+
opts: Dict = None,
|
|
1432
|
+
) -> models.DeleteVoiceResponse:
|
|
1433
|
+
"""
|
|
1434
|
+
删除音色(通过音色克隆或设计创建的)。
|
|
1435
|
+
"""
|
|
1436
|
+
|
|
1437
|
+
kwargs = {}
|
|
1438
|
+
kwargs["action"] = "DeleteVoice"
|
|
1439
|
+
kwargs["params"] = request._serialize()
|
|
1440
|
+
kwargs["resp_cls"] = models.DeleteVoiceResponse
|
|
1441
|
+
kwargs["headers"] = request.headers
|
|
1442
|
+
kwargs["opts"] = opts or {}
|
|
1443
|
+
|
|
1444
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1445
|
+
|
|
1428
1446
|
async def DeleteWatermarkTemplate(
|
|
1429
1447
|
self,
|
|
1430
1448
|
request: models.DeleteWatermarkTemplateRequest,
|
|
@@ -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.101
|
|
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.101
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.101
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.99
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|