tencentcloud-sdk-python-trtc 3.0.1436__py2.py3-none-any.whl → 3.0.1443__py2.py3-none-any.whl

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.

Potentially problematic release.


This version of tencentcloud-sdk-python-trtc might be problematic. Click here for more details.

tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1436'
17
+ __version__ = '3.0.1443'
@@ -137,6 +137,9 @@ INVALIDPARAMETER_APPID = 'InvalidParameter.AppId'
137
137
  # 音频编码参数错误。
138
138
  INVALIDPARAMETER_AUDIOENCODEPARAMS = 'InvalidParameter.AudioEncodeParams'
139
139
 
140
+ # 无效的参考音频
141
+ INVALIDPARAMETER_AUDIOPROMPT = 'InvalidParameter.AudioPrompt'
142
+
140
143
  # BackgroundImageUrl参数错误。
141
144
  INVALIDPARAMETER_BACKGROUNDIMAGEURL = 'InvalidParameter.BackgroundImageUrl'
142
145
 
@@ -242,6 +245,9 @@ INVALIDPARAMETER_STREAMURL = 'InvalidParameter.StreamUrl'
242
245
  # TaskId 参数错误。
243
246
  INVALIDPARAMETER_TASKID = 'InvalidParameter.TaskId'
244
247
 
248
+ # 无效的文本长度
249
+ INVALIDPARAMETER_TEXTLENGTH = 'InvalidParameter.TextLength'
250
+
245
251
  # Url解析参数失败。
246
252
  INVALIDPARAMETER_URLPARAMSERROR = 'InvalidParameter.UrlParamsError'
247
253
 
@@ -263,6 +269,12 @@ INVALIDPARAMETER_USERSIGNOTADMIN = 'InvalidParameter.UserSigNotAdmin'
263
269
  # 视频分辨率参数错误。
264
270
  INVALIDPARAMETER_VIDEORESOLUTION = 'InvalidParameter.VideoResolution'
265
271
 
272
+ # 无效的VoiceId
273
+ INVALIDPARAMETER_VOICEID = 'InvalidParameter.VoiceId'
274
+
275
+ # 无效的声音名字
276
+ INVALIDPARAMETER_VOICENAME = 'InvalidParameter.VoiceName'
277
+
266
278
  # RoomId值错误。
267
279
  INVALIDPARAMETERVALUE_ROOMID = 'InvalidParameterValue.RoomId'
268
280
 
@@ -391,3 +403,6 @@ UNKNOWNPARAMETER = 'UnknownParameter'
391
403
 
392
404
  # 操作不支持。
393
405
  UNSUPPORTEDOPERATION = 'UnsupportedOperation'
406
+
407
+ # 不允许使用,请联系技术人员
408
+ UNSUPPORTEDOPERATION_NOTALLOWED = 'UnsupportedOperation.NotAllowed'
@@ -725,6 +725,42 @@ class AudioEncodeParams(AbstractModel):
725
725
 
726
726
 
727
727
 
728
+ class AudioFormat(AbstractModel):
729
+ """TTS音频输出的格式
730
+
731
+ """
732
+
733
+ def __init__(self):
734
+ r"""
735
+ :param _Format: 生成的音频格式,默认pcm,目前支持的格式列表:[pcm]。
736
+ :type Format: str
737
+ """
738
+ self._Format = None
739
+
740
+ @property
741
+ def Format(self):
742
+ """生成的音频格式,默认pcm,目前支持的格式列表:[pcm]。
743
+ :rtype: str
744
+ """
745
+ return self._Format
746
+
747
+ @Format.setter
748
+ def Format(self, Format):
749
+ self._Format = Format
750
+
751
+
752
+ def _deserialize(self, params):
753
+ self._Format = params.get("Format")
754
+ memeber_set = set(params.keys())
755
+ for name, value in vars(self).items():
756
+ property_name = name[1:]
757
+ if property_name in memeber_set:
758
+ memeber_set.remove(property_name)
759
+ if len(memeber_set) > 0:
760
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
761
+
762
+
763
+
728
764
  class AudioParams(AbstractModel):
