tencentcloud-sdk-python-mps 3.1.102__tar.gz → 3.1.106__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/setup.py +1 -1
  3. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/tencentcloud/mps/v20190612/models.py +284 -0
  5. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/tencentcloud/mps/v20190612/mps_client.py +23 -0
  6. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/tencentcloud/mps/v20190612/mps_client_async.py +18 -0
  7. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_mps-3.1.106/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_mps-3.1.102/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/README.rst +0 -0
  11. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/tencentcloud/mps/__init__.py +0 -0
  13. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/tencentcloud/mps/v20190612/__init__.py +0 -0
  14. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_mps-3.1.102 → tencentcloud_sdk_python_mps-3.1.106}/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.102
3
+ Version: 3.1.106
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.102
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.106
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.102,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.106,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Mps SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.102'
17
+ __version__ = '3.1.106'
@@ -86772,6 +86772,149 @@ class UpdateSmartEraseWatermarkConfig(AbstractModel):
86772
86772
 
86773
86773
 
86774
86774
 
86775
+ class UpdateVoiceRequest(AbstractModel):
86776
+ r"""UpdateVoice请求参数结构体
86777
+
86778
+ """
86779
+
86780
+ def __init__(self):
86781
+ r"""
86782
+ :param _VoiceId: <p>音色Id</p>
86783
+ :type VoiceId: str
86784
+ :param _VoiceFields: <p>更新音色字段</p>
86785
+ :type VoiceFields: :class:`tencentcloud.mps.v20190612.models.VoiceUpdateFields`
86786
+ :param _ExtParam: <p>扩展参数,json字符串</p>
86787
+ :type ExtParam: str
86788
+ """
86789
+ self._VoiceId = None
86790
+ self._VoiceFields = None
86791
+ self._ExtParam = None
86792
+
86793
+ @property
86794
+ def VoiceId(self):
86795
+ r"""<p>音色Id</p>
86796
+ :rtype: str
86797
+ """
86798
+ return self._VoiceId
86799
+
86800
+ @VoiceId.setter
86801
+ def VoiceId(self, VoiceId):
86802
+ self._VoiceId = VoiceId
86803
+
86804
+ @property
86805
+ def VoiceFields(self):
86806
+ r"""<p>更新音色字段</p>
86807
+ :rtype: :class:`tencentcloud.mps.v20190612.models.VoiceUpdateFields`
86808
+ """
86809
+ return self._VoiceFields
86810
+
86811
+ @VoiceFields.setter
86812
+ def VoiceFields(self, VoiceFields):
86813
+ self._VoiceFields = VoiceFields
86814
+
86815
+ @property
86816
+ def ExtParam(self):
86817
+ r"""<p>扩展参数,json字符串</p>
86818
+ :rtype: str
86819
+ """
86820
+ return self._ExtParam
86821
+
86822
+ @ExtParam.setter
86823
+ def ExtParam(self, ExtParam):
86824
+ self._ExtParam = ExtParam
86825
+
86826
+
86827
+ def _deserialize(self, params):
86828
+ self._VoiceId = params.get("VoiceId")
86829
+ if params.get("VoiceFields") is not None:
86830
+ self._VoiceFields = VoiceUpdateFields()
86831
+ self._VoiceFields._deserialize(params.get("VoiceFields"))
86832
+ self._ExtParam = params.get("ExtParam")
86833
+ memeber_set = set(params.keys())
86834
+ for name, value in vars(self).items():
86835
+ property_name = name[1:]
86836
+ if property_name in memeber_set:
86837
+ memeber_set.remove(property_name)
86838
+ if len(memeber_set) > 0:
86839
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
86840
+
86841
+
86842
+
86843
+ class UpdateVoiceResponse(AbstractModel):
86844
+ r"""UpdateVoice返回参数结构体
86845
+
86846
+ """
86847
+
86848
+ def __init__(self):
86849
+ r"""
86850
+ :param _ErrorCode: <p>错误码,正确时返回0</p>
86851
+ :type ErrorCode: int
86852
+ :param _Msg: <p>错误信息,正确时返回success</p>
86853
+ :type Msg: str
86854
+ :param _Voice: <p>更新后的音色信息</p>
86855
+ :type Voice: :class:`tencentcloud.mps.v20190612.models.VoiceInfo`
86856
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
86857
+ :type RequestId: str
86858
+ """
86859
+ self._ErrorCode = None
86860
+ self._Msg = None
86861
+ self._Voice = None
86862
+ self._RequestId = None
86863
+
86864
+ @property
86865
+ def ErrorCode(self):
86866
+ r"""<p>错误码,正确时返回0</p>
86867
+ :rtype: int
86868
+ """
86869
+ return self._ErrorCode
86870
+
86871
+ @ErrorCode.setter
86872
+ def ErrorCode(self, ErrorCode):
86873
+ self._ErrorCode = ErrorCode
86874
+
86875
+ @property
86876
+ def Msg(self):
86877
+ r"""<p>错误信息,正确时返回success</p>
86878
+ :rtype: str
86879
+ """
86880
+ return self._Msg
86881
+
86882
+ @Msg.setter
86883
+ def Msg(self, Msg):
86884
+ self._Msg = Msg
86885
+
86886
+ @property
86887
+ def Voice(self):
86888
+ r"""<p>更新后的音色信息</p>
86889
+ :rtype: :class:`tencentcloud.mps.v20190612.models.VoiceInfo`
86890
+ """
86891
+ return self._Voice
86892
+
86893
+ @Voice.setter
86894
+ def Voice(self, Voice):
86895
+ self._Voice = Voice
86896
+
86897
+ @property
86898
+ def RequestId(self):
86899
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
86900
+ :rtype: str
86901
+ """
86902
+ return self._RequestId
86903
+
86904
+ @RequestId.setter
86905
+ def RequestId(self, RequestId):
86906
+ self._RequestId = RequestId
86907
+
86908
+
86909
+ def _deserialize(self, params):
86910
+ self._ErrorCode = params.get("ErrorCode")
86911
+ self._Msg = params.get("Msg")
86912
+ if params.get("Voice") is not None:
86913
+ self._Voice = VoiceInfo()
86914
+ self._Voice._deserialize(params.get("Voice"))
86915
+ self._RequestId = params.get("RequestId")
86916
+
86917
+
86775
86918
  class UrlInputInfo(AbstractModel):
86776
86919
  r"""媒体处理 URL 对象信息。
