tencentcloud-sdk-python-mps 3.1.165__tar.gz → 3.1.166__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.165 → tencentcloud_sdk_python_mps-3.1.166}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/setup.py +1 -1
  3. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/tencentcloud/mps/v20190612/models.py +186 -0
  5. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/tencentcloud/mps/v20190612/mps_client.py +23 -0
  6. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/tencentcloud/mps/v20190612/mps_client_async.py +18 -0
  7. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_mps-3.1.166/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_mps-3.1.165/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/README.rst +0 -0
  11. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/tencentcloud/mps/__init__.py +0 -0
  13. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/tencentcloud/mps/v20190612/__init__.py +0 -0
  14. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_mps-3.1.165 → tencentcloud_sdk_python_mps-3.1.166}/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.165
3
+ Version: 3.1.166
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.165
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.166
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.165,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.166,<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.165'
17
+ __version__ = '3.1.166'
@@ -17640,6 +17640,192 @@ class BlindWatermarkTemplate(AbstractModel):
17640
17640
 
17641
17641
 
17642
17642
 
17643
+ class ChangeVoiceRequest(AbstractModel):
17644
+ r"""ChangeVoice请求参数结构体
17645
+
17646
+ """
17647
+
17648
+ def __init__(self):
17649
+ r"""
17650
+ :param _AudioData: <p>待转换音频base64编码</p>
17651
+ :type AudioData: str
17652
+ :param _AudioUrl: <p>待转换音频Url,AudioData为空时有效</p>
17653
+ :type AudioUrl: str
17654
+ :param _VoiceId: <p>音色ID</p>
17655
+ :type VoiceId: str
17656
+ :param _Output: <p>输出相关参数</p>
17657
+ :type Output: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
17658
+ :param _ExtParam: <p>扩展参数,json字符串</p>
17659
+ :type ExtParam: str
17660
+ """
17661
+ self._AudioData = None
17662
+ self._AudioUrl = None
17663
+ self._VoiceId = None
17664
+ self._Output = None
17665
+ self._ExtParam = None
17666
+
17667
+ @property
17668
+ def AudioData(self):
17669
+ r"""<p>待转换音频base64编码</p>
17670
+ :rtype: str
17671
+ """
17672
+ return self._AudioData
17673
+
17674
+ @AudioData.setter
17675
+ def AudioData(self, AudioData):
17676
+ self._AudioData = AudioData
17677
+
17678
+ @property
17679
+ def AudioUrl(self):
17680
+ r"""<p>待转换音频Url,AudioData为空时有效</p>
17681
+ :rtype: str
17682
+ """
17683
+ return self._AudioUrl
17684
+
17685
+ @AudioUrl.setter
17686
+ def AudioUrl(self, AudioUrl):
17687
+ self._AudioUrl = AudioUrl
17688
+
17689
+ @property
17690
+ def VoiceId(self):
17691
+ r"""<p>音色ID</p>
17692
+ :rtype: str
17693
+ """
17694
+ return self._VoiceId
17695
+
17696
+ @VoiceId.setter
17697
+ def VoiceId(self, VoiceId):
17698
+ self._VoiceId = VoiceId
17699
+
17700
+ @property
17701
+ def Output(self):
17702
+ r"""<p>输出相关参数</p>
17703
+ :rtype: :class:`tencentcloud.mps.v20190612.models.SyncDubbingOutputOption`
17704
+ """
17705
+ return self._Output
17706
+
17707
+ @Output.setter
17708
+ def Output(self, Output):
17709
+ self._Output = Output
17710
+
17711
+ @property
17712
+ def ExtParam(self):
17713
+ r"""<p>扩展参数,json字符串</p>
17714
+ :rtype: str
17715
+ """
17716
+ return self._ExtParam
17717
+
17718
+ @ExtParam.setter
17719
+ def ExtParam(self, ExtParam):
17720
+ self._ExtParam = ExtParam
17721
+
17722
+
17723
+ def _deserialize(self, params):
17724
+ self._AudioData = params.get("AudioData")
17725
+ self._AudioUrl = params.get("AudioUrl")
17726
+ self._VoiceId = params.get("VoiceId")
17727
+ if params.get("Output") is not None:
17728
+ self._Output = SyncDubbingOutputOption()
17729
+ self._Output._deserialize(params.get("Output"))
17730
+ self._ExtParam = params.get("ExtParam")
17731
+ memeber_set = set(params.keys())
17732
+ for name, value in vars(self).items():
17733
+ property_name = name[1:]
17734
+ if property_name in memeber_set:
17735
+ memeber_set.remove(property_name)
17736
+ if len(memeber_set) > 0:
17737
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
17738
+
17739
+
17740
+
17741
+ class ChangeVoiceResponse(AbstractModel):
17742
+ r"""ChangeVoice返回参数结构体
17743
+
17744
+ """
17745
+
17746
+ def __init__(self):
17747
+ r"""
17748
+ :param _ErrorCode: <p>错误码,成功时返回0</p>
17749
+ :type ErrorCode: int
17750
+ :param _Msg: <p>错误信息,成功时返回success</p>
17751
+ :type Msg: str
17752
+ :param _AudioData: <p>结果音频的base64编码,默认mp3格式</p>
17753
+ :type AudioData: str
17754
+ :param _AudioUrl: <p>结果音频url,有效期24小时</p>
17755
+ :type AudioUrl: str
17756
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17757
+ :type RequestId: str
17758
+ """
17759
+ self._ErrorCode = None
17760
+ self._Msg = None
17761
+ self._AudioData = None
17762
+ self._AudioUrl = None
17763
+ self._RequestId = None
17764
+
17765
+ @property
17766
+ def ErrorCode(self):
17767
+ r"""<p>错误码,成功时返回0</p>
17768
+ :rtype: int
17769
+ """
17770
+ return self._ErrorCode
17771
+
17772
+ @ErrorCode.setter
17773
+ def ErrorCode(self, ErrorCode):
17774
+ self._ErrorCode = ErrorCode
17775
+
17776
+ @property
17777
+ def Msg(self):
17778
+ r"""<p>错误信息,成功时返回success</p>
17779
+ :rtype: str
17780
+ """
17781
+ return self._Msg
17782
+
17783
+ @Msg.setter
17784
+ def Msg(self, Msg):
17785
+ self._Msg = Msg
17786
+
17787
+ @property
17788
+ def AudioData(self):
17789
+ r"""<p>结果音频的base64编码,默认mp3格式</p>
17790
+ :rtype: str
17791
+ """
17792
+ return self._AudioData
17793
+
17794
+ @AudioData.setter
17795
+ def AudioData(self, AudioData):
17796
+ self._AudioData = AudioData
17797
+
17798
+ @property
17799
+ def AudioUrl(self):
17800
+ r"""<p>结果音频url,有效期24小时</p>
17801
+ :rtype: str
17802
+ """
17803
+ return self._AudioUrl
17804
+
17805
+ @AudioUrl.setter
17806
+ def AudioUrl(self, AudioUrl):
17807
+ self._AudioUrl = AudioUrl
17808
+
17809
+ @property
17810
+ def RequestId(self):
17811
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17812
+ :rtype: str
17813
+ """
17814
+ return self._RequestId
17815
+
17816
+ @RequestId.setter
17817
+ def RequestId(self, RequestId):
17818
+ self._RequestId = RequestId
17819
+
17820
+
17821
+ def _deserialize(self, params):
17822
+ self._ErrorCode = params.get("ErrorCode")
17823
+ self._Msg = params.get("Msg")
17824
+ self._AudioData = params.get("AudioData")
17825
+ self._AudioUrl = params.get("AudioUrl")
17826
+ self._RequestId = params.get("RequestId")
17827
+
17828
+
17643
17829
  class ChannelAlertResp(AbstractModel):
17644
17830
  r"""线性组装频道告警返回信息。