729
765
  """录制音频转码参数。
730
766
 
@@ -16660,6 +16696,277 @@ class TencentVod(AbstractModel):
16660
16696
 
16661
16697
 
16662
16698
 
16699
+ class TextToSpeechRequest(AbstractModel):
16700
+ """TextToSpeech请求参数结构体
16701
+
16702
+ """
16703
+
16704
+ def __init__(self):
16705
+ r"""
16706
+ :param _Text: 需要转语音的文字内容,长度范围:[1, 255]
16707
+ :type Text: str
16708
+ :param _Voice: 文本转语音的声音配置
16709
+ :type Voice: :class:`tencentcloud.trtc.v20190722.models.Voice`
16710
+ :param _SdkAppId: TRTC的SdkAppId
16711
+ :type SdkAppId: int
16712
+ :param _AudioFormat: 文本转语音的输出音频的格式
16713
+ :type AudioFormat: :class:`tencentcloud.trtc.v20190722.models.AudioFormat`
16714
+ :param _APIKey: TTS的API密钥
16715
+ :type APIKey: str
16716
+ """
16717
+ self._Text = None
16718
+ self._Voice = None
16719
+ self._SdkAppId = None
16720
+ self._AudioFormat = None
16721
+ self._APIKey = None
16722
+
16723
+ @property
16724
+ def Text(self):
16725
+ """需要转语音的文字内容,长度范围:[1, 255]
16726
+ :rtype: str
16727
+ """
16728
+ return self._Text
16729
+
16730
+ @Text.setter
16731
+ def Text(self, Text):
16732
+ self._Text = Text
16733
+
16734
+ @property
16735
+ def Voice(self):
16736
+ """文本转语音的声音配置
16737
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.Voice`
16738
+ """
16739
+ return self._Voice
16740
+
16741
+ @Voice.setter
16742
+ def Voice(self, Voice):
16743
+ self._Voice = Voice
16744
+
16745
+ @property
16746
+ def SdkAppId(self):
16747
+ """TRTC的SdkAppId
16748
+ :rtype: int
16749
+ """
16750
+ return self._SdkAppId
16751
+
16752
+ @SdkAppId.setter
16753
+ def SdkAppId(self, SdkAppId):
16754
+ self._SdkAppId = SdkAppId
16755
+
16756
+ @property
16757
+ def AudioFormat(self):
16758
+ """文本转语音的输出音频的格式
16759
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.AudioFormat`
16760
+ """
16761
+ return self._AudioFormat
16762
+
16763
+ @AudioFormat.setter
16764
+ def AudioFormat(self, AudioFormat):
16765
+ self._AudioFormat = AudioFormat
16766
+
16767
+ @property
16768
+ def APIKey(self):
16769
+ """TTS的API密钥
16770
+ :rtype: str
16771
+ """
16772
+ return self._APIKey
16773
+
16774
+ @APIKey.setter
16775
+ def APIKey(self, APIKey):
16776
+ self._APIKey = APIKey
16777
+
16778
+
16779
+ def _deserialize(self, params):
16780
+ self._Text = params.get("Text")
16781
+ if params.get("Voice") is not None:
16782
+ self._Voice = Voice()
16783
+ self._Voice._deserialize(params.get("Voice"))
16784
+ self._SdkAppId = params.get("SdkAppId")
16785
+ if params.get("AudioFormat") is not None:
16786
+ self._AudioFormat = AudioFormat()
16787
+ self._AudioFormat._deserialize(params.get("AudioFormat"))
16788
+ self._APIKey = params.get("APIKey")
16789
+ memeber_set = set(params.keys())
16790
+ for name, value in vars(self).items():
16791
+ property_name = name[1:]
16792
+ if property_name in memeber_set:
16793
+ memeber_set.remove(property_name)
16794
+ if len(memeber_set) > 0:
16795
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16796
+
16797
+
16798
+
16799
+ class TextToSpeechResponse(AbstractModel):
16800
+ """TextToSpeech返回参数结构体
16801
+
16802
+ """
16803
+
16804
+ def __init__(self):
16805
+ r"""
16806
+ :param _Audio: Base64编码的音频数据
16807
+ :type Audio: str
16808
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
16809
+ :type RequestId: str
16810
+ """
16811
+ self._Audio = None
16812
+ self._RequestId = None
16813
+
16814
+ @property
16815
+ def Audio(self):
16816
+ """Base64编码的音频数据
16817
+ :rtype: str
16818
+ """
16819
+ return self._Audio
16820
+
16821
+ @Audio.setter
16822
+ def Audio(self, Audio):
16823
+ self._Audio = Audio
16824
+
16825
+ @property
16826
+ def RequestId(self):
16827
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
16828
+ :rtype: str
16829
+ """
16830
+ return self._RequestId
16831
+
16832
+ @RequestId.setter
16833
+ def RequestId(self, RequestId):
16834
+ self._RequestId = RequestId
16835
+
16836
+
16837
+ def _deserialize(self, params):
16838
+ self._Audio = params.get("Audio")
16839
+ self._RequestId = params.get("RequestId")
16840
+
16841
+
16842
+ class TextToSpeechSSERequest(AbstractModel):
16843
+ """TextToSpeechSSE请求参数结构体
16844
+
16845
+ """
16846
+
16847
+ def __init__(self):
16848
+ r"""
16849
+ :param _Text: 需要转语音的文字内容,长度范围:[1, 255]
16850
+ :type Text: str
16851
+ :param _Voice: 文本转语音的声音配置
16852
+ :type Voice: :class:`tencentcloud.trtc.v20190722.models.Voice`
16853
+ :param _SdkAppId: TRTC的SdkAppId
16854
+ :type SdkAppId: int
16855
+ :param _AudioFormat: 文本转语音的输出音频的格式
16856
+ :type AudioFormat: :class:`tencentcloud.trtc.v20190722.models.AudioFormat`
16857
+ :param _APIKey: TTS的API密钥
16858
+ :type APIKey: str
16859
+ """
16860
+ self._Text = None
16861
+ self._Voice = None
16862
+ self._SdkAppId = None
16863
+ self._AudioFormat = None
16864
+ self._APIKey = None
16865
+
16866
+ @property
16867
+ def Text(self):
16868
+ """需要转语音的文字内容,长度范围:[1, 255]
16869
+ :rtype: str
16870
+ """
16871
+ return self._Text
16872
+
16873
+ @Text.setter
16874
+ def Text(self, Text):
16875
+ self._Text = Text
16876
+
16877
+ @property
16878
+ def Voice(self):
16879
+ """文本转语音的声音配置
16880
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.Voice`
16881
+ """
16882
+ return self._Voice
16883
+
16884
+ @Voice.setter
16885
+ def Voice(self, Voice):
16886
+ self._Voice = Voice
16887
+
16888
+ @property
16889
+ def SdkAppId(self):
16890
+ """TRTC的SdkAppId
16891
+ :rtype: int
16892
+ """
16893
+ return self._SdkAppId
16894
+
16895
+ @SdkAppId.setter
16896
+ def SdkAppId(self, SdkAppId):
16897
+ self._SdkAppId = SdkAppId
16898
+
16899
+ @property
16900
+ def AudioFormat(self):
16901
+ """文本转语音的输出音频的格式
16902
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.AudioFormat`
16903
+ """
16904
+ return self._AudioFormat
16905
+
16906
+ @AudioFormat.setter
16907
+ def AudioFormat(self, AudioFormat):
16908
+ self._AudioFormat = AudioFormat
16909
+
16910
+ @property
16911
+ def APIKey(self):
16912
+ """TTS的API密钥
16913
+ :rtype: str
16914
+ """
16915
+ return self._APIKey
16916
+
16917
+ @APIKey.setter
16918
+ def APIKey(self, APIKey):
16919
+ self._APIKey = APIKey
16920
+
16921
+
16922
+ def _deserialize(self, params):
16923
+ self._Text = params.get("Text")
16924
+ if params.get("Voice") is not None:
16925
+ self._Voice = Voice()
16926
+ self._Voice._deserialize(params.get("Voice"))
16927
+ self._SdkAppId = params.get("SdkAppId")
16928
+ if params.get("AudioFormat") is not None:
16929
+ self._AudioFormat = AudioFormat()
16930
+ self._AudioFormat._deserialize(params.get("AudioFormat"))
16931
+ self._APIKey = params.get("APIKey")
16932
+ memeber_set = set(params.keys())
16933
+ for name, value in vars(self).items():
16934
+ property_name = name[1:]
16935
+ if property_name in memeber_set:
16936
+ memeber_set.remove(property_name)
16937
+ if len(memeber_set) > 0:
16938
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16939
+
16940
+
16941
+
16942
+ class TextToSpeechSSEResponse(AbstractModel):
16943
+ """TextToSpeechSSE返回参数结构体
16944
+
16945
+ """
16946
+
16947
+ def __init__(self):
16948
+ r"""
16949
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
16950
+ :type RequestId: str
16951
+ """
16952
+ self._RequestId = None
16953
+
16954
+ @property
16955
+ def RequestId(self):
16956
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header "X-TC-RequestId" 中。
16957
+ :rtype: str
16958
+ """
16959
+ return self._RequestId
16960
+
16961
+ @RequestId.setter
16962
+ def RequestId(self, RequestId):
16963
+ self._RequestId = RequestId
16964
+
16965
+
16966
+ def _deserialize(self, params):
16967
+ self._RequestId = params.get("RequestId")
16968
+
16969
+
16663
16970
  class TimeValue(AbstractModel):
16664
16971
  """返回的质量数据,时间:值