86777
86920
 
@@ -90217,6 +90360,147 @@ class VoiceProfile(AbstractModel):
90217
90360
 
90218
90361
 
90219
90362
 
90363
+ class VoiceUpdateFields(AbstractModel):
90364
+ r"""音色更新字段
90365
+
90366
+ """
90367
+
90368
+ def __init__(self):
90369
+ r"""
90370
+ :param _Name: <p>音色名</p>
90371
+ :type Name: str
90372
+ :param _Description: <p>音色描述</p>
90373
+ :type Description: str
90374
+ :param _Gender: <p>性别</p><p>枚举值:</p><ul><li>male: 男</li><li>female: 女</li><li>unknown: 未知</li></ul>
90375
+ :type Gender: str
90376
+ :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>
90377
+ :type Age: str
90378
+ :param _Languages: <p>语言</p>
90379
+ :type Languages: list of str
90380
+ :param _Labels: <p>标签</p>
90381
+ :type Labels: list of str
90382
+ :param _Scenes: <p>场景</p>
90383
+ :type Scenes: list of str
90384
+ :param _AudioUrl: <p>试听音频</p>
90385
+ :type AudioUrl: str
90386
+ """
90387
+ self._Name = None
90388
+ self._Description = None
90389
+ self._Gender = None
90390
+ self._Age = None
90391
+ self._Languages = None
90392
+ self._Labels = None
90393
+ self._Scenes = None
90394
+ self._AudioUrl = None
90395
+
90396
+ @property
90397
+ def Name(self):
90398
+ r"""<p>音色名</p>
90399
+ :rtype: str
90400
+ """
90401
+ return self._Name
90402
+
90403
+ @Name.setter
90404
+ def Name(self, Name):
90405
+ self._Name = Name
90406
+
90407
+ @property
90408
+ def Description(self):
90409
+ r"""<p>音色描述</p>
90410
+ :rtype: str
90411
+ """
90412
+ return self._Description
90413
+
90414
+ @Description.setter
90415
+ def Description(self, Description):
90416
+ self._Description = Description
90417
+
90418
+ @property
90419
+ def Gender(self):
90420
+ r"""<p>性别</p><p>枚举值:</p><ul><li>male: 男</li><li>female: 女</li><li>unknown: 未知</li></ul>
90421
+ :rtype: str
90422
+ """
90423
+ return self._Gender
90424
+
90425
+ @Gender.setter
90426
+ def Gender(self, Gender):
90427
+ self._Gender = Gender
90428
+
90429
+ @property
90430
+ def Age(self):
90431
+ r"""<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>
90432
+ :rtype: str
90433
+ """
90434
+ return self._Age
90435
+
90436
+ @Age.setter
90437
+ def Age(self, Age):
90438
+ self._Age = Age
90439
+
90440
+ @property
90441
+ def Languages(self):
90442
+ r"""<p>语言</p>
90443
+ :rtype: list of str
90444
+ """
90445
+ return self._Languages
90446
+
90447
+ @Languages.setter
90448
+ def Languages(self, Languages):
90449
+ self._Languages = Languages
90450
+
90451
+ @property
90452
+ def Labels(self):
90453
+ r"""<p>标签</p>
90454
+ :rtype: list of str
90455
+ """
90456
+ return self._Labels
90457
+
90458
+ @Labels.setter
90459
+ def Labels(self, Labels):
90460
+ self._Labels = Labels
90461
+
90462
+ @property
90463
+ def Scenes(self):
90464
+ r"""<p>场景</p>
90465
+ :rtype: list of str
90466
+ """
90467
+ return self._Scenes
90468
+
90469
+ @Scenes.setter
90470
+ def Scenes(self, Scenes):
90471
+ self._Scenes = Scenes
90472
+
90473
+ @property
90474
+ def AudioUrl(self):
90475
+ r"""<p>试听音频</p>
90476
+ :rtype: str
90477
+ """
90478
+ return self._AudioUrl
90479
+
90480
+ @AudioUrl.setter
90481
+ def AudioUrl(self, AudioUrl):
90482
+ self._AudioUrl = AudioUrl
90483
+
90484
+
90485
+ def _deserialize(self, params):
90486
+ self._Name = params.get("Name")
90487
+ self._Description = params.get("Description")
90488
+ self._Gender = params.get("Gender")
90489
+ self._Age = params.get("Age")
90490
+ self._Languages = params.get("Languages")
90491
+ self._Labels = params.get("Labels")
90492
+ self._Scenes = params.get("Scenes")
90493
+ self._AudioUrl = params.get("AudioUrl")
90494
+ memeber_set = set(params.keys())
90495
+ for name, value in vars(self).items():
90496
+ property_name = name[1:]
90497
+ if property_name in memeber_set:
90498
+ memeber_set.remove(property_name)
90499
+ if len(memeber_set) > 0:
90500
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
90501
+
90502
+
90503
+
90220
90504
  class VolumeBalanceConfig(AbstractModel):
