tencentcloud-sdk-python 3.0.1442__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 might be problematic. Click here for more details.

Files changed (44) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/batch/v20170312/models.py +28 -48
  3. tencentcloud/ckafka/v20190819/models.py +23 -23
  4. tencentcloud/clb/v20180317/models.py +4 -4
  5. tencentcloud/cls/v20201016/cls_client.py +3 -3
  6. tencentcloud/cls/v20201016/errorcodes.py +3 -0
  7. tencentcloud/cls/v20201016/models.py +943 -214
  8. tencentcloud/common/credential.py +20 -2
  9. tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
  10. tencentcloud/dnspod/v20210323/models.py +17 -2
  11. tencentcloud/es/v20180416/models.py +30 -0
  12. tencentcloud/ess/v20201111/ess_client.py +3 -1
  13. tencentcloud/ess/v20201111/models.py +2 -2
  14. tencentcloud/essbasic/v20210526/essbasic_client.py +3 -1
  15. tencentcloud/essbasic/v20210526/models.py +2 -2
  16. tencentcloud/iai/v20200303/models.py +19 -0
  17. tencentcloud/lighthouse/v20200324/errorcodes.py +27 -0
  18. tencentcloud/lighthouse/v20200324/lighthouse_client.py +53 -0
  19. tencentcloud/lighthouse/v20200324/models.py +534 -0
  20. tencentcloud/live/v20180801/models.py +2 -10
  21. tencentcloud/lke/v20231130/lke_client.py +0 -23
  22. tencentcloud/lke/v20231130/models.py +40 -128
  23. tencentcloud/ocr/v20181119/models.py +34 -0
  24. tencentcloud/organization/v20210331/models.py +24 -26
  25. tencentcloud/ssl/v20191205/models.py +2 -2
  26. tencentcloud/tbaas/v20180416/errorcodes.py +6 -0
  27. tencentcloud/teo/v20220901/models.py +18 -18
  28. tencentcloud/tms/v20201229/errorcodes.py +3 -0
  29. tencentcloud/trtc/v20190722/errorcodes.py +15 -0
  30. tencentcloud/trtc/v20190722/models.py +482 -0
  31. tencentcloud/trtc/v20190722/trtc_client.py +64 -0
  32. tencentcloud/tse/v20201207/models.py +30 -0
  33. tencentcloud/tsf/v20180326/errorcodes.py +32 -11
  34. tencentcloud/tsf/v20180326/models.py +976 -778
  35. tencentcloud/tsf/v20180326/tsf_client.py +18 -18
  36. tencentcloud/vod/v20180717/models.py +15 -0
  37. tencentcloud/vpc/v20170312/models.py +35 -0
  38. tencentcloud/vpc/v20170312/vpc_client.py +1 -1
  39. tencentcloud/wsa/v20250508/models.py +42 -6
  40. {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1443.dist-info}/METADATA +1 -1
  41. {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1443.dist-info}/RECORD +44 -44
  42. {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1443.dist-info}/LICENSE +0 -0
  43. {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1443.dist-info}/WHEEL +0 -0
  44. {tencentcloud_sdk_python-3.0.1442.dist-info → tencentcloud_sdk_python-3.0.1443.dist-info}/top_level.txt +0 -0
@@ -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
@@ -6944,6 +6944,10 @@ zk专业版可以为:CLOUD_SSD,CLOUD_SSD_PLUS,CLOUD_PREMIUM
6944
6944
  :type StorageOption: list of StorageOption
6945
6945
  :param _AffinityConstraint: ZK引擎实例,可用区分布约束,STRICT:强约束,PERMISSIVE: 弱约束
6946
6946
  :type AffinityConstraint: str
6947
+ :param _ZoneIds: 指定zone id列表
6948
+ :type ZoneIds: list of int
6949
+ :param _EngineRegionTag: 地域特殊标签,用于区分相同地域,不通的业务属性
6950
+ :type EngineRegionTag: str
6947
6951
  """
6948
6952
  self._EngineType = None
6949
6953
  self._EngineVersion = None
@@ -6965,6 +6969,8 @@ zk专业版可以为:CLOUD_SSD,CLOUD_SSD_PLUS,CLOUD_PREMIUM
6965
6969
  self._StorageCapacity = None
6966
6970
  self._StorageOption = None
6967
6971
  self._AffinityConstraint = None
6972
+ self._ZoneIds = None
6973
+ self._EngineRegionTag = None
6968
6974
 
6969
6975
  @property
6970
6976
  def EngineType(self):
@@ -7250,6 +7256,28 @@ zk专业版可以为:CLOUD_SSD,CLOUD_SSD_PLUS,CLOUD_PREMIUM
7250
7256
  def AffinityConstraint(self, AffinityConstraint):
7251
7257
  self._AffinityConstraint = AffinityConstraint
7252
7258
 
7259
+ @property
7260
+ def ZoneIds(self):
7261
+ """指定zone id列表
7262
+ :rtype: list of int
7263
+ """
7264
+ return self._ZoneIds
7265
+
7266
+ @ZoneIds.setter
7267
+ def ZoneIds(self, ZoneIds):
7268
+ self._ZoneIds = ZoneIds
7269
+
7270
+ @property
7271
+ def EngineRegionTag(self):
7272
+ """地域特殊标签,用于区分相同地域,不通的业务属性
7273
+ :rtype: str
7274
+ """
7275
+ return self._EngineRegionTag
7276
+
7277
+ @EngineRegionTag.setter
7278
+ def EngineRegionTag(self, EngineRegionTag):
7279
+ self._EngineRegionTag = EngineRegionTag
7280
+
7253
7281
 
7254
7282
  def _deserialize(self, params):
7255
7283
  self._EngineType = params.get("EngineType")
@@ -7294,6 +7322,8 @@ zk专业版可以为:CLOUD_SSD,CLOUD_SSD_PLUS,CLOUD_PREMIUM
7294
7322
  obj._deserialize(item)
7295
7323
  self._StorageOption.append(obj)
7296
7324
  self._AffinityConstraint = params.get("AffinityConstraint")
7325
+ self._ZoneIds = params.get("ZoneIds")
7326
+ self._EngineRegionTag = params.get("EngineRegionTag")
7297
7327
  memeber_set = set(params.keys())
7298
7328
  for name, value in vars(self).items():
7299
7329
  property_name = name[1:]