16665
16972
 
@@ -18135,6 +18442,181 @@ class VideoParams(AbstractModel):
18135
18442
 
18136
18443
 
18137
18444
 
18445
+ class Voice(AbstractModel):
18446
+ """TTS的声音参数
18447
+
18448
+ """
18449
+
18450
+ def __init__(self):
18451
+ r"""
18452
+ :param _VoiceId: TTS的声音的ID
18453
+ :type VoiceId: str
18454
+ """
18455
+ self._VoiceId = None
18456
+
18457
+ @property
18458
+ def VoiceId(self):
18459
+ """TTS的声音的ID
18460
+ :rtype: str
18461
+ """
18462
+ return self._VoiceId
18463
+
18464
+ @VoiceId.setter
18465
+ def VoiceId(self, VoiceId):
18466
+ self._VoiceId = VoiceId
18467
+
18468
+
18469
+ def _deserialize(self, params):
18470
+ self._VoiceId = params.get("VoiceId")
18471
+ memeber_set = set(params.keys())
18472
+ for name, value in vars(self).items():
18473
+ property_name = name[1:]
18474
+ if property_name in memeber_set:
18475
+ memeber_set.remove(property_name)
18476
+ if len(memeber_set) > 0:
18477
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
18478
+
18479
+
18480
+
18481
+ class VoiceCloneRequest(AbstractModel):
18482
+ """VoiceClone请求参数结构体
18483
+
18484
+ """
18485
+
18486
+ def __init__(self):
18487
+ r"""
18488
+ :param _SdkAppId: TRTC的SdkAppId
18489
+ :type SdkAppId: int
18490
+ :param _APIKey: TTS的API密钥
18491
+ :type APIKey: str
18492
+ :param _VoiceName: 声音克隆的名字
18493
+ :type VoiceName: str
18494
+ :param _PromptAudio: 声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在5秒~12秒之间
18495
+ :type PromptAudio: str
18496
+ :param _PromptText: 声音克隆的参考文本,为参考音频对应的文字。
18497
+ :type PromptText: str
18498
+ """
18499
+ self._SdkAppId = None
18500
+ self._APIKey = None
18501
+ self._VoiceName = None
18502
+ self._PromptAudio = None
18503
+ self._PromptText = None
18504
+
18505
+ @property
18506
+ def SdkAppId(self):
18507
+ """TRTC的SdkAppId
18508
+ :rtype: int
18509
+ """
18510
+ return self._SdkAppId
18511
+
18512
+ @SdkAppId.setter
18513
+ def SdkAppId(self, SdkAppId):
18514
+ self._SdkAppId = SdkAppId
18515
+
18516
+ @property
18517
+ def APIKey(self):
18518
+ """TTS的API密钥
18519
+ :rtype: str
18520
+ """
18521
+ return self._APIKey
18522
+
18523
+ @APIKey.setter
18524
+ def APIKey(self, APIKey):
18525
+ self._APIKey = APIKey
18526
+
18527
+ @property
18528
+ def VoiceName(self):
18529
+ """声音克隆的名字
18530
+ :rtype: str
18531
+ """
18532
+ return self._VoiceName
18533
+
18534
+ @VoiceName.setter
18535
+ def VoiceName(self, VoiceName):
18536
+ self._VoiceName = VoiceName
18537
+
18538
+ @property
18539
+ def PromptAudio(self):
18540
+ """声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在5秒~12秒之间
18541
+ :rtype: str
18542
+ """
18543
+ return self._PromptAudio
18544
+
18545
+ @PromptAudio.setter
18546
+ def PromptAudio(self, PromptAudio):
18547
+ self._PromptAudio = PromptAudio
18548
+
18549
+ @property
18550
+ def PromptText(self):
18551
+ """声音克隆的参考文本,为参考音频对应的文字。
18552
+ :rtype: str
18553
+ """
18554
+ return self._PromptText
18555
+
18556
+ @PromptText.setter
18557
+ def PromptText(self, PromptText):
18558
+ self._PromptText = PromptText
18559
+
18560
+
18561
+ def _deserialize(self, params):
18562
+ self._SdkAppId = params.get("SdkAppId")
18563
+ self._APIKey = params.get("APIKey")
18564
+ self._VoiceName = params.get("VoiceName")
18565
+ self._PromptAudio = params.get("PromptAudio")
18566
+ self._PromptText = params.get("PromptText")
18567
+ memeber_set = set(params.keys())
18568
+ for name, value in vars(self).items():
18569
+ property_name = name[1:]
18570
+ if property_name in memeber_set:
18571
+ memeber_set.remove(property_name)
18572
+ if len(memeber_set) > 0:
18573
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
18574
+
18575
+
18576
+
18577
+ class VoiceCloneResponse(AbstractModel):
18578
+ """VoiceClone返回参数结构体
18579
+
18580
+ """
18581
+
18582
+ def __init__(self):
18583
+ r"""
18584
+ :param _VoiceId: 克隆出的音色ID,可以用此id进行语音合成
18585
+ :type VoiceId: str
18586
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
18587
+ :type RequestId: str
18588
+ """
18589
+ self._VoiceId = None
18590
+ self._RequestId = None
18591
+
18592
+ @property
18593
+ def VoiceId(self):
18594
+ """克隆出的音色ID,可以用此id进行语音合成
18595
+ :rtype: str
18596
+ """
18597
+ return self._VoiceId
18598
+
18599
+ @VoiceId.setter
18600
+ def VoiceId(self, VoiceId):
18601
+ self._VoiceId = VoiceId
18602
+
18603
+ @property
18604
+ def RequestId(self):
18605
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
18606
+ :rtype: str
18607
+ """
18608
+ return self._RequestId
18609
+
18610
+ @RequestId.setter
18611
+ def RequestId(self, RequestId):
18612
+ self._RequestId = RequestId
18613
+
18614
+
18615
+ def _deserialize(self, params):
18616
+ self._VoiceId = params.get("VoiceId")
18617
+ self._RequestId = params.get("RequestId")
18618
+
18619
+
18138
18620
  class VoicePrint(AbstractModel):
18139
18621
  """声纹配置参数
