tencentcloud-sdk-python 3.0.1255__py2.py3-none-any.whl → 3.0.1257__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ccc/v20200210/models.py +12 -0
- tencentcloud/cdb/v20170320/models.py +12 -0
- tencentcloud/cdwdoris/v20211228/models.py +13 -0
- tencentcloud/cfw/v20190904/cfw_client.py +3 -1
- tencentcloud/cfw/v20190904/models.py +8 -2
- tencentcloud/ckafka/v20190819/models.py +1 -1
- tencentcloud/clb/v20180317/models.py +25 -1
- tencentcloud/cwp/v20180228/cwp_client.py +6 -2
- tencentcloud/cwp/v20180228/models.py +65 -28
- tencentcloud/dlc/v20210125/models.py +13 -0
- tencentcloud/emr/v20190103/models.py +12 -0
- tencentcloud/ess/v20201111/models.py +28 -3
- tencentcloud/essbasic/v20210526/models.py +26 -3
- tencentcloud/gaap/v20180529/gaap_client.py +1 -1
- tencentcloud/gaap/v20180529/models.py +67 -39
- tencentcloud/iss/v20230517/models.py +25 -0
- tencentcloud/mqtt/v20240516/models.py +2 -2
- tencentcloud/ocr/v20181119/models.py +1 -0
- tencentcloud/organization/v20210331/errorcodes.py +1 -1
- tencentcloud/partners/v20180321/models.py +71 -0
- tencentcloud/partners/v20180321/partners_client.py +23 -0
- tencentcloud/pts/v20210728/models.py +13 -0
- tencentcloud/redis/v20180412/models.py +3 -1
- tencentcloud/redis/v20180412/redis_client.py +1 -1
- tencentcloud/ssl/v20191205/models.py +43 -2
- tencentcloud/tcss/v20201101/models.py +343 -0
- tencentcloud/tdmq/v20200217/models.py +442 -55
- tencentcloud/tdmq/v20200217/tdmq_client.py +46 -0
- tencentcloud/teo/v20220901/errorcodes.py +24 -0
- tencentcloud/teo/v20220901/models.py +6 -6
- tencentcloud/trocket/v20230308/models.py +25 -1
- tencentcloud/trocket/v20230308/trocket_client.py +2 -2
- tencentcloud/tsi/v20210325/models.py +135 -0
- tencentcloud/vod/v20180717/models.py +878 -7
- tencentcloud/vpc/v20170312/models.py +3 -4
- {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1257.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1257.dist-info}/RECORD +41 -41
- {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1257.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1257.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1255.dist-info → tencentcloud_sdk_python-3.0.1257.dist-info}/top_level.txt +0 -0
@@ -137,6 +137,9 @@ INVALIDPARAMETER_ACCESSREDIRECTREGEXERROR = 'InvalidParameter.AccessRedirectRege
|
|
137
137
|
# 操作频繁,请稍后重试。
|
138
138
|
INVALIDPARAMETER_ACTIONINPROGRESS = 'InvalidParameter.ActionInProgress'
|
139
139
|
|
140
|
+
# 别称域名不支持配无私钥证书。
|
141
|
+
INVALIDPARAMETER_ALIASDOMAINNOTSUPPORTKEYLESS = 'InvalidParameter.AliasDomainNotSupportKeyless'
|
142
|
+
|
140
143
|
# 别称域名不支持配置国密证书。
|
141
144
|
INVALIDPARAMETER_ALIASDOMAINNOTSUPPORTSMCERT = 'InvalidParameter.AliasDomainNotSupportSMCert'
|
142
145
|
|
@@ -164,6 +167,9 @@ INVALIDPARAMETER_CERTTOEXPIRE = 'InvalidParameter.CertToExpire'
|
|
164
167
|
# 无效的边缘HTTPS证书配置,密钥长度不符合最短要求RSA>=2048,DSA>=2048,DH>=2048,EC>=225。
|
165
168
|
INVALIDPARAMETER_CERTTOOSHORTKEYSIZE = 'InvalidParameter.CertTooShortKeySize'
|
166
169
|
|
170
|
+
# 待变更域名未绑定证书或 keyless 服务端,请先绑定后再操作。
|
171
|
+
INVALIDPARAMETER_CERTIFICATECONFLICTWITHKEYLESSSERVER = 'InvalidParameter.CertificateConflictWithKeylessServer'
|
172
|
+
|
167
173
|
# IPv6 访问与客户端 IP 地理位置功能冲突。
|
168
174
|
INVALIDPARAMETER_CLIENTIPCOUNTRYCONFLICTSWITHIPV6 = 'InvalidParameter.ClientIpCountryConflictsWithIpv6'
|
169
175
|
|
@@ -758,6 +764,9 @@ INVALIDPARAMETERVALUE_INVALIDDOMAINNAME = 'InvalidParameterValue.InvalidDomainNa
|
|
758
764
|
# 加速域名状态不符合要求。
|
759
765
|
INVALIDPARAMETERVALUE_INVALIDDOMAINSTATUS = 'InvalidParameterValue.InvalidDomainStatus'
|
760
766
|
|
767
|
+
# 无效的 keyless 服务端 Id。
|
768
|
+
INVALIDPARAMETERVALUE_INVALIDKEYLESSSERVERID = 'InvalidParameterValue.InvalidKeylessServerId'
|
769
|
+
|
761
770
|
# DNS 代理域名源站错误。
|
762
771
|
INVALIDPARAMETERVALUE_INVALIDPROXYORIGIN = 'InvalidParameterValue.InvalidProxyOrigin'
|
763
772
|
|
@@ -869,6 +878,9 @@ OPERATIONDENIED_ACCELERATEMAINLANDMULTIPLYLAYERCONFLICT = 'OperationDenied.Accel
|
|
869
878
|
# 引用源站组的7层域名服务正在部署中,请稍后再编辑。
|
870
879
|
OPERATIONDENIED_ACCELERATIONDOMAINSTATUSNOTINONLINE = 'OperationDenied.AccelerationDomainStatusNotInOnline'
|
871
880
|
|
881
|
+
# 当前仅无私钥证书模式允许证书私钥为空。
|
882
|
+
OPERATIONDENIED_CERTIFICATEPRIVATEKEYISEMPTY = 'OperationDenied.CertificatePrivateKeyIsEmpty'
|
883
|
+
|
872
884
|
# 合规封禁中。
|
873
885
|
OPERATIONDENIED_COMPLIANCEFORBIDDEN = 'OperationDenied.ComplianceForbidden'
|
874
886
|
|
@@ -914,6 +926,9 @@ OPERATIONDENIED_ENVNOTREADY = 'OperationDenied.EnvNotReady'
|
|
914
926
|
# 站点处于停用状态,请开启后重试。
|
915
927
|
OPERATIONDENIED_ERRZONEISALREADYPAUSED = 'OperationDenied.ErrZoneIsAlreadyPaused'
|
916
928
|
|
929
|
+
# 待变更域名 keyless 服务端不一致,请确认变更域名 keyless 服务端一致后重试。
|
930
|
+
OPERATIONDENIED_HOSTSKEYLESSSERVERINCONSISTENCY = 'OperationDenied.HostsKeylessServerInconsistency'
|
931
|
+
|
917
932
|
# 开启高防时必须保证安全是开启状态。
|
918
933
|
OPERATIONDENIED_INVALIDADVANCEDDEFENSESECURITYTYPE = 'OperationDenied.InvalidAdvancedDefenseSecurityType'
|
919
934
|
|
@@ -926,6 +941,12 @@ OPERATIONDENIED_IPV6ADVANCEDCONFLICT = 'OperationDenied.Ipv6AdvancedConflict'
|
|
926
941
|
# ipv6功能和固定ip无法同时开启。
|
927
942
|
OPERATIONDENIED_IPV6STATICIPCONFLICT = 'OperationDenied.Ipv6StaticIpConflict'
|
928
943
|
|
944
|
+
# 待变更域名存在不同的证书或 keyless 服务端,请确认边缘 HTTPS 证书或 keyless 服务端一致后重试。
|
945
|
+
OPERATIONDENIED_KEYLESSCERTSWITCHTOFREECERTCONFLICT = 'OperationDenied.KeylessCertSwitchToFreeCertConflict'
|
946
|
+
|
947
|
+
# 当前无私钥证书模式要求证书私钥为空。
|
948
|
+
OPERATIONDENIED_KEYLESSMODECERTIFICATEPRIVATEKEYNEEDEMPTY = 'OperationDenied.KeylessModeCertificatePrivateKeyNeedEmpty'
|
949
|
+
|
929
950
|
# 四层实例资源售卖火爆,已售罄,正在加紧补货中,当前无法新增四层代理,请您耐心等待。
|
930
951
|
OPERATIONDENIED_L4LACKOFRESOURCES = 'OperationDenied.L4LackOfResources'
|
931
952
|
|
@@ -974,6 +995,9 @@ OPERATIONDENIED_NODOMAINACCESSZONEONLYALLOWMODIFIEDTOCNAME = 'OperationDenied.No
|
|
974
995
|
# 无域名接入站点不支持除切换为CNAME接入类型以外的任何修改动作。
|
975
996
|
OPERATIONDENIED_NODOMAINACCESSZONEONLYSUPPORTMODIFYTYPE = 'OperationDenied.NoDomainAccessZoneOnlySupportModifyType'
|
976
997
|
|
998
|
+
# 当前无私钥证书功能仅针对白名单用户开放。
|
999
|
+
OPERATIONDENIED_NOTINKEYLESSWHITELIST = 'OperationDenied.NotInKeylessWhiteList'
|
1000
|
+
|
977
1001
|
# 用户不在版本管理的白名单内。
|
978
1002
|
OPERATIONDENIED_NOTINVERSIONCONTROLWHITELIST = 'OperationDenied.NotInVersionControlWhiteList'
|
979
1003
|
|
@@ -3365,7 +3365,7 @@ class CertificateInfo(AbstractModel):
|
|
3365
3365
|
|
3366
3366
|
def __init__(self):
|
3367
3367
|
r"""
|
3368
|
-
:param _CertId: 证书 ID。
|
3368
|
+
:param _CertId: 证书 ID。来源于 SSL 侧,您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/ssl) 查看 CertId。
|
3369
3369
|
:type CertId: str
|
3370
3370
|
:param _Alias: 证书备注名。
|
3371
3371
|
:type Alias: str
|
@@ -20043,15 +20043,14 @@ class ModifyHostsCertificateRequest(AbstractModel):
|
|
20043
20043
|
<li>sslcert:配置 SSL 托管服务端证书;</li>
|
20044
20044
|
不填写表示服务端证书保持原有配置。
|
20045
20045
|
:type Mode: str
|
20046
|
-
:param _ServerCertInfo: SSL 证书配置,本参数仅在 mode 为 sslcert 时生效,传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/
|
20046
|
+
:param _ServerCertInfo: SSL 证书配置,本参数仅在 mode 为 sslcert 时生效,传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/ssl) 查看 CertId。
|
20047
20047
|
:type ServerCertInfo: list of ServerCertInfo
|
20048
20048
|
:param _ApplyType: 托管类型,取值有:
|
20049
20049
|
<li>none:不托管EO;</li>
|
20050
20050
|
<li>apply:托管EO</li>
|
20051
20051
|
不填,默认取值为none。
|
20052
20052
|
:type ApplyType: str
|
20053
|
-
:param _ClientCertInfo:
|
20054
|
-
不填写表示边缘双向认证保持原有配置。
|
20053
|
+
:param _ClientCertInfo: 在边缘双向认证场景下,该字段为客户端的 CA 证书,部署在 EO 的入口侧,用于客户端对 EO 节点进行认证。不填写表示保持原有配置。
|
20055
20054
|
:type ClientCertInfo: :class:`tencentcloud.teo.v20220901.models.MutualTLS`
|
20056
20055
|
"""
|
20057
20056
|
self._ZoneId = None
|
@@ -21831,7 +21830,7 @@ class MutualTLS(AbstractModel):
|
|
21831
21830
|
<li>off:关闭。</li>
|
21832
21831
|
:type Switch: str
|
21833
21832
|
:param _CertInfos: 双向认证证书列表。
|
21834
|
-
注意:MutualTLS 在 ModifyHostsCertificate 作为入参使用时,该参数传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/
|
21833
|
+
注意:MutualTLS 在 ModifyHostsCertificate 作为入参使用时,该参数传入对应证书的 CertId 即可。您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/ssl) 查看 CertId。
|
21835
21834
|
:type CertInfos: list of CertificateInfo
|
21836
21835
|
"""
|
21837
21836
|
self._Switch = None
|
@@ -26082,7 +26081,8 @@ class ServerCertInfo(AbstractModel):
|
|
26082
26081
|
|
26083
26082
|
def __init__(self):
|
26084
26083
|
r"""
|
26085
|
-
:param _CertId: 服务器证书 ID。
|
26084
|
+
:param _CertId: 服务器证书 ID。来源于 SSL 侧,您可以前往 [SSL 证书列表](https://console.cloud.tencent.com/ssl) 查看 CertId。
|
26085
|
+
|
26086
26086
|
注意:此字段可能返回 null,表示取不到有效值。
|
26087
26087
|
:type CertId: str
|
26088
26088
|
:param _Alias: 证书备注名。
|
@@ -7289,7 +7289,7 @@ class ModifyInstanceRequest(AbstractModel):
|
|
7289
7289
|
|
7290
7290
|
def __init__(self):
|
7291
7291
|
r"""
|
7292
|
-
:param _InstanceId:
|
7292
|
+
:param _InstanceId: 集群ID
|
7293
7293
|
:type InstanceId: str
|
7294
7294
|
:param _Name: 实例名称
|
7295
7295
|
:type Name: str
|
@@ -7303,8 +7303,12 @@ class ModifyInstanceRequest(AbstractModel):
|
|
7303
7303
|
:type MessageRetention: int
|
7304
7304
|
:param _ScaledTpsEnabled: 是否开启弹性TPS
|
7305
7305
|
:type ScaledTpsEnabled: bool
|
7306
|
+
:param _AclEnabled: 是否开启ACL
|
7307
|
+
:type AclEnabled: bool
|
7306
7308
|
:param _MaxTopicNum: 最大可创建主题数
|
7307
7309
|
:type MaxTopicNum: int
|
7310
|
+
:param _ExtraTopicNum: 免费额度之外的主题个数
|
7311
|
+
:type ExtraTopicNum: str
|
7308
7312
|
"""
|
7309
7313
|
self._InstanceId = None
|
7310
7314
|
self._Name = None
|
@@ -7313,7 +7317,9 @@ class ModifyInstanceRequest(AbstractModel):
|
|
7313
7317
|
self._SkuCode = None
|
7314
7318
|
self._MessageRetention = None
|
7315
7319
|
self._ScaledTpsEnabled = None
|
7320
|
+
self._AclEnabled = None
|
7316
7321
|
self._MaxTopicNum = None
|
7322
|
+
self._ExtraTopicNum = None
|
7317
7323
|
|
7318
7324
|
@property
|
7319
7325
|
def InstanceId(self):
|
@@ -7371,6 +7377,14 @@ class ModifyInstanceRequest(AbstractModel):
|
|
7371
7377
|
def ScaledTpsEnabled(self, ScaledTpsEnabled):
|
7372
7378
|
self._ScaledTpsEnabled = ScaledTpsEnabled
|
7373
7379
|
|
7380
|
+
@property
|
7381
|
+
def AclEnabled(self):
|
7382
|
+
return self._AclEnabled
|
7383
|
+
|
7384
|
+
@AclEnabled.setter
|
7385
|
+
def AclEnabled(self, AclEnabled):
|
7386
|
+
self._AclEnabled = AclEnabled
|
7387
|
+
|
7374
7388
|
@property
|
7375
7389
|
def MaxTopicNum(self):
|
7376
7390
|
return self._MaxTopicNum
|
@@ -7379,6 +7393,14 @@ class ModifyInstanceRequest(AbstractModel):
|
|
7379
7393
|
def MaxTopicNum(self, MaxTopicNum):
|
7380
7394
|
self._MaxTopicNum = MaxTopicNum
|
7381
7395
|
|
7396
|
+
@property
|
7397
|
+
def ExtraTopicNum(self):
|
7398
|
+
return self._ExtraTopicNum
|
7399
|
+
|
7400
|
+
@ExtraTopicNum.setter
|
7401
|
+
def ExtraTopicNum(self, ExtraTopicNum):
|
7402
|
+
self._ExtraTopicNum = ExtraTopicNum
|
7403
|
+
|
7382
7404
|
|
7383
7405
|
def _deserialize(self, params):
|
7384
7406
|
self._InstanceId = params.get("InstanceId")
|
@@ -7388,7 +7410,9 @@ class ModifyInstanceRequest(AbstractModel):
|
|
7388
7410
|
self._SkuCode = params.get("SkuCode")
|
7389
7411
|
self._MessageRetention = params.get("MessageRetention")
|
7390
7412
|
self._ScaledTpsEnabled = params.get("ScaledTpsEnabled")
|
7413
|
+
self._AclEnabled = params.get("AclEnabled")
|
7391
7414
|
self._MaxTopicNum = params.get("MaxTopicNum")
|
7415
|
+
self._ExtraTopicNum = params.get("ExtraTopicNum")
|
7392
7416
|
memeber_set = set(params.keys())
|
7393
7417
|
for name, value in vars(self).items():
|
7394
7418
|
property_name = name[1:]
|
@@ -518,7 +518,7 @@ class TrocketClient(AbstractClient):
|
|
518
518
|
|
519
519
|
|
520
520
|
def DescribeInstanceList(self, request):
|
521
|
-
"""
|
521
|
+
"""查询集群列表,仅支持 5.x 集群。Filters参数使用说明如下:
|
522
522
|
1. InstanceName, 名称模糊查询
|
523
523
|
2. InstanceId,集群ID查询
|
524
524
|
3. InstanceType, 集群类型查询,支持多选
|
@@ -1002,7 +1002,7 @@ class TrocketClient(AbstractClient):
|
|
1002
1002
|
|
1003
1003
|
|
1004
1004
|
def ModifyInstance(self, request):
|
1005
|
-
"""
|
1005
|
+
"""修改 RocketMQ 5.x 集群属性。
|
1006
1006
|
|
1007
1007
|
:param request: Request instance for ModifyInstance.
|
1008
1008
|
:type request: :class:`tencentcloud.trocket.v20230308.models.ModifyInstanceRequest`
|
@@ -39,6 +39,8 @@ class DisplayInfo(AbstractModel):
|
|
39
39
|
:type EndTime: int
|
40
40
|
:param _IsEnd: 当前句子是否已结束
|
41
41
|
:type IsEnd: bool
|
42
|
+
:param _Audio: base64编码的wav/mp3音频数据
|
43
|
+
:type Audio: str
|
42
44
|
"""
|
43
45
|
self._SeId = None
|
44
46
|
self._SeVer = None
|
@@ -47,6 +49,7 @@ class DisplayInfo(AbstractModel):
|
|
47
49
|
self._StartTime = None
|
48
50
|
self._EndTime = None
|
49
51
|
self._IsEnd = None
|
52
|
+
self._Audio = None
|
50
53
|
|
51
54
|
@property
|
52
55
|
def SeId(self):
|
@@ -104,6 +107,14 @@ class DisplayInfo(AbstractModel):
|
|
104
107
|
def IsEnd(self, IsEnd):
|
105
108
|
self._IsEnd = IsEnd
|
106
109
|
|
110
|
+
@property
|
111
|
+
def Audio(self):
|
112
|
+
return self._Audio
|
113
|
+
|
114
|
+
@Audio.setter
|
115
|
+
def Audio(self, Audio):
|
116
|
+
self._Audio = Audio
|
117
|
+
|
107
118
|
|
108
119
|
def _deserialize(self, params):
|
109
120
|
self._SeId = params.get("SeId")
|
@@ -113,6 +124,102 @@ class DisplayInfo(AbstractModel):
|
|
113
124
|
self._StartTime = params.get("StartTime")
|
114
125
|
self._EndTime = params.get("EndTime")
|
115
126
|
self._IsEnd = params.get("IsEnd")
|
127
|
+
self._Audio = params.get("Audio")
|
128
|
+
memeber_set = set(params.keys())
|
129
|
+
for name, value in vars(self).items():
|
130
|
+
property_name = name[1:]
|
131
|
+
if property_name in memeber_set:
|
132
|
+
memeber_set.remove(property_name)
|
133
|
+
if len(memeber_set) > 0:
|
134
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
class TTS(AbstractModel):
|
139
|
+
"""同传TTS请求参数
|
140
|
+
|
141
|
+
"""
|
142
|
+
|
143
|
+
def __init__(self):
|
144
|
+
r"""
|
145
|
+
:param _Codec: 返回音频格式,可取值:wav,mp3,pcm
|
146
|
+
:type Codec: str
|
147
|
+
:param _VoiceType: 音色 ID,只包括标准音色(注,日文只有一个固定音色)。
|
148
|
+
完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
|
149
|
+
:type VoiceType: int
|
150
|
+
:param _Volume: 音量大小,范围[-10,10],对应音量大小。默认为0,代表正常音量,值越大音量越高。
|
151
|
+
:type Volume: float
|
152
|
+
:param _Speed: 语速,范围:[-2,6],分别对应不同语速:
|
153
|
+
|
154
|
+
- -2代表0.6倍
|
155
|
+
- -1代表0.8倍
|
156
|
+
- 0代表1.0倍(默认)
|
157
|
+
- 1代表1.2倍
|
158
|
+
- 2代表1.5倍
|
159
|
+
- 6代表2.5倍
|
160
|
+
|
161
|
+
如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。
|
162
|
+
参数值与实际语速转换,可参考[代码示例](https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz)
|
163
|
+
:type Speed: float
|
164
|
+
:param _SampleRate: 音频采样率:
|
165
|
+
|
166
|
+
- 16000:16k(默认)
|
167
|
+
- 8000:8k
|
168
|
+
:type SampleRate: int
|
169
|
+
"""
|
170
|
+
self._Codec = None
|
171
|
+
self._VoiceType = None
|
172
|
+
self._Volume = None
|
173
|
+
self._Speed = None
|
174
|
+
self._SampleRate = None
|
175
|
+
|
176
|
+
@property
|
177
|
+
def Codec(self):
|
178
|
+
return self._Codec
|
179
|
+
|
180
|
+
@Codec.setter
|
181
|
+
def Codec(self, Codec):
|
182
|
+
self._Codec = Codec
|
183
|
+
|
184
|
+
@property
|
185
|
+
def VoiceType(self):
|
186
|
+
return self._VoiceType
|
187
|
+
|
188
|
+
@VoiceType.setter
|
189
|
+
def VoiceType(self, VoiceType):
|
190
|
+
self._VoiceType = VoiceType
|
191
|
+
|
192
|
+
@property
|
193
|
+
def Volume(self):
|
194
|
+
return self._Volume
|
195
|
+
|
196
|
+
@Volume.setter
|
197
|
+
def Volume(self, Volume):
|
198
|
+
self._Volume = Volume
|
199
|
+
|
200
|
+
@property
|
201
|
+
def Speed(self):
|
202
|
+
return self._Speed
|
203
|
+
|
204
|
+
@Speed.setter
|
205
|
+
def Speed(self, Speed):
|
206
|
+
self._Speed = Speed
|
207
|
+
|
208
|
+
@property
|
209
|
+
def SampleRate(self):
|
210
|
+
return self._SampleRate
|
211
|
+
|
212
|
+
@SampleRate.setter
|
213
|
+
def SampleRate(self, SampleRate):
|
214
|
+
self._SampleRate = SampleRate
|
215
|
+
|
216
|
+
|
217
|
+
def _deserialize(self, params):
|
218
|
+
self._Codec = params.get("Codec")
|
219
|
+
self._VoiceType = params.get("VoiceType")
|
220
|
+
self._Volume = params.get("Volume")
|
221
|
+
self._Speed = params.get("Speed")
|
222
|
+
self._SampleRate = params.get("SampleRate")
|
116
223
|
memeber_set = set(params.keys())
|
117
224
|
for name, value in vars(self).items():
|
118
225
|
property_name = name[1:]
|
@@ -257,6 +364,8 @@ yue:粤语
|
|
257
364
|
:type TranslateTime: int
|
258
365
|
:param _Data: 语音分片内容进行 Base64 编码后的字符串。音频内容需包含有效并可识别的文本信息。
|
259
366
|
:type Data: str
|
367
|
+
:param _TTS: TTS播报控制参数
|
368
|
+
:type TTS: :class:`tencentcloud.tsi.v20210325.models.TTS`
|
260
369
|
"""
|
261
370
|
self._SessionUuid = None
|
262
371
|
self._Source = None
|
@@ -267,6 +376,7 @@ yue:粤语
|
|
267
376
|
self._IsEnd = None
|
268
377
|
self._TranslateTime = None
|
269
378
|
self._Data = None
|
379
|
+
self._TTS = None
|
270
380
|
|
271
381
|
@property
|
272
382
|
def SessionUuid(self):
|
@@ -340,6 +450,14 @@ yue:粤语
|
|
340
450
|
def Data(self, Data):
|
341
451
|
self._Data = Data
|
342
452
|
|
453
|
+
@property
|
454
|
+
def TTS(self):
|
455
|
+
return self._TTS
|
456
|
+
|
457
|
+
@TTS.setter
|
458
|
+
def TTS(self, TTS):
|
459
|
+
self._TTS = TTS
|
460
|
+
|
343
461
|
|
344
462
|
def _deserialize(self, params):
|
345
463
|
self._SessionUuid = params.get("SessionUuid")
|
@@ -351,6 +469,9 @@ yue:粤语
|
|
351
469
|
self._IsEnd = params.get("IsEnd")
|
352
470
|
self._TranslateTime = params.get("TranslateTime")
|
353
471
|
self._Data = params.get("Data")
|
472
|
+
if params.get("TTS") is not None:
|
473
|
+
self._TTS = TTS()
|
474
|
+
self._TTS._deserialize(params.get("TTS"))
|
354
475
|
memeber_set = set(params.keys())
|
355
476
|
for name, value in vars(self).items():
|
356
477
|
property_name = name[1:]
|
@@ -421,6 +542,8 @@ yue:粤语
|
|
421
542
|
:type TranslateTime: int
|
422
543
|
:param _Data: 语音分片内容进行 Base64 编码后的字符串。音频内容需包含有效并可识别的文本信息。
|
423
544
|
:type Data: str
|
545
|
+
:param _TTS: TTS播报控制参数
|
546
|
+
:type TTS: :class:`tencentcloud.tsi.v20210325.models.TTS`
|
424
547
|
"""
|
425
548
|
self._SessionUuid = None
|
426
549
|
self._Source = None
|
@@ -431,6 +554,7 @@ yue:粤语
|
|
431
554
|
self._IsEnd = None
|
432
555
|
self._TranslateTime = None
|
433
556
|
self._Data = None
|
557
|
+
self._TTS = None
|
434
558
|
|
435
559
|
@property
|
436
560
|
def SessionUuid(self):
|
@@ -504,6 +628,14 @@ yue:粤语
|
|
504
628
|
def Data(self, Data):
|
505
629
|
self._Data = Data
|
506
630
|
|
631
|
+
@property
|
632
|
+
def TTS(self):
|
633
|
+
return self._TTS
|
634
|
+
|
635
|
+
@TTS.setter
|
636
|
+
def TTS(self, TTS):
|
637
|
+
self._TTS = TTS
|
638
|
+
|
507
639
|
|
508
640
|
def _deserialize(self, params):
|
509
641
|
self._SessionUuid = params.get("SessionUuid")
|
@@ -515,6 +647,9 @@ yue:粤语
|
|
515
647
|
self._IsEnd = params.get("IsEnd")
|
516
648
|
self._TranslateTime = params.get("TranslateTime")
|
517
649
|
self._Data = params.get("Data")
|
650
|
+
if params.get("TTS") is not None:
|
651
|
+
self._TTS = TTS()
|
652
|
+
self._TTS._deserialize(params.get("TTS"))
|
518
653
|
memeber_set = set(params.keys())
|
519
654
|
for name, value in vars(self).items():
|
520
655
|
property_name = name[1:]
|