90221
90505
  r"""音量均衡配置
90222
90506
 
@@ -4862,6 +4862,29 @@ class MpsClient(AbstractClient):
4862
4862
  raise TencentCloudSDKException(type(e).__name__, str(e))
4863
4863
 
4864
4864
 
4865
+ def UpdateVoice(self, request):
4866
+ r"""更新音色信息
4867
+
4868
+ :param request: Request instance for UpdateVoice.
4869
+ :type request: :class:`tencentcloud.mps.v20190612.models.UpdateVoiceRequest`
4870
+ :rtype: :class:`tencentcloud.mps.v20190612.models.UpdateVoiceResponse`
4871
+
4872
+ """
4873
+ try:
4874
+ params = request._serialize()
4875
+ headers = request.headers
4876
+ body = self.call("UpdateVoice", params, headers=headers)
4877
+ response = json.loads(body)
4878
+ model = models.UpdateVoiceResponse()
4879
+ model._deserialize(response["Response"])
4880
+ return model
4881
+ except Exception as e:
4882
+ if isinstance(e, TencentCloudSDKException):
4883
+ raise
4884
+ else:
4885
+ raise TencentCloudSDKException(type(e).__name__, str(e))
4886
+
4887
+
4865
4888
  def WithdrawsWatermark(self, request):
4866
4889
  r"""提取视频中的盲水印。
4867
4890
 
@@ -3826,6 +3826,24 @@ class MpsClient(AbstractClient):
3826
3826
 
3827
3827
  return await self.call_and_deserialize(**kwargs)
3828
3828
 
3829
+ async def UpdateVoice(
3830
+ self,
3831
+ request: models.UpdateVoiceRequest,
3832
+ opts: Dict = None,
3833
+ ) -> models.UpdateVoiceResponse:
3834
+ """
3835
+ 更新音色信息
3836
+ """
3837
+
3838
+ kwargs = {}
3839
+ kwargs["action"] = "UpdateVoice"
3840
+ kwargs["params"] = request._serialize()
3841
+ kwargs["resp_cls"] = models.UpdateVoiceResponse
3842
+ kwargs["headers"] = request.headers
3843
+ kwargs["opts"] = opts or {}
3844
+
3845
+ return await self.call_and_deserialize(**kwargs)
3846
+
3829
3847
  async def WithdrawsWatermark(
3830
3848
  self,
3831
3849
  request: models.WithdrawsWatermarkRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-mps
3
- Version: 3.1.102
3
+ Version: 3.1.106
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.102
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.106
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.106
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.102