18140
18622
 
@@ -1706,6 +1706,47 @@ class TrtcClient(AbstractClient):
1706
1706
  raise TencentCloudSDKException(type(e).__name__, str(e))
1707
1707
 
1708
1708
 
1709
+ def TextToSpeech(self, request):
1710
+ """语音合成接口
1711
+
1712
+ :param request: Request instance for TextToSpeech.
1713
+ :type request: :class:`tencentcloud.trtc.v20190722.models.TextToSpeechRequest`
1714
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.TextToSpeechResponse`
1715
+
1716
+ """
1717
+ try:
1718
+ params = request._serialize()
1719
+ headers = request.headers
1720
+ body = self.call("TextToSpeech", params, headers=headers)
1721
+ response = json.loads(body)
1722
+ model = models.TextToSpeechResponse()
1723
+ model._deserialize(response["Response"])
1724
+ return model
1725
+ except Exception as e:
1726
+ if isinstance(e, TencentCloudSDKException):
1727
+ raise
1728
+ else:
1729
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1730
+
1731
+
1732
+ def TextToSpeechSSE(self, request):
1733
+ """SSE流式文本转语音
1734
+
1735
+ :param request: Request instance for TextToSpeechSSE.
1736
+ :type request: :class:`tencentcloud.trtc.v20190722.models.TextToSpeechSSERequest`
1737
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.TextToSpeechSSEResponse`
1738
+
1739
+ """
1740
+ try:
1741
+ params = request._serialize()
1742
+ return self._call_and_deserialize("TextToSpeechSSE", params, models.TextToSpeechSSEResponse, headers=request.headers)
1743
+ except Exception as e:
1744
+ if isinstance(e, TencentCloudSDKException):
1745
+ raise
1746
+ else:
1747
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1748
+
1749
+
1709
1750
  def UpdateAIConversation(self, request):
