tencentcloud-sdk-python-mps 3.1.100__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.100 → tencentcloud_sdk_python_mps-3.1.101}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_mps-3.1.100 → tencentcloud_sdk_python_mps-3.1.101}/setup.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.100 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.100 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/mps/v20190612/models.py +111 -2
- {tencentcloud_sdk_python_mps-3.1.100 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/mps/v20190612/mps_client.py +23 -0
- {tencentcloud_sdk_python_mps-3.1.100 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/mps/v20190612/mps_client_async.py +18 -0
- {tencentcloud_sdk_python_mps-3.1.100 → 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.100/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_mps-3.1.100 → tencentcloud_sdk_python_mps-3.1.101}/README.rst +0 -0
- {tencentcloud_sdk_python_mps-3.1.100 → tencentcloud_sdk_python_mps-3.1.101}/setup.cfg +0 -0
- {tencentcloud_sdk_python_mps-3.1.100 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/mps/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.100 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/mps/v20190612/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.100 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.100 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.100 → tencentcloud_sdk_python_mps-3.1.101}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.100 → 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
|
|
@@ -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.100
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|