17645
17831
 
@@ -165,6 +165,29 @@ class MpsClient(AbstractClient):
165
165
  raise TencentCloudSDKException(type(e).__name__, str(e))
166
166
 
167
167
 
168
+ def ChangeVoice(self, request):
169
+ r"""同步音色转换,根据输入音频和指定音色将输入音频转换为指定音色
170
+
171
+ :param request: Request instance for ChangeVoice.
172
+ :type request: :class:`tencentcloud.mps.v20190612.models.ChangeVoiceRequest`
173
+ :rtype: :class:`tencentcloud.mps.v20190612.models.ChangeVoiceResponse`
174
+
175
+ """
176
+ try:
177
+ params = request._serialize()
178
+ headers = request.headers
179
+ body = self.call("ChangeVoice", params, headers=headers)
180
+ response = json.loads(body)
181
+ model = models.ChangeVoiceResponse()
182
+ model._deserialize(response["Response"])
183
+ return model
184
+ except Exception as e:
185
+ if isinstance(e, TencentCloudSDKException):
186
+ raise
187
+ else:
188
+ raise TencentCloudSDKException(type(e).__name__, str(e))
189
+
190
+
168
191
  def CloneViral(self, request):
169
192
  r"""爆款复刻。输入爆款参考视频+商品图,生成风格/节奏对齐的视频
170
193
 
@@ -134,6 +134,24 @@ class MpsClient(AbstractClient):
134
134
 
135
135
  return await self.call_and_deserialize(**kwargs)
136
136
 
137
+ async def ChangeVoice(
138
+ self,
139
+ request: models.ChangeVoiceRequest,
140
+ opts: Dict = None,
141
+ ) -> models.ChangeVoiceResponse:
142
+ """
143
+ 同步音色转换,根据输入音频和指定音色将输入音频转换为指定音色
144
+ """
145
+
146
+ kwargs = {}
147
+ kwargs["action"] = "ChangeVoice"
148
+ kwargs["params"] = request._serialize()
149
+ kwargs["resp_cls"] = models.ChangeVoiceResponse
150
+ kwargs["headers"] = request.headers
151
+ kwargs["opts"] = opts or {}
152
+
153
+ return await self.call_and_deserialize(**kwargs)
154
+
137
155
  async def CloneViral(
138
156
  self,
139
157
  request: models.CloneViralRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-mps
3
- Version: 3.1.165
3
+ Version: 3.1.166
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.165
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.166
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.166
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.165