1710
1751
  """更新AIConversation参数
1711
1752
 
@@ -1793,6 +1834,29 @@ class TrtcClient(AbstractClient):
1793
1834
  model = models.UpdateVoicePrintResponse()
1794
1835
  model._deserialize(response["Response"])
1795
1836
  return model
1837
+ except Exception as e:
1838
+ if isinstance(e, TencentCloudSDKException):
1839
+ raise
1840
+ else:
1841
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1842
+
1843
+
1844
+ def VoiceClone(self, request):
1845
+ """声音克隆
1846
+
1847
+ :param request: Request instance for VoiceClone.
1848
+ :type request: :class:`tencentcloud.trtc.v20190722.models.VoiceCloneRequest`
1849
+ :rtype: :class:`tencentcloud.trtc.v20190722.models.VoiceCloneResponse`
1850
+
1851
+ """
1852
+ try:
1853
+ params = request._serialize()
1854
+ headers = request.headers
1855
+ body = self.call("VoiceClone", params, headers=headers)
1856
+ response = json.loads(body)
1857
+ model = models.VoiceCloneResponse()
1858
+ model._deserialize(response["Response"])
1859
+ return model
1796
1860
  except Exception as e:
1797
1861
  if isinstance(e, TencentCloudSDKException):
1798
1862
  raise
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-trtc
3
- Version: 3.0.1436
3
+ Version: 3.0.1443
4
4
  Summary: Tencent Cloud Trtc 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.0.1436)
18
+ Requires-Dist: tencentcloud-sdk-python-common (<4.0.0,>=3.0.1443)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=XZH4VAZz9WH1-EhCd0jNUtOoc4aJ9MfjvVt7tg5nyYE,631
2
+ tencentcloud/trtc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/trtc/v20190722/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/trtc/v20190722/errorcodes.py,sha256=GSGmgWTH1x33sAHW6p-aM4eAy5XcZc9OuLHOpieqhP8,13142
5
+ tencentcloud/trtc/v20190722/models.py,sha256=x4L1aNngZyE6-8jEwswSMe80CIIWppaU6uX44l1sr70,690460
6
+ tencentcloud/trtc/v20190722/trtc_client.py,sha256=0PEVW5tb1jbPoUpYd_zWeQhxyFYd6KhaJvCUprG3EUE,93880
7
+ tencentcloud_sdk_python_trtc-3.0.1443.dist-info/METADATA,sha256=Rf65YMrS5UcOzIoJ69bkY5AXeVBh25f5lL4JHFqMzXo,1508
8
+ tencentcloud_sdk_python_trtc-3.0.1443.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_trtc-3.0.1443.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_trtc-3.0.1443.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=yGylr5YIhnByBsGQsKQ7Efv97DKtKNa3248OOHO20Iw,631
2
- tencentcloud/trtc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/trtc/v20190722/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/trtc/v20190722/errorcodes.py,sha256=R03U5XVCYYCIKZb4OgXMhuu9TwegXmM_XbXscYI0LnY,12702
5
- tencentcloud/trtc/v20190722/models.py,sha256=Asn8yP5JYe34q4t9gJdqo-lVgp7MUQ1M9-bEb5dwzes,676379
6
- tencentcloud/trtc/v20190722/trtc_client.py,sha256=O-f1BLSvzAPnFZSiyCsu3ia7ZmAqd1W3HPFiJ0atDWY,91503
7
- tencentcloud_sdk_python_trtc-3.0.1436.dist-info/METADATA,sha256=ZuwR75QB9Tvyh2_TNeSK3S1WL2rgJypEI771HTPu3YY,1508
8
- tencentcloud_sdk_python_trtc-3.0.1436.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_trtc-3.0.1436.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_trtc-3.0.1436.dist-info/RECORD,,