tencentcloud-sdk-python 3.0.1202__py2.py3-none-any.whl → 3.0.1233__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/aiart/v20221229/aiart_client.py +24 -0
- tencentcloud/aiart/v20221229/models.py +214 -15
- tencentcloud/ams/v20201229/models.py +24 -0
- tencentcloud/antiddos/v20200309/models.py +13 -1
- tencentcloud/apm/v20210622/errorcodes.py +3 -0
- tencentcloud/apm/v20210622/models.py +25 -0
- tencentcloud/asr/v20190614/asr_client.py +103 -1
- tencentcloud/asr/v20190614/errorcodes.py +3 -0
- tencentcloud/asr/v20190614/models.py +620 -0
- tencentcloud/autoscaling/v20180419/errorcodes.py +6 -0
- tencentcloud/autoscaling/v20180419/models.py +67 -20
- tencentcloud/batch/v20170312/models.py +2 -2
- tencentcloud/bi/v20220105/models.py +25 -0
- tencentcloud/billing/v20180709/models.py +155 -0
- tencentcloud/cam/v20190116/cam_client.py +46 -0
- tencentcloud/cam/v20190116/errorcodes.py +6 -0
- tencentcloud/cam/v20190116/models.py +301 -0
- tencentcloud/cbs/v20170312/models.py +1 -1
- tencentcloud/ccc/v20200210/models.py +42 -12
- tencentcloud/cdb/v20170320/cdb_client.py +46 -0
- tencentcloud/cdb/v20170320/models.py +359 -11
- tencentcloud/cdwch/v20200915/models.py +1 -1
- tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +618 -66
- tencentcloud/cdwdoris/v20211228/errorcodes.py +0 -3
- tencentcloud/cdwdoris/v20211228/models.py +8041 -3844
- tencentcloud/cfg/v20210820/models.py +195 -1
- tencentcloud/cfs/v20190719/cfs_client.py +2 -2
- tencentcloud/cfs/v20190719/errorcodes.py +9 -0
- tencentcloud/cfs/v20190719/models.py +55 -5
- tencentcloud/cfw/v20190904/cfw_client.py +46 -25
- tencentcloud/cfw/v20190904/models.py +1056 -249
- tencentcloud/ckafka/v20190819/ckafka_client.py +24 -1
- tencentcloud/ckafka/v20190819/models.py +175 -2
- tencentcloud/clb/v20180317/models.py +147 -3
- tencentcloud/cls/v20201016/cls_client.py +92 -0
- tencentcloud/cls/v20201016/models.py +764 -16
- tencentcloud/controlcenter/__init__.py +0 -0
- tencentcloud/controlcenter/v20230110/__init__.py +0 -0
- tencentcloud/controlcenter/v20230110/controlcenter_client.py +49 -0
- tencentcloud/controlcenter/v20230110/errorcodes.py +45 -0
- tencentcloud/controlcenter/v20230110/models.py +140 -0
- tencentcloud/csip/v20221121/models.py +409 -0
- tencentcloud/cvm/v20170312/cvm_client.py +24 -1
- tencentcloud/cvm/v20170312/errorcodes.py +24 -0
- tencentcloud/cvm/v20170312/models.py +185 -10
- tencentcloud/cwp/v20180228/cwp_client.py +29 -2
- tencentcloud/cwp/v20180228/models.py +314 -13
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +115 -0
- tencentcloud/cynosdb/v20190107/errorcodes.py +3 -0
- tencentcloud/cynosdb/v20190107/models.py +862 -52
- tencentcloud/dasb/v20191018/dasb_client.py +23 -0
- tencentcloud/dasb/v20191018/errorcodes.py +3 -0
- tencentcloud/dasb/v20191018/models.py +277 -0
- tencentcloud/dbbrain/v20210527/models.py +212 -2
- tencentcloud/dc/v20180410/dc_client.py +7 -8
- tencentcloud/dc/v20180410/models.py +84 -25
- tencentcloud/dcdb/v20180411/dcdb_client.py +71 -0
- tencentcloud/dcdb/v20180411/models.py +636 -0
- tencentcloud/dlc/v20210125/dlc_client.py +47 -1
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +661 -6
- tencentcloud/dnspod/v20210323/dnspod_client.py +23 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +3 -0
- tencentcloud/dnspod/v20210323/models.py +185 -0
- tencentcloud/dsgc/v20190723/models.py +193 -15
- tencentcloud/dts/v20211206/errorcodes.py +3 -0
- tencentcloud/ecc/v20181213/ecc_client.py +1 -2
- tencentcloud/emr/v20190103/emr_client.py +331 -4
- tencentcloud/emr/v20190103/errorcodes.py +12 -0
- tencentcloud/emr/v20190103/models.py +6832 -3365
- tencentcloud/es/v20180416/es_client.py +47 -0
- tencentcloud/es/v20180416/models.py +547 -1
- tencentcloud/ess/v20201111/errorcodes.py +6 -0
- tencentcloud/ess/v20201111/ess_client.py +142 -24
- tencentcloud/ess/v20201111/models.py +763 -103
- tencentcloud/essbasic/v20210526/essbasic_client.py +77 -3
- tencentcloud/essbasic/v20210526/models.py +413 -24
- tencentcloud/facefusion/v20181201/models.py +9 -3
- tencentcloud/facefusion/v20220927/errorcodes.py +13 -67
- tencentcloud/facefusion/v20220927/models.py +41 -13
- tencentcloud/faceid/v20180301/faceid_client.py +1 -1
- tencentcloud/faceid/v20180301/models.py +66 -0
- tencentcloud/gme/v20180711/models.py +2 -2
- tencentcloud/goosefs/v20220519/models.py +61 -0
- tencentcloud/hunyuan/v20230901/errorcodes.py +39 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +99 -1
- tencentcloud/hunyuan/v20230901/models.py +661 -13
- tencentcloud/ims/v20201229/ims_client.py +3 -3
- tencentcloud/ims/v20201229/models.py +1 -1
- tencentcloud/ioa/v20220601/models.py +6 -5
- tencentcloud/iotexplorer/v20190423/errorcodes.py +15 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +46 -0
- tencentcloud/iotexplorer/v20190423/models.py +357 -2
- tencentcloud/irp/v20220805/models.py +13 -1
- tencentcloud/iss/v20230517/errorcodes.py +15 -0
- tencentcloud/iss/v20230517/iss_client.py +23 -0
- tencentcloud/iss/v20230517/models.py +233 -0
- tencentcloud/lcic/v20220817/lcic_client.py +23 -0
- tencentcloud/lcic/v20220817/models.py +285 -0
- tencentcloud/lighthouse/v20200324/errorcodes.py +6 -0
- tencentcloud/lighthouse/v20200324/models.py +28 -0
- tencentcloud/live/v20180801/models.py +2 -10
- tencentcloud/lke/v20231130/errorcodes.py +1 -1
- tencentcloud/lke/v20231130/lke_client.py +1 -1
- tencentcloud/lke/v20231130/models.py +366 -6
- tencentcloud/mariadb/v20170312/errorcodes.py +6 -0
- tencentcloud/mariadb/v20170312/mariadb_client.py +71 -0
- tencentcloud/mariadb/v20170312/models.py +601 -1
- tencentcloud/mna/v20210119/errorcodes.py +6 -0
- tencentcloud/mna/v20210119/mna_client.py +23 -0
- tencentcloud/mna/v20210119/models.py +146 -0
- tencentcloud/mongodb/v20180408/errorcodes.py +1 -1
- tencentcloud/mongodb/v20190725/errorcodes.py +1 -1
- tencentcloud/mongodb/v20190725/models.py +72 -45
- tencentcloud/monitor/v20180724/models.py +18 -4
- tencentcloud/mps/v20190612/models.py +658 -21
- tencentcloud/oceanus/v20190422/models.py +25 -0
- tencentcloud/ocr/v20181119/errorcodes.py +6 -0
- tencentcloud/ocr/v20181119/models.py +345 -10
- tencentcloud/ocr/v20181119/ocr_client.py +54 -2
- tencentcloud/omics/v20221128/models.py +15 -3
- tencentcloud/organization/v20210331/errorcodes.py +246 -0
- tencentcloud/organization/v20210331/models.py +12635 -4016
- tencentcloud/organization/v20210331/organization_client.py +1342 -123
- tencentcloud/postgres/v20170312/errorcodes.py +15 -0
- tencentcloud/pts/v20210728/errorcodes.py +3 -0
- tencentcloud/pts/v20210728/models.py +1 -1
- tencentcloud/rce/v20201103/models.py +2905 -435
- tencentcloud/rce/v20201103/rce_client.py +207 -0
- tencentcloud/redis/v20180412/models.py +944 -67
- tencentcloud/redis/v20180412/redis_client.py +93 -1
- tencentcloud/region/v20220627/models.py +0 -1
- tencentcloud/rum/v20210622/models.py +12 -0
- tencentcloud/scf/v20180416/models.py +51 -15
- tencentcloud/ses/v20201002/models.py +177 -0
- tencentcloud/smh/v20210712/errorcodes.py +69 -0
- tencentcloud/smh/v20210712/models.py +1173 -36
- tencentcloud/smh/v20210712/smh_client.py +115 -0
- tencentcloud/sms/v20190711/errorcodes.py +6 -0
- tencentcloud/sms/v20190711/models.py +21 -22
- tencentcloud/sms/v20190711/sms_client.py +28 -60
- tencentcloud/sms/v20210111/errorcodes.py +6 -0
- tencentcloud/sms/v20210111/models.py +6 -6
- tencentcloud/sqlserver/v20180328/errorcodes.py +3 -0
- tencentcloud/sqlserver/v20180328/models.py +243 -1
- tencentcloud/sqlserver/v20180328/sqlserver_client.py +46 -0
- tencentcloud/ssl/v20191205/errorcodes.py +6 -0
- tencentcloud/ssl/v20191205/models.py +245 -0
- tencentcloud/ssl/v20191205/ssl_client.py +24 -1
- tencentcloud/tag/v20180813/models.py +33 -33
- tencentcloud/tat/v20201028/errorcodes.py +9 -0
- tencentcloud/tat/v20201028/models.py +234 -1
- tencentcloud/tat/v20201028/tat_client.py +23 -0
- tencentcloud/tcb/v20180608/models.py +13 -0
- tencentcloud/tcbr/v20220217/models.py +15 -0
- tencentcloud/tcr/v20190924/errorcodes.py +3 -0
- tencentcloud/tcss/v20201101/models.py +140 -5
- tencentcloud/tdmq/v20200217/models.py +155 -0
- tencentcloud/tds/v20220801/models.py +117 -0
- tencentcloud/teo/v20220901/errorcodes.py +12 -0
- tencentcloud/teo/v20220901/models.py +35 -16
- tencentcloud/thpc/v20230321/models.py +1432 -82
- tencentcloud/thpc/v20230321/thpc_client.py +92 -0
- tencentcloud/tiia/v20190529/models.py +0 -469
- tencentcloud/tiia/v20190529/tiia_client.py +0 -29
- tencentcloud/tke/v20180525/errorcodes.py +3 -0
- tencentcloud/tke/v20180525/models.py +24 -0
- tencentcloud/tke/v20220501/models.py +852 -8
- tencentcloud/tke/v20220501/tke_client.py +138 -0
- tencentcloud/tms/v20201229/errorcodes.py +0 -6
- tencentcloud/tms/v20201229/models.py +0 -70
- tencentcloud/tms/v20201229/tms_client.py +0 -23
- tencentcloud/tmt/v20180321/errorcodes.py +3 -0
- tencentcloud/tmt/v20180321/models.py +32 -32
- tencentcloud/tmt/v20180321/tmt_client.py +1 -1
- tencentcloud/trocket/v20230308/models.py +241 -7
- tencentcloud/trocket/v20230308/trocket_client.py +23 -0
- tencentcloud/trtc/v20190722/errorcodes.py +3 -0
- tencentcloud/trtc/v20190722/models.py +374 -55
- tencentcloud/trtc/v20190722/trtc_client.py +51 -39
- tencentcloud/tse/v20201207/models.py +127 -25
- tencentcloud/tsf/v20180326/models.py +51 -0
- tencentcloud/tsi/v20210325/models.py +24 -4
- tencentcloud/tsi/v20210325/tsi_client.py +12 -1
- tencentcloud/tts/v20190823/models.py +4 -3
- tencentcloud/vclm/v20240523/errorcodes.py +60 -0
- tencentcloud/vclm/v20240523/models.py +41 -4
- tencentcloud/vclm/v20240523/vclm_client.py +53 -1
- tencentcloud/vdb/v20230616/errorcodes.py +21 -0
- tencentcloud/vdb/v20230616/models.py +805 -0
- tencentcloud/vdb/v20230616/vdb_client.py +115 -0
- tencentcloud/vod/v20180717/errorcodes.py +18 -0
- tencentcloud/vod/v20180717/models.py +671 -12
- tencentcloud/vod/v20180717/vod_client.py +71 -2
- tencentcloud/vod/v20240718/__init__.py +0 -0
- tencentcloud/vod/v20240718/errorcodes.py +15 -0
- tencentcloud/vod/v20240718/models.py +189 -0
- tencentcloud/vod/v20240718/vod_client.py +49 -0
- tencentcloud/vpc/v20170312/models.py +538 -10
- tencentcloud/vpc/v20170312/vpc_client.py +4 -2
- tencentcloud/vrs/v20200824/models.py +166 -8
- tencentcloud/vrs/v20200824/vrs_client.py +2 -0
- tencentcloud/vtc/v20240223/models.py +30 -4
- tencentcloud/vtc/v20240223/vtc_client.py +53 -1
- tencentcloud/waf/v20180125/models.py +1 -1
- tencentcloud/wedata/v20210820/errorcodes.py +6 -0
- tencentcloud/wedata/v20210820/models.py +3941 -493
- tencentcloud/wedata/v20210820/wedata_client.py +184 -0
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/RECORD +214 -205
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1202.dist-info → tencentcloud_sdk_python-3.0.1233.dist-info}/top_level.txt +0 -0
@@ -1015,7 +1015,9 @@ class TrtcClient(AbstractClient):
|
|
1015
1015
|
|
1016
1016
|
|
1017
1017
|
def StartAIConversation(self, request):
|
1018
|
-
"""
|
1018
|
+
"""启动AI对话任务,AI通道机器人进入TRTC房间,与房间内指定的成员进行AI对话,适用于智能客服,AI口语教师等场景
|
1019
|
+
|
1020
|
+
TRTC AI对话功能内置语音转文本能力,同时提供通道服务,即客户可灵活指定第三方AI模型(LLM)服务和文本转音频(TTS)服务,更多[功能说明](https://cloud.tencent.com/document/product/647/108901)。
|
1019
1021
|
|
1020
1022
|
:param request: Request instance for StartAIConversation.
|
1021
1023
|
:type request: :class:`tencentcloud.trtc.v20190722.models.StartAIConversationRequest`
|
@@ -1038,48 +1040,12 @@ class TrtcClient(AbstractClient):
|
|
1038
1040
|
|
1039
1041
|
|
1040
1042
|
def StartAITranscription(self, request):
|
1041
|
-
"""
|
1043
|
+
"""启动转录机器人,后台会通过机器人拉流进行实时进行语音识别并下发字幕和转录消息。
|
1042
1044
|
转录机器人支持两种拉流方式,通过TranscriptionMode字段控制:
|
1043
1045
|
- 拉取全房间的流。
|
1044
1046
|
- 拉取特定用户的流。
|
1045
1047
|
|
1046
|
-
服务端通过TRTC
|
1047
|
-
|
1048
|
-
服务端实时下发的消息是JSON字符串,实时字幕具体格式如下:
|
1049
|
-
`{
|
1050
|
-
"type": "subtitle",
|
1051
|
-
"userid": "xxx",
|
1052
|
-
"text": "xxx",
|
1053
|
-
"translation_text": "xxx",
|
1054
|
-
"start_time": "00:00:02",
|
1055
|
-
"end_time": "00:00:05"
|
1056
|
-
}`
|
1057
|
-
字段作用如下:
|
1058
|
-
- type是subtitle,表示这是实时字幕消息。
|
1059
|
-
- userid表示是哪个用户说的话。
|
1060
|
-
- text是语音识别出的文本。
|
1061
|
-
- translation_text是text翻译后的文本,如果不启用翻译,则是空字符串。
|
1062
|
-
- start_time和end_time表示该字幕消息从任务开启后的开始和结束时间。
|
1063
|
-
|
1064
|
-
转录消息具体格式如下:
|
1065
|
-
`{
|
1066
|
-
"type": "transcription",
|
1067
|
-
"userid": "xxx",
|
1068
|
-
"text": "xxx",
|
1069
|
-
"translation_text": "xx",
|
1070
|
-
"start_time": "00:00:02",
|
1071
|
-
"end_time": "00:00:05"
|
1072
|
-
}`
|
1073
|
-
字段作用如下:
|
1074
|
-
- type是transcription,表示这是转录消息。
|
1075
|
-
- 其余字段同实时字幕消息。
|
1076
|
-
|
1077
|
-
转录消息和实时字幕消息的区别是,转录消息是完整的一句话,实时字幕消息则是这一句话的中间阶段。
|
1078
|
-
假如有一句完整的话,“今天天气怎么样?”,那么服务的下发消息的顺序可能是这样:
|
1079
|
-
- 字幕消息,“今天”
|
1080
|
-
- 字幕消息,“今天天气”
|
1081
|
-
- 字幕消息,“今天天气怎么样”
|
1082
|
-
- 转录消息,“今天天气怎么样?”
|
1048
|
+
服务端通过TRTC的自定义消息实时下发字幕以及转录消息,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。
|
1083
1049
|
|
1084
1050
|
:param request: Request instance for StartAITranscription.
|
1085
1051
|
:type request: :class:`tencentcloud.trtc.v20190722.models.StartAITranscriptionRequest`
|
@@ -1452,6 +1418,29 @@ class TrtcClient(AbstractClient):
|
|
1452
1418
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1453
1419
|
|
1454
1420
|
|
1421
|
+
def UpdateAIConversation(self, request):
|
1422
|
+
"""更新AIConversation参数
|
1423
|
+
|
1424
|
+
:param request: Request instance for UpdateAIConversation.
|
1425
|
+
:type request: :class:`tencentcloud.trtc.v20190722.models.UpdateAIConversationRequest`
|
1426
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.UpdateAIConversationResponse`
|
1427
|
+
|
1428
|
+
"""
|
1429
|
+
try:
|
1430
|
+
params = request._serialize()
|
1431
|
+
headers = request.headers
|
1432
|
+
body = self.call("UpdateAIConversation", params, headers=headers)
|
1433
|
+
response = json.loads(body)
|
1434
|
+
model = models.UpdateAIConversationResponse()
|
1435
|
+
model._deserialize(response["Response"])
|
1436
|
+
return model
|
1437
|
+
except Exception as e:
|
1438
|
+
if isinstance(e, TencentCloudSDKException):
|
1439
|
+
raise
|
1440
|
+
else:
|
1441
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1442
|
+
|
1443
|
+
|
1455
1444
|
def UpdatePublishCdnStream(self, request):
|
1456
1445
|
"""接口说明:
|
1457
1446
|
成功发起混流转推后,可以使用此接口来更新任务。仅在任务进行时有效,任务退出后更新将会返回错误。更新操作为增量更新模式。
|
@@ -1470,6 +1459,29 @@ class TrtcClient(AbstractClient):
|
|
1470
1459
|
model = models.UpdatePublishCdnStreamResponse()
|
1471
1460
|
model._deserialize(response["Response"])
|
1472
1461
|
return model
|
1462
|
+
except Exception as e:
|
1463
|
+
if isinstance(e, TencentCloudSDKException):
|
1464
|
+
raise
|
1465
|
+
else:
|
1466
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
1467
|
+
|
1468
|
+
|
1469
|
+
def UpdateStreamIngest(self, request):
|
1470
|
+
"""更新输入在线媒体流任务的StreamUrl
|
1471
|
+
|
1472
|
+
:param request: Request instance for UpdateStreamIngest.
|
1473
|
+
:type request: :class:`tencentcloud.trtc.v20190722.models.UpdateStreamIngestRequest`
|
1474
|
+
:rtype: :class:`tencentcloud.trtc.v20190722.models.UpdateStreamIngestResponse`
|
1475
|
+
|
1476
|
+
"""
|
1477
|
+
try:
|
1478
|
+
params = request._serialize()
|
1479
|
+
headers = request.headers
|
1480
|
+
body = self.call("UpdateStreamIngest", params, headers=headers)
|
1481
|
+
response = json.loads(body)
|
1482
|
+
model = models.UpdateStreamIngestResponse()
|
1483
|
+
model._deserialize(response["Response"])
|
1484
|
+
return model
|
1473
1485
|
except Exception as e:
|
1474
1486
|
if isinstance(e, TencentCloudSDKException):
|
1475
1487
|
raise
|
@@ -5265,8 +5265,6 @@ class CreateCloudNativeAPIGatewayServiceRequest(AbstractModel):
|
|
5265
5265
|
- tcp
|
5266
5266
|
- udp
|
5267
5267
|
:type Protocol: str
|
5268
|
-
:param _Path: 请求路径
|
5269
|
-
:type Path: str
|
5270
5268
|
:param _Timeout: 超时时间,单位ms
|
5271
5269
|
:type Timeout: int
|
5272
5270
|
:param _Retries: 重试次数
|
@@ -5280,15 +5278,17 @@ class CreateCloudNativeAPIGatewayServiceRequest(AbstractModel):
|
|
5280
5278
|
:type UpstreamType: str
|
5281
5279
|
:param _UpstreamInfo: 服务配置信息
|
5282
5280
|
:type UpstreamInfo: :class:`tencentcloud.tse.v20201207.models.KongUpstreamInfo`
|
5281
|
+
:param _Path: 请求路径
|
5282
|
+
:type Path: str
|
5283
5283
|
"""
|
5284
5284
|
self._GatewayId = None
|
5285
5285
|
self._Name = None
|
5286
5286
|
self._Protocol = None
|
5287
|
-
self._Path = None
|
5288
5287
|
self._Timeout = None
|
5289
5288
|
self._Retries = None
|
5290
5289
|
self._UpstreamType = None
|
5291
5290
|
self._UpstreamInfo = None
|
5291
|
+
self._Path = None
|
5292
5292
|
|
5293
5293
|
@property
|
5294
5294
|
def GatewayId(self):
|
@@ -5314,14 +5314,6 @@ class CreateCloudNativeAPIGatewayServiceRequest(AbstractModel):
|
|
5314
5314
|
def Protocol(self, Protocol):
|
5315
5315
|
self._Protocol = Protocol
|
5316
5316
|
|
5317
|
-
@property
|
5318
|
-
def Path(self):
|
5319
|
-
return self._Path
|
5320
|
-
|
5321
|
-
@Path.setter
|
5322
|
-
def Path(self, Path):
|
5323
|
-
self._Path = Path
|
5324
|
-
|
5325
5317
|
@property
|
5326
5318
|
def Timeout(self):
|
5327
5319
|
return self._Timeout
|
@@ -5354,18 +5346,26 @@ class CreateCloudNativeAPIGatewayServiceRequest(AbstractModel):
|
|
5354
5346
|
def UpstreamInfo(self, UpstreamInfo):
|
5355
5347
|
self._UpstreamInfo = UpstreamInfo
|
5356
5348
|
|
5349
|
+
@property
|
5350
|
+
def Path(self):
|
5351
|
+
return self._Path
|
5352
|
+
|
5353
|
+
@Path.setter
|
5354
|
+
def Path(self, Path):
|
5355
|
+
self._Path = Path
|
5356
|
+
|
5357
5357
|
|
5358
5358
|
def _deserialize(self, params):
|
5359
5359
|
self._GatewayId = params.get("GatewayId")
|
5360
5360
|
self._Name = params.get("Name")
|
5361
5361
|
self._Protocol = params.get("Protocol")
|
5362
|
-
self._Path = params.get("Path")
|
5363
5362
|
self._Timeout = params.get("Timeout")
|
5364
5363
|
self._Retries = params.get("Retries")
|
5365
5364
|
self._UpstreamType = params.get("UpstreamType")
|
5366
5365
|
if params.get("UpstreamInfo") is not None:
|
5367
5366
|
self._UpstreamInfo = KongUpstreamInfo()
|
5368
5367
|
self._UpstreamInfo._deserialize(params.get("UpstreamInfo"))
|
5368
|
+
self._Path = params.get("Path")
|
5369
5369
|
memeber_set = set(params.keys())
|
5370
5370
|
for name, value in vars(self).items():
|
5371
5371
|
property_name = name[1:]
|
@@ -5633,7 +5633,8 @@ polarismesh - STANDARD版本
|
|
5633
5633
|
- ap-jakarta:雅加达
|
5634
5634
|
- ap-singapore:新加坡
|
5635
5635
|
北美区 参考值
|
5636
|
-
- na-
|
5636
|
+
- na-siliconvalley:硅谷
|
5637
|
+
- na-ashburn: 弗吉尼亚
|
5637
5638
|
金融专区 参考值
|
5638
5639
|
- ap-beijing-fsi:北京金融
|
5639
5640
|
- ap-shanghai-fsi:上海金融
|
@@ -11924,6 +11925,8 @@ class DescribeGovernanceInstancesRequest(AbstractModel):
|
|
11924
11925
|
:type Offset: int
|
11925
11926
|
:param _Limit: 返回数量,默认为20,最大值为100。
|
11926
11927
|
:type Limit: int
|
11928
|
+
:param _Location: 地域
|
11929
|
+
:type Location: :class:`tencentcloud.tse.v20201207.models.Location`
|
11927
11930
|
"""
|
11928
11931
|
self._Service = None
|
11929
11932
|
self._Namespace = None
|
@@ -11936,6 +11939,7 @@ class DescribeGovernanceInstancesRequest(AbstractModel):
|
|
11936
11939
|
self._Metadatas = None
|
11937
11940
|
self._Offset = None
|
11938
11941
|
self._Limit = None
|
11942
|
+
self._Location = None
|
11939
11943
|
|
11940
11944
|
@property
|
11941
11945
|
def Service(self):
|
@@ -12025,6 +12029,14 @@ class DescribeGovernanceInstancesRequest(AbstractModel):
|
|
12025
12029
|
def Limit(self, Limit):
|
12026
12030
|
self._Limit = Limit
|
12027
12031
|
|
12032
|
+
@property
|
12033
|
+
def Location(self):
|
12034
|
+
return self._Location
|
12035
|
+
|
12036
|
+
@Location.setter
|
12037
|
+
def Location(self, Location):
|
12038
|
+
self._Location = Location
|
12039
|
+
|
12028
12040
|
|
12029
12041
|
def _deserialize(self, params):
|
12030
12042
|
self._Service = params.get("Service")
|
@@ -12043,6 +12055,9 @@ class DescribeGovernanceInstancesRequest(AbstractModel):
|
|
12043
12055
|
self._Metadatas.append(obj)
|
12044
12056
|
self._Offset = params.get("Offset")
|
12045
12057
|
self._Limit = params.get("Limit")
|
12058
|
+
if params.get("Location") is not None:
|
12059
|
+
self._Location = Location()
|
12060
|
+
self._Location._deserialize(params.get("Location"))
|
12046
12061
|
memeber_set = set(params.keys())
|
12047
12062
|
for name, value in vars(self).items():
|
12048
12063
|
property_name = name[1:]
|
@@ -12064,11 +12079,14 @@ class DescribeGovernanceInstancesResponse(AbstractModel):
|
|
12064
12079
|
:type TotalCount: int
|
12065
12080
|
:param _Content: 服务里实例列表。
|
12066
12081
|
:type Content: list of GovernanceInstance
|
12082
|
+
:param _Location: 地域
|
12083
|
+
:type Location: :class:`tencentcloud.tse.v20201207.models.Location`
|
12067
12084
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
12068
12085
|
:type RequestId: str
|
12069
12086
|
"""
|
12070
12087
|
self._TotalCount = None
|
12071
12088
|
self._Content = None
|
12089
|
+
self._Location = None
|
12072
12090
|
self._RequestId = None
|
12073
12091
|
|
12074
12092
|
@property
|
@@ -12087,6 +12105,14 @@ class DescribeGovernanceInstancesResponse(AbstractModel):
|
|
12087
12105
|
def Content(self, Content):
|
12088
12106
|
self._Content = Content
|
12089
12107
|
|
12108
|
+
@property
|
12109
|
+
def Location(self):
|
12110
|
+
return self._Location
|
12111
|
+
|
12112
|
+
@Location.setter
|
12113
|
+
def Location(self, Location):
|
12114
|
+
self._Location = Location
|
12115
|
+
|
12090
12116
|
@property
|
12091
12117
|
def RequestId(self):
|
12092
12118
|
return self._RequestId
|
@@ -12104,6 +12130,9 @@ class DescribeGovernanceInstancesResponse(AbstractModel):
|
|
12104
12130
|
obj = GovernanceInstance()
|
12105
12131
|
obj._deserialize(item)
|
12106
12132
|
self._Content.append(obj)
|
12133
|
+
if params.get("Location") is not None:
|
12134
|
+
self._Location = Location()
|
12135
|
+
self._Location._deserialize(params.get("Location"))
|
12107
12136
|
self._RequestId = params.get("RequestId")
|
12108
12137
|
|
12109
12138
|
|
@@ -17389,10 +17418,14 @@ class KongActiveHealthCheck(AbstractModel):
|
|
17389
17418
|
:param _HttpPath: 在 GET HTTP 请求中使用的路径,以作为主动运行状况检查的探测器运行。默认: ”/”。
|
17390
17419
|
注意:此字段可能返回 null,表示取不到有效值。
|
17391
17420
|
:type HttpPath: str
|
17421
|
+
:param _Timeout: GET HTTP 请求的超时时间,单位:秒。默认 60。
|
17422
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
17423
|
+
:type Timeout: float
|
17392
17424
|
"""
|
17393
17425
|
self._HealthyInterval = None
|
17394
17426
|
self._UnHealthyInterval = None
|
17395
17427
|
self._HttpPath = None
|
17428
|
+
self._Timeout = None
|
17396
17429
|
|
17397
17430
|
@property
|
17398
17431
|
def HealthyInterval(self):
|
@@ -17418,11 +17451,20 @@ class KongActiveHealthCheck(AbstractModel):
|
|
17418
17451
|
def HttpPath(self, HttpPath):
|
17419
17452
|
self._HttpPath = HttpPath
|
17420
17453
|
|
17454
|
+
@property
|
17455
|
+
def Timeout(self):
|
17456
|
+
return self._Timeout
|
17457
|
+
|
17458
|
+
@Timeout.setter
|
17459
|
+
def Timeout(self, Timeout):
|
17460
|
+
self._Timeout = Timeout
|
17461
|
+
|
17421
17462
|
|
17422
17463
|
def _deserialize(self, params):
|
17423
17464
|
self._HealthyInterval = params.get("HealthyInterval")
|
17424
17465
|
self._UnHealthyInterval = params.get("UnHealthyInterval")
|
17425
17466
|
self._HttpPath = params.get("HttpPath")
|
17467
|
+
self._Timeout = params.get("Timeout")
|
17426
17468
|
memeber_set = set(params.keys())
|
17427
17469
|
for name, value in vars(self).items():
|
17428
17470
|
property_name = name[1:]
|
@@ -19215,6 +19257,66 @@ class ListFilter(AbstractModel):
|
|
19215
19257
|
|
19216
19258
|
|
19217
19259
|
|
19260
|
+
class Location(AbstractModel):
|
19261
|
+
"""新增Location字段,展示zone/region/campus
|
19262
|
+
|
19263
|
+
"""
|
19264
|
+
|
19265
|
+
def __init__(self):
|
19266
|
+
r"""
|
19267
|
+
:param _Region: 大区
|
19268
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
19269
|
+
:type Region: str
|
19270
|
+
:param _Zone: 可用区
|
19271
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
19272
|
+
:type Zone: str
|
19273
|
+
:param _Campus: 机房
|
19274
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
19275
|
+
:type Campus: str
|
19276
|
+
"""
|
19277
|
+
self._Region = None
|
19278
|
+
self._Zone = None
|
19279
|
+
self._Campus = None
|
19280
|
+
|
19281
|
+
@property
|
19282
|
+
def Region(self):
|
19283
|
+
return self._Region
|
19284
|
+
|
19285
|
+
@Region.setter
|
19286
|
+
def Region(self, Region):
|
19287
|
+
self._Region = Region
|
19288
|
+
|
19289
|
+
@property
|
19290
|
+
def Zone(self):
|
19291
|
+
return self._Zone
|
19292
|
+
|
19293
|
+
@Zone.setter
|
19294
|
+
def Zone(self, Zone):
|
19295
|
+
self._Zone = Zone
|
19296
|
+
|
19297
|
+
@property
|
19298
|
+
def Campus(self):
|
19299
|
+
return self._Campus
|
19300
|
+
|
19301
|
+
@Campus.setter
|
19302
|
+
def Campus(self, Campus):
|
19303
|
+
self._Campus = Campus
|
19304
|
+
|
19305
|
+
|
19306
|
+
def _deserialize(self, params):
|
19307
|
+
self._Region = params.get("Region")
|
19308
|
+
self._Zone = params.get("Zone")
|
19309
|
+
self._Campus = params.get("Campus")
|
19310
|
+
memeber_set = set(params.keys())
|
19311
|
+
for name, value in vars(self).items():
|
19312
|
+
property_name = name[1:]
|
19313
|
+
if property_name in memeber_set:
|
19314
|
+
memeber_set.remove(property_name)
|
19315
|
+
if len(memeber_set) > 0:
|
19316
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
19317
|
+
|
19318
|
+
|
19319
|
+
|
19218
19320
|
class Metadata(AbstractModel):
|
19219
19321
|
"""元数据信息
|
19220
19322
|
|
@@ -20212,8 +20314,6 @@ class ModifyCloudNativeAPIGatewayServiceRequest(AbstractModel):
|
|
20212
20314
|
- tcp
|
20213
20315
|
- udp
|
20214
20316
|
:type Protocol: str
|
20215
|
-
:param _Path: 请求路径
|
20216
|
-
:type Path: str
|
20217
20317
|
:param _Timeout: 超时时间,单位ms
|
20218
20318
|
:type Timeout: int
|
20219
20319
|
:param _Retries: 重试次数
|
@@ -20229,16 +20329,18 @@ class ModifyCloudNativeAPIGatewayServiceRequest(AbstractModel):
|
|
20229
20329
|
:type UpstreamInfo: :class:`tencentcloud.tse.v20201207.models.KongUpstreamInfo`
|
20230
20330
|
:param _ID: 服务ID
|
20231
20331
|
:type ID: str
|
20332
|
+
:param _Path: 请求路径
|
20333
|
+
:type Path: str
|
20232
20334
|
"""
|
20233
20335
|
self._GatewayId = None
|
20234
20336
|
self._Name = None
|
20235
20337
|
self._Protocol = None
|
20236
|
-
self._Path = None
|
20237
20338
|
self._Timeout = None
|
20238
20339
|
self._Retries = None
|
20239
20340
|
self._UpstreamType = None
|
20240
20341
|
self._UpstreamInfo = None
|
20241
20342
|
self._ID = None
|
20343
|
+
self._Path = None
|
20242
20344
|
|
20243
20345
|
@property
|
20244
20346
|
def GatewayId(self):
|
@@ -20264,14 +20366,6 @@ class ModifyCloudNativeAPIGatewayServiceRequest(AbstractModel):
|
|
20264
20366
|
def Protocol(self, Protocol):
|
20265
20367
|
self._Protocol = Protocol
|
20266
20368
|
|
20267
|
-
@property
|
20268
|
-
def Path(self):
|
20269
|
-
return self._Path
|
20270
|
-
|
20271
|
-
@Path.setter
|
20272
|
-
def Path(self, Path):
|
20273
|
-
self._Path = Path
|
20274
|
-
|
20275
20369
|
@property
|
20276
20370
|
def Timeout(self):
|
20277
20371
|
return self._Timeout
|
@@ -20312,12 +20406,19 @@ class ModifyCloudNativeAPIGatewayServiceRequest(AbstractModel):
|
|
20312
20406
|
def ID(self, ID):
|
20313
20407
|
self._ID = ID
|
20314
20408
|
|
20409
|
+
@property
|
20410
|
+
def Path(self):
|
20411
|
+
return self._Path
|
20412
|
+
|
20413
|
+
@Path.setter
|
20414
|
+
def Path(self, Path):
|
20415
|
+
self._Path = Path
|
20416
|
+
|
20315
20417
|
|
20316
20418
|
def _deserialize(self, params):
|
20317
20419
|
self._GatewayId = params.get("GatewayId")
|
20318
20420
|
self._Name = params.get("Name")
|
20319
20421
|
self._Protocol = params.get("Protocol")
|
20320
|
-
self._Path = params.get("Path")
|
20321
20422
|
self._Timeout = params.get("Timeout")
|
20322
20423
|
self._Retries = params.get("Retries")
|
20323
20424
|
self._UpstreamType = params.get("UpstreamType")
|
@@ -20325,6 +20426,7 @@ class ModifyCloudNativeAPIGatewayServiceRequest(AbstractModel):
|
|
20325
20426
|
self._UpstreamInfo = KongUpstreamInfo()
|
20326
20427
|
self._UpstreamInfo._deserialize(params.get("UpstreamInfo"))
|
20327
20428
|
self._ID = params.get("ID")
|
20429
|
+
self._Path = params.get("Path")
|
20328
20430
|
memeber_set = set(params.keys())
|
20329
20431
|
for name, value in vars(self).items():
|
20330
20432
|
property_name = name[1:]
|
@@ -1479,6 +1479,15 @@ class ApiRateLimitRule(AbstractModel):
|
|
1479
1479
|
:param _UpdatedTime: 更新时间
|
1480
1480
|
注意:此字段可能返回 null,表示取不到有效值。
|
1481
1481
|
:type UpdatedTime: str
|
1482
|
+
:param _Limit: 分页参数limit
|
1483
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1484
|
+
:type Limit: int
|
1485
|
+
:param _Offset: 分页参数offset
|
1486
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1487
|
+
:type Offset: int
|
1488
|
+
:param _AppId: AppId
|
1489
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1490
|
+
:type AppId: str
|
1482
1491
|
"""
|
1483
1492
|
self._RuleId = None
|
1484
1493
|
self._ApiId = None
|
@@ -1490,6 +1499,9 @@ class ApiRateLimitRule(AbstractModel):
|
|
1490
1499
|
self._Description = None
|
1491
1500
|
self._CreatedTime = None
|
1492
1501
|
self._UpdatedTime = None
|
1502
|
+
self._Limit = None
|
1503
|
+
self._Offset = None
|
1504
|
+
self._AppId = None
|
1493
1505
|
|
1494
1506
|
@property
|
1495
1507
|
def RuleId(self):
|
@@ -1571,6 +1583,30 @@ class ApiRateLimitRule(AbstractModel):
|
|
1571
1583
|
def UpdatedTime(self, UpdatedTime):
|
1572
1584
|
self._UpdatedTime = UpdatedTime
|
1573
1585
|
|
1586
|
+
@property
|
1587
|
+
def Limit(self):
|
1588
|
+
return self._Limit
|
1589
|
+
|
1590
|
+
@Limit.setter
|
1591
|
+
def Limit(self, Limit):
|
1592
|
+
self._Limit = Limit
|
1593
|
+
|
1594
|
+
@property
|
1595
|
+
def Offset(self):
|
1596
|
+
return self._Offset
|
1597
|
+
|
1598
|
+
@Offset.setter
|
1599
|
+
def Offset(self, Offset):
|
1600
|
+
self._Offset = Offset
|
1601
|
+
|
1602
|
+
@property
|
1603
|
+
def AppId(self):
|
1604
|
+
return self._AppId
|
1605
|
+
|
1606
|
+
@AppId.setter
|
1607
|
+
def AppId(self, AppId):
|
1608
|
+
self._AppId = AppId
|
1609
|
+
|
1574
1610
|
|
1575
1611
|
def _deserialize(self, params):
|
1576
1612
|
self._RuleId = params.get("RuleId")
|
@@ -1583,6 +1619,9 @@ class ApiRateLimitRule(AbstractModel):
|
|
1583
1619
|
self._Description = params.get("Description")
|
1584
1620
|
self._CreatedTime = params.get("CreatedTime")
|
1585
1621
|
self._UpdatedTime = params.get("UpdatedTime")
|
1622
|
+
self._Limit = params.get("Limit")
|
1623
|
+
self._Offset = params.get("Offset")
|
1624
|
+
self._AppId = params.get("AppId")
|
1586
1625
|
memeber_set = set(params.keys())
|
1587
1626
|
for name, value in vars(self).items():
|
1588
1627
|
property_name = name[1:]
|
@@ -7040,9 +7079,12 @@ class CreateAllGatewayApiAsyncRequest(AbstractModel):
|
|
7040
7079
|
:type GroupId: str
|
7041
7080
|
:param _MicroserviceId: 微服务ID
|
7042
7081
|
:type MicroserviceId: str
|
7082
|
+
:param _NamespaceId: 命名空间ID
|
7083
|
+
:type NamespaceId: str
|
7043
7084
|
"""
|
7044
7085
|
self._GroupId = None
|
7045
7086
|
self._MicroserviceId = None
|
7087
|
+
self._NamespaceId = None
|
7046
7088
|
|
7047
7089
|
@property
|
7048
7090
|
def GroupId(self):
|
@@ -7060,10 +7102,19 @@ class CreateAllGatewayApiAsyncRequest(AbstractModel):
|
|
7060
7102
|
def MicroserviceId(self, MicroserviceId):
|
7061
7103
|
self._MicroserviceId = MicroserviceId
|
7062
7104
|
|
7105
|
+
@property
|
7106
|
+
def NamespaceId(self):
|
7107
|
+
return self._NamespaceId
|
7108
|
+
|
7109
|
+
@NamespaceId.setter
|
7110
|
+
def NamespaceId(self, NamespaceId):
|
7111
|
+
self._NamespaceId = NamespaceId
|
7112
|
+
|
7063
7113
|
|
7064
7114
|
def _deserialize(self, params):
|
7065
7115
|
self._GroupId = params.get("GroupId")
|
7066
7116
|
self._MicroserviceId = params.get("MicroserviceId")
|
7117
|
+
self._NamespaceId = params.get("NamespaceId")
|
7067
7118
|
memeber_set = set(params.keys())
|
7068
7119
|
for name, value in vars(self).items():
|
7069
7120
|
property_name = name[1:]
|
@@ -231,9 +231,19 @@ class TongChuanRecognizeRequest(AbstractModel):
|
|
231
231
|
r"""
|
232
232
|
:param _SessionUuid: 一段完整的语音对应一个SessionUuid
|
233
233
|
:type SessionUuid: str
|
234
|
-
:param _Source:
|
234
|
+
:param _Source: 源语言,支持:
|
235
|
+
zh:中文
|
236
|
+
en:英语
|
237
|
+
ja:日语
|
238
|
+
ko:韩语
|
239
|
+
yue:粤语
|
235
240
|
:type Source: str
|
236
|
-
:param _Target:
|
241
|
+
:param _Target: 目标语言,各源语言的目标语言支持列表如下
|
242
|
+
<li>zh(中文):en(英语)、ja(日语)、ko(韩语)、yue(粤语)</li>
|
243
|
+
<li>en(英语):zh(中文)</li>
|
244
|
+
<li>ja(日语):zh(中文)</li>
|
245
|
+
<li>ko(韩语):zh(中文)</li>
|
246
|
+
<li>yue(粤语):zh(中文)</li>
|
237
247
|
:type Target: str
|
238
248
|
:param _AudioFormat: 语音编码类型,1-pcm
|
239
249
|
:type AudioFormat: int
|
@@ -385,9 +395,19 @@ class TongChuanSyncRequest(AbstractModel):
|
|
385
395
|
r"""
|
386
396
|
:param _SessionUuid: 一段完整的语音对应一个SessionUuid
|
387
397
|
:type SessionUuid: str
|
388
|
-
:param _Source:
|
398
|
+
:param _Source: 源语言,支持:
|
399
|
+
zh:中文
|
400
|
+
en:英语
|
401
|
+
ja:日语
|
402
|
+
ko:韩语
|
403
|
+
yue:粤语
|
389
404
|
:type Source: str
|
390
|
-
:param _Target:
|
405
|
+
:param _Target: 目标语言,各源语言的目标语言支持列表如下
|
406
|
+
<li>zh(中文):en(英语)、ja(日语)、ko(韩语)、yue(粤语)</li>
|
407
|
+
<li>en(英语):zh(中文)</li>
|
408
|
+
<li>ja(日语):zh(中文)</li>
|
409
|
+
<li>ko(韩语):zh(中文)</li>
|
410
|
+
<li>yue(粤语):zh(中文)</li>
|
391
411
|
:type Target: str
|
392
412
|
:param _AudioFormat: 语音编码类型,1-pcm
|
393
413
|
:type AudioFormat: int
|
@@ -86,7 +86,18 @@ class TsiClient(AbstractClient):
|
|
86
86
|
|
87
87
|
|
88
88
|
def TongChuanSync(self, request):
|
89
|
-
"""
|
89
|
+
"""本接口提供上传音频,将音频进行语音识别并翻译成文本的服务。
|
90
|
+
|
91
|
+
-----------
|
92
|
+
### 接口要求
|
93
|
+
集成该API时,需按照以下要求:
|
94
|
+
|
95
|
+
| 内容| 格式 |
|
96
|
+
| -------- | ------- |
|
97
|
+
| 音频格式 | pcm |
|
98
|
+
| 音频属性 | <ul><li>采样率:16000Hz</li><li>采样精度:16bits</li><li>声道:单声道(mono)</li></ul> |
|
99
|
+
| 响应格式 | 统一采用 JSON 格式 |
|
100
|
+
| 数据发送 | 建议每200ms 发送200ms 时长的数据包,即1:1实时率,对应大小为6400字节。<br/><ol><li>音频发送速率过快超过1:1实时率或者音频数据包之间发送间隔超过6秒,可能导致引擎出错,后台将返回错误;</li><li>每次发送数据的大小不得小于 200ms时长 的数据包,且不得大于 500ms时长 的数据包;小于 200ms时长 的数据包会被丢弃,大于 500ms时长 的数据包会影响引擎的数据处理;</li><li>若最后一个音频数据包不足 200ms,需要使用空数据进行补齐;</li></ol> |
|
90
101
|
|
91
102
|
:param request: Request instance for TongChuanSync.
|
92
103
|
:type request: :class:`tencentcloud.tsi.v20210325.models.TongChuanSyncRequest`
|
@@ -49,7 +49,7 @@ class CreateTtsTaskRequest(AbstractModel):
|
|
49
49
|
:type EnableSubtitle: bool
|
50
50
|
:param _VoiceoverDialogueSplit: 旁白与对白文本解析,分别合成相应风格(仅适用于旁对白音色10510000、100510000),默认 false
|
51
51
|
:type VoiceoverDialogueSplit: bool
|
52
|
-
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)
|
52
|
+
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
|
53
53
|
:type EmotionCategory: str
|
54
54
|
:param _EmotionIntensity: 控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效。
|
55
55
|
:type EmotionIntensity: int
|
@@ -564,6 +564,7 @@ class TextToVoiceRequest(AbstractModel):
|
|
564
564
|
:param _ModelType: 模型类型,1-默认模型。
|
565
565
|
:type ModelType: int
|
566
566
|
:param _VoiceType: 音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见[购买指南](https://cloud.tencent.com/document/product/1073/34112)。完整的音色 ID 列表请参见[音色列表](https://cloud.tencent.com/document/product/1073/92668)。
|
567
|
+
若使用一句话版声音复刻,请填入固定值“200000000”
|
567
568
|
:type VoiceType: int
|
568
569
|
:param _PrimaryLanguage: 主语言类型:<li>1-中文(默认)</li><li>2-英文</li><li>3-日文</li>
|
569
570
|
:type PrimaryLanguage: int
|
@@ -578,12 +579,12 @@ class TextToVoiceRequest(AbstractModel):
|
|
578
579
|
:type EnableSubtitle: bool
|
579
580
|
:param _SegmentRate: 断句敏感阈值,默认值为:0,取值范围:[0,1,2]。该值越大越不容易断句,模型会更倾向于仅按照标点符号断句。此参数建议不要随意调整,可能会影响合成效果。
|
580
581
|
:type SegmentRate: int
|
581
|
-
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)
|
582
|
+
:param _EmotionCategory: 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)
|
582
583
|
示例值:neutral
|
583
584
|
:type EmotionCategory: str
|
584
585
|
:param _EmotionIntensity: 控制合成音频情感程度,取值范围为[50,200],默认为100;只有EmotionCategory不为空时生效;
|
585
586
|
:type EmotionIntensity: int
|
586
|
-
:param _FastVoiceType:
|
587
|
+
:param _FastVoiceType: 一句话版声音复刻音色ID,使用一句话版声音复刻音色时需填写。
|
587
588
|
:type FastVoiceType: str
|
588
589
|
"""
|
589
590
|
self._Text = None
|