tencentcloud-sdk-python 3.0.1338__py2.py3-none-any.whl → 3.0.1372__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/advisor/v20200721/models.py +0 -26
- tencentcloud/ams/v20201229/ams_client.py +17 -6
- tencentcloud/ams/v20201229/models.py +8 -6
- tencentcloud/antiddos/v20200309/antiddos_client.py +0 -50
- tencentcloud/antiddos/v20200309/models.py +44 -837
- tencentcloud/apm/v20210622/models.py +60 -60
- tencentcloud/autoscaling/v20180419/autoscaling_client.py +28 -1
- tencentcloud/autoscaling/v20180419/models.py +352 -210
- tencentcloud/batch/v20170312/batch_client.py +0 -46
- tencentcloud/batch/v20170312/errorcodes.py +0 -9
- tencentcloud/batch/v20170312/models.py +44 -1179
- tencentcloud/bh/v20230418/bh_client.py +253 -0
- tencentcloud/bh/v20230418/errorcodes.py +15 -0
- tencentcloud/bh/v20230418/models.py +3489 -1335
- tencentcloud/bi/v20220105/models.py +242 -2
- tencentcloud/billing/v20180709/billing_client.py +0 -23
- tencentcloud/billing/v20180709/models.py +34 -926
- tencentcloud/bpaas/v20181217/models.py +0 -54
- tencentcloud/cam/v20190116/errorcodes.py +3 -0
- tencentcloud/cam/v20190116/models.py +2 -86
- tencentcloud/captcha/v20190722/models.py +21 -54
- tencentcloud/cat/v20180409/cat_client.py +23 -0
- tencentcloud/cat/v20180409/models.py +509 -0
- tencentcloud/cbs/v20170312/cbs_client.py +1 -1
- tencentcloud/cbs/v20170312/models.py +75 -96
- tencentcloud/ccc/v20200210/ccc_client.py +184 -0
- tencentcloud/ccc/v20200210/errorcodes.py +12 -0
- tencentcloud/ccc/v20200210/models.py +2552 -1026
- tencentcloud/cdb/v20170320/cdb_client.py +27 -4
- tencentcloud/cdb/v20170320/models.py +180 -20
- tencentcloud/cdc/v20201214/cdc_client.py +46 -0
- tencentcloud/cdc/v20201214/errorcodes.py +18 -0
- tencentcloud/cdc/v20201214/models.py +202 -86
- tencentcloud/cdn/v20180606/cdn_client.py +70 -24
- tencentcloud/cdn/v20180606/models.py +19 -50
- tencentcloud/cdwch/v20200915/errorcodes.py +15 -0
- tencentcloud/cdwch/v20200915/models.py +242 -260
- tencentcloud/cdwdoris/v20211228/models.py +330 -0
- tencentcloud/cdwpg/v20201230/models.py +196 -516
- tencentcloud/cdz/v20221123/models.py +0 -12
- tencentcloud/cfg/v20210820/models.py +30 -198
- tencentcloud/cfs/v20190719/errorcodes.py +3 -0
- tencentcloud/cfs/v20190719/models.py +15 -0
- tencentcloud/cfw/v20190904/cfw_client.py +23 -0
- tencentcloud/cfw/v20190904/models.py +331 -4
- tencentcloud/chc/__init__.py +0 -0
- tencentcloud/chc/v20230418/__init__.py +0 -0
- tencentcloud/chc/v20230418/chc_client.py +877 -0
- tencentcloud/chc/v20230418/errorcodes.py +15 -0
- tencentcloud/chc/v20230418/models.py +10146 -0
- tencentcloud/chdfs/v20201112/models.py +2 -2
- tencentcloud/ckafka/v20190819/ckafka_client.py +46 -0
- tencentcloud/ckafka/v20190819/models.py +371 -1230
- tencentcloud/clb/v20180317/clb_client.py +3 -3
- tencentcloud/clb/v20180317/models.py +395 -406
- tencentcloud/cls/v20201016/cls_client.py +41 -18
- tencentcloud/cls/v20201016/models.py +256 -606
- tencentcloud/cme/v20191029/cme_client.py +0 -1
- tencentcloud/cme/v20191029/errorcodes.py +3 -0
- tencentcloud/cme/v20191029/models.py +10 -14
- tencentcloud/cmq/v20190304/models.py +0 -90
- tencentcloud/common/abstract_client.py +29 -24
- tencentcloud/common/abstract_model.py +5 -1
- tencentcloud/common/common_client.py +14 -15
- tencentcloud/common/credential.py +68 -65
- tencentcloud/common/exception/tencent_cloud_sdk_exception.py +1 -1
- tencentcloud/common/profile/client_profile.py +32 -30
- tencentcloud/common/profile/http_profile.py +20 -12
- tencentcloud/common/retry.py +18 -0
- tencentcloud/controlcenter/v20230110/models.py +0 -58
- tencentcloud/cvm/v20170312/cvm_client.py +42 -10
- tencentcloud/cvm/v20170312/errorcodes.py +25 -1
- tencentcloud/cvm/v20170312/models.py +835 -290
- tencentcloud/cwp/v20180228/cwp_client.py +1 -1
- tencentcloud/cwp/v20180228/models.py +362 -58
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +69 -0
- tencentcloud/cynosdb/v20190107/models.py +451 -824
- tencentcloud/dbbrain/v20191016/dbbrain_client.py +23 -0
- tencentcloud/dbbrain/v20191016/models.py +605 -52
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +322 -0
- tencentcloud/dbbrain/v20210527/models.py +6071 -2974
- tencentcloud/dbdc/v20201029/models.py +0 -16
- tencentcloud/dc/v20180410/models.py +25 -12
- tencentcloud/dcdb/v20180411/errorcodes.py +3 -0
- tencentcloud/dcdb/v20180411/models.py +175 -114
- tencentcloud/dlc/v20210125/dlc_client.py +69 -0
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +1217 -592
- tencentcloud/dnspod/v20210323/dnspod_client.py +69 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +9 -0
- tencentcloud/dnspod/v20210323/models.py +718 -110
- tencentcloud/domain/v20180808/domain_client.py +4 -2
- tencentcloud/domain/v20180808/errorcodes.py +3 -0
- tencentcloud/domain/v20180808/models.py +628 -324
- tencentcloud/dsgc/v20190723/dsgc_client.py +0 -23
- tencentcloud/dsgc/v20190723/models.py +53 -34
- tencentcloud/dts/v20180330/models.py +0 -10
- tencentcloud/dts/v20211206/models.py +118 -585
- tencentcloud/ecdn/v20191012/ecdn_client.py +24 -225
- tencentcloud/ecdn/v20191012/errorcodes.py +0 -63
- tencentcloud/ecdn/v20191012/models.py +4 -1047
- tencentcloud/emr/v20190103/emr_client.py +47 -1
- tencentcloud/emr/v20190103/models.py +1174 -146
- tencentcloud/es/v20180416/errorcodes.py +3 -0
- tencentcloud/es/v20180416/models.py +74 -6
- tencentcloud/es/v20250101/__init__.py +0 -0
- tencentcloud/es/v20250101/errorcodes.py +45 -0
- tencentcloud/es/v20250101/es_client.py +251 -0
- tencentcloud/es/v20250101/models.py +2519 -0
- tencentcloud/ess/v20201111/ess_client.py +43 -5
- tencentcloud/ess/v20201111/models.py +854 -60
- tencentcloud/essbasic/v20210526/essbasic_client.py +35 -2
- tencentcloud/essbasic/v20210526/models.py +726 -43
- tencentcloud/facefusion/v20220927/models.py +4 -2
- tencentcloud/fmu/v20191213/errorcodes.py +3 -21
- tencentcloud/fmu/v20191213/fmu_client.py +0 -75
- tencentcloud/fmu/v20191213/models.py +4 -531
- tencentcloud/gaap/v20180529/gaap_client.py +1 -1
- tencentcloud/gaap/v20180529/models.py +2 -276
- tencentcloud/goosefs/v20220519/models.py +0 -2
- tencentcloud/gs/v20191118/errorcodes.py +36 -0
- tencentcloud/gs/v20191118/gs_client.py +1074 -12
- tencentcloud/gs/v20191118/models.py +6976 -492
- tencentcloud/gwlb/v20240906/errorcodes.py +3 -0
- tencentcloud/gwlb/v20240906/gwlb_client.py +5 -8
- tencentcloud/gwlb/v20240906/models.py +94 -84
- tencentcloud/hai/v20230812/errorcodes.py +7 -1
- tencentcloud/hai/v20230812/hai_client.py +23 -0
- tencentcloud/hai/v20230812/models.py +111 -136
- tencentcloud/hunyuan/v20230901/errorcodes.py +27 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +71 -0
- tencentcloud/hunyuan/v20230901/models.py +1089 -119
- tencentcloud/ims/v20201229/models.py +25 -4
- tencentcloud/ioa/v20220601/ioa_client.py +92 -0
- tencentcloud/ioa/v20220601/models.py +1136 -225
- tencentcloud/iotcloud/v20210408/models.py +2 -4
- tencentcloud/iotexplorer/v20190423/errorcodes.py +12 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +234 -52
- tencentcloud/iotexplorer/v20190423/models.py +2906 -1063
- tencentcloud/iotvideo/v20191126/models.py +0 -4
- tencentcloud/iotvideo/v20201215/models.py +17 -0
- tencentcloud/iotvideo/v20211125/iotvideo_client.py +69 -0
- tencentcloud/iotvideo/v20211125/models.py +476 -0
- tencentcloud/iotvideoindustry/v20201201/iotvideoindustry_client.py +2 -2
- tencentcloud/iotvideoindustry/v20201201/models.py +30 -486
- tencentcloud/iss/v20230517/errorcodes.py +9 -0
- tencentcloud/iss/v20230517/iss_client.py +161 -0
- tencentcloud/iss/v20230517/models.py +1716 -743
- tencentcloud/kms/v20190118/models.py +101 -0
- tencentcloud/lcic/v20220817/errorcodes.py +2 -2
- tencentcloud/lcic/v20220817/lcic_client.py +47 -1
- tencentcloud/lcic/v20220817/models.py +357 -72
- tencentcloud/lighthouse/v20200324/errorcodes.py +12 -15
- tencentcloud/lighthouse/v20200324/lighthouse_client.py +39 -76
- tencentcloud/lighthouse/v20200324/models.py +237 -259
- tencentcloud/live/v20180801/models.py +61 -46
- tencentcloud/lke/v20231130/errorcodes.py +3 -0
- tencentcloud/lke/v20231130/lke_client.py +8 -29
- tencentcloud/lke/v20231130/models.py +561 -115
- tencentcloud/lkeap/v20240522/lkeap_client.py +33 -4
- tencentcloud/lkeap/v20240522/models.py +290 -18
- tencentcloud/lowcode/v20210108/errorcodes.py +3 -0
- tencentcloud/lowcode/v20210108/models.py +0 -2
- tencentcloud/mariadb/v20170312/models.py +155 -140
- tencentcloud/memcached/v20190318/models.py +2 -2
- tencentcloud/mmps/v20200710/models.py +0 -66
- tencentcloud/mna/v20210119/errorcodes.py +0 -36
- tencentcloud/mna/v20210119/mna_client.py +0 -75
- tencentcloud/mna/v20210119/models.py +0 -1002
- tencentcloud/mongodb/v20190725/models.py +115 -6
- tencentcloud/mongodb/v20190725/mongodb_client.py +23 -0
- tencentcloud/monitor/v20180724/errorcodes.py +3 -0
- tencentcloud/monitor/v20180724/models.py +1055 -74
- tencentcloud/monitor/v20180724/monitor_client.py +94 -2
- tencentcloud/mps/v20190612/errorcodes.py +36 -0
- tencentcloud/mps/v20190612/models.py +4866 -448
- tencentcloud/mps/v20190612/mps_client.py +208 -0
- tencentcloud/mqtt/v20240516/errorcodes.py +15 -0
- tencentcloud/mqtt/v20240516/models.py +705 -372
- tencentcloud/mqtt/v20240516/mqtt_client.py +4 -4
- tencentcloud/oceanus/v20190422/models.py +14 -2
- tencentcloud/ocr/v20181119/errorcodes.py +0 -12
- tencentcloud/ocr/v20181119/models.py +311 -1042
- tencentcloud/ocr/v20181119/ocr_client.py +5 -102
- tencentcloud/organization/v20210331/errorcodes.py +3 -0
- tencentcloud/organization/v20210331/models.py +45 -82
- tencentcloud/partners/v20180321/models.py +169 -0
- tencentcloud/partners/v20180321/partners_client.py +23 -0
- tencentcloud/postgres/v20170312/models.py +36 -328
- tencentcloud/postgres/v20170312/postgres_client.py +15 -5
- tencentcloud/privatedns/v20201028/models.py +36 -28
- tencentcloud/rce/v20201103/models.py +0 -15
- tencentcloud/redis/v20180412/models.py +233 -18
- tencentcloud/redis/v20180412/redis_client.py +23 -0
- tencentcloud/rum/v20210622/models.py +0 -2
- tencentcloud/ses/v20201002/models.py +32 -4
- tencentcloud/smop/v20201203/smop_client.py +3 -1
- tencentcloud/soe/v20180724/models.py +4 -2
- tencentcloud/sqlserver/v20180328/models.py +75 -0
- tencentcloud/ssl/v20191205/models.py +7 -319
- tencentcloud/ssm/v20190923/models.py +45 -0
- tencentcloud/sts/v20180813/errorcodes.py +9 -0
- tencentcloud/sts/v20180813/models.py +171 -0
- tencentcloud/sts/v20180813/sts_client.py +23 -0
- tencentcloud/svp/v20240125/errorcodes.py +3 -0
- tencentcloud/svp/v20240125/models.py +506 -44
- tencentcloud/svp/v20240125/svp_client.py +23 -0
- tencentcloud/tan/v20220420/tan_client.py +3 -1
- tencentcloud/tat/v20201028/errorcodes.py +12 -0
- tencentcloud/tat/v20201028/models.py +138 -42
- tencentcloud/tbaas/v20180416/models.py +0 -58
- tencentcloud/tcb/v20180608/errorcodes.py +3 -0
- tencentcloud/tcb/v20180608/models.py +189 -582
- tencentcloud/tcb/v20180608/tcb_client.py +23 -23
- tencentcloud/tcbr/v20220217/models.py +45 -0
- tencentcloud/tchd/v20230306/models.py +166 -0
- tencentcloud/tchd/v20230306/tchd_client.py +24 -0
- tencentcloud/tcr/v20190924/models.py +44 -174
- tencentcloud/tcss/v20201101/models.py +1458 -2066
- tencentcloud/tcss/v20201101/tcss_client.py +92 -125
- tencentcloud/tdid/v20210519/models.py +0 -10
- tencentcloud/tdmq/v20200217/models.py +405 -575
- tencentcloud/tdmq/v20200217/tdmq_client.py +12 -54
- tencentcloud/tds/v20220801/models.py +441 -0
- tencentcloud/tds/v20220801/tds_client.py +23 -0
- tencentcloud/tem/v20210701/models.py +0 -498
- tencentcloud/teo/v20220106/teo_client.py +6 -2
- tencentcloud/teo/v20220901/errorcodes.py +9 -0
- tencentcloud/teo/v20220901/models.py +1828 -472
- tencentcloud/teo/v20220901/teo_client.py +54 -4
- tencentcloud/thpc/v20211109/models.py +0 -6
- tencentcloud/thpc/v20220401/models.py +0 -14
- tencentcloud/thpc/v20230321/models.py +64 -52
- tencentcloud/tione/v20211111/errorcodes.py +114 -0
- tencentcloud/tione/v20211111/models.py +2288 -160
- tencentcloud/tione/v20211111/tione_client.py +138 -0
- tencentcloud/tiw/v20190919/errorcodes.py +3 -24
- tencentcloud/tiw/v20190919/models.py +3657 -8172
- tencentcloud/tiw/v20190919/tiw_client.py +1 -580
- tencentcloud/tke/v20180525/models.py +705 -721
- tencentcloud/tke/v20180525/tke_client.py +23 -0
- tencentcloud/tke/v20220501/models.py +0 -34
- tencentcloud/trocket/v20230308/models.py +1630 -160
- tencentcloud/trocket/v20230308/trocket_client.py +238 -0
- tencentcloud/trro/v20220325/models.py +1132 -44
- tencentcloud/trro/v20220325/trro_client.py +142 -0
- tencentcloud/trtc/v20190722/models.py +94 -90
- tencentcloud/trtc/v20190722/trtc_client.py +4 -0
- tencentcloud/tse/v20201207/models.py +90 -1010
- tencentcloud/tsf/v20180326/errorcodes.py +6 -0
- tencentcloud/tsf/v20180326/models.py +350 -582
- tencentcloud/tsf/v20180326/tsf_client.py +26 -1
- tencentcloud/tts/v20190823/models.py +15 -15
- tencentcloud/tts/v20190823/tts_client.py +6 -5
- tencentcloud/vclm/v20240523/models.py +2 -2
- tencentcloud/vcube/v20220410/models.py +66 -158
- tencentcloud/vcube/v20220410/vcube_client.py +2 -2
- tencentcloud/vdb/v20230616/models.py +1487 -29
- tencentcloud/vdb/v20230616/vdb_client.py +185 -1
- tencentcloud/vm/v20210922/models.py +2 -2
- tencentcloud/vm/v20210922/vm_client.py +16 -8
- tencentcloud/vod/v20180717/errorcodes.py +3 -0
- tencentcloud/vod/v20180717/models.py +106 -417
- tencentcloud/vod/v20180717/vod_client.py +2 -1
- tencentcloud/vod/v20240718/errorcodes.py +33 -0
- tencentcloud/vod/v20240718/models.py +1839 -0
- tencentcloud/vod/v20240718/vod_client.py +146 -0
- tencentcloud/vpc/v20170312/errorcodes.py +12 -0
- tencentcloud/vpc/v20170312/models.py +2052 -519
- tencentcloud/vpc/v20170312/vpc_client.py +229 -11
- tencentcloud/vrs/v20200824/models.py +49 -0
- tencentcloud/waf/v20180125/errorcodes.py +9 -0
- tencentcloud/waf/v20180125/models.py +4191 -0
- tencentcloud/waf/v20180125/waf_client.py +276 -0
- tencentcloud/wedata/v20210820/models.py +5404 -394
- tencentcloud/wedata/v20210820/wedata_client.py +161 -0
- tencentcloud/weilingwith/v20230427/models.py +0 -964
- tencentcloud/weilingwith/v20230427/weilingwith_client.py +3 -1
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/RECORD +284 -275
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1338.dist-info → tencentcloud_sdk_python-3.0.1372.dist-info}/top_level.txt +0 -0
@@ -95,6 +95,29 @@ class TrroClient(AbstractClient):
|
|
95
95
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
96
96
|
|
97
97
|
|
98
|
+
def CreateCloudRecording(self, request):
|
99
|
+
"""启动云端录制功能,完成房间内的音视频录制,并上传到指定的云存储。
|
100
|
+
|
101
|
+
:param request: Request instance for CreateCloudRecording.
|
102
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.CreateCloudRecordingRequest`
|
103
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.CreateCloudRecordingResponse`
|
104
|
+
|
105
|
+
"""
|
106
|
+
try:
|
107
|
+
params = request._serialize()
|
108
|
+
headers = request.headers
|
109
|
+
body = self.call("CreateCloudRecording", params, headers=headers)
|
110
|
+
response = json.loads(body)
|
111
|
+
model = models.CreateCloudRecordingResponse()
|
112
|
+
model._deserialize(response["Response"])
|
113
|
+
return model
|
114
|
+
except Exception as e:
|
115
|
+
if isinstance(e, TencentCloudSDKException):
|
116
|
+
raise
|
117
|
+
else:
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
119
|
+
|
120
|
+
|
98
121
|
def CreateDevice(self, request):
|
99
122
|
"""用于创建设备
|
100
123
|
|
@@ -141,6 +164,29 @@ class TrroClient(AbstractClient):
|
|
141
164
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
142
165
|
|
143
166
|
|
167
|
+
def DeleteCloudRecording(self, request):
|
168
|
+
"""成功开启录制后,可以使用此接口来停止录制任务。停止录制成功后不代表文件全部传输完成,如果未完成后台将会继续上传文件,成功后通过事件回调通知客户文件全部传输完成状态。
|
169
|
+
|
170
|
+
:param request: Request instance for DeleteCloudRecording.
|
171
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.DeleteCloudRecordingRequest`
|
172
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.DeleteCloudRecordingResponse`
|
173
|
+
|
174
|
+
"""
|
175
|
+
try:
|
176
|
+
params = request._serialize()
|
177
|
+
headers = request.headers
|
178
|
+
body = self.call("DeleteCloudRecording", params, headers=headers)
|
179
|
+
response = json.loads(body)
|
180
|
+
model = models.DeleteCloudRecordingResponse()
|
181
|
+
model._deserialize(response["Response"])
|
182
|
+
return model
|
183
|
+
except Exception as e:
|
184
|
+
if isinstance(e, TencentCloudSDKException):
|
185
|
+
raise
|
186
|
+
else:
|
187
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
188
|
+
|
189
|
+
|
144
190
|
def DeleteProject(self, request):
|
145
191
|
"""用于删除项目
|
146
192
|
|
@@ -486,6 +532,31 @@ class TrroClient(AbstractClient):
|
|
486
532
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
487
533
|
|
488
534
|
|
535
|
+
def ModifyCallbackUrl(self, request):
|
536
|
+
"""设置回调URL
|
537
|
+
录制回调事件内容参考:https://cloud.tencent.com/document/product/647/81113
|
538
|
+
转推回调事件内容参考:https://cloud.tencent.com/document/product/647/88552
|
539
|
+
|
540
|
+
:param request: Request instance for ModifyCallbackUrl.
|
541
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.ModifyCallbackUrlRequest`
|
542
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.ModifyCallbackUrlResponse`
|
543
|
+
|
544
|
+
"""
|
545
|
+
try:
|
546
|
+
params = request._serialize()
|
547
|
+
headers = request.headers
|
548
|
+
body = self.call("ModifyCallbackUrl", params, headers=headers)
|
549
|
+
response = json.loads(body)
|
550
|
+
model = models.ModifyCallbackUrlResponse()
|
551
|
+
model._deserialize(response["Response"])
|
552
|
+
return model
|
553
|
+
except Exception as e:
|
554
|
+
if isinstance(e, TencentCloudSDKException):
|
555
|
+
raise
|
556
|
+
else:
|
557
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
558
|
+
|
559
|
+
|
489
560
|
def ModifyDevice(self, request):
|
490
561
|
"""用于修改设备信息
|
491
562
|
|
@@ -548,6 +619,77 @@ class TrroClient(AbstractClient):
|
|
548
619
|
model = models.ModifyProjectResponse()
|
549
620
|
model._deserialize(response["Response"])
|
550
621
|
return model
|
622
|
+
except Exception as e:
|
623
|
+
if isinstance(e, TencentCloudSDKException):
|
624
|
+
raise
|
625
|
+
else:
|
626
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
627
|
+
|
628
|
+
|
629
|
+
def ModifyProjectSecMode(self, request):
|
630
|
+
"""使用项目共享密钥可动态生成设备登录密钥,登录前无需对设备进行提前注册,适合希望简化业务流程的客户。由于是公共密钥,请务必注意保护项目共享密钥,并及时更新。建议项目共享密钥保存在服务器侧。由服务器生成设备登录密码下发给设备,避免密钥保存在客户端侧产生的密钥泄露风险。
|
631
|
+
|
632
|
+
开启项目共享密钥后,对于已注册的设备,仍可使用原设备密码登录。若希望仅能通过共享密钥生成密码登录,请通过云 API 将设备密码更新为"USEPROJECTKEYPWD"。
|
633
|
+
|
634
|
+
:param request: Request instance for ModifyProjectSecMode.
|
635
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.ModifyProjectSecModeRequest`
|
636
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.ModifyProjectSecModeResponse`
|
637
|
+
|
638
|
+
"""
|
639
|
+
try:
|
640
|
+
params = request._serialize()
|
641
|
+
headers = request.headers
|
642
|
+
body = self.call("ModifyProjectSecMode", params, headers=headers)
|
643
|
+
response = json.loads(body)
|
644
|
+
model = models.ModifyProjectSecModeResponse()
|
645
|
+
model._deserialize(response["Response"])
|
646
|
+
return model
|
647
|
+
except Exception as e:
|
648
|
+
if isinstance(e, TencentCloudSDKException):
|
649
|
+
raise
|
650
|
+
else:
|
651
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
652
|
+
|
653
|
+
|
654
|
+
def StartPublishLiveStream(self, request):
|
655
|
+
"""启动一个混流转推任务,将 TRTC 房间的多路音视频流混成一路音视频流,编码后推到直播 CDN 或者回推到 TRTC 房间。也支持不转码直接转推 TRTC 房间的单路流。启动成功后,会返回一个 SdkAppid 维度唯一的任务 Id(TaskId)。您需要保存该 TaskId,后续需要依赖此 TaskId 更新和结束任务。
|
656
|
+
|
657
|
+
:param request: Request instance for StartPublishLiveStream.
|
658
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.StartPublishLiveStreamRequest`
|
659
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.StartPublishLiveStreamResponse`
|
660
|
+
|
661
|
+
"""
|
662
|
+
try:
|
663
|
+
params = request._serialize()
|
664
|
+
headers = request.headers
|
665
|
+
body = self.call("StartPublishLiveStream", params, headers=headers)
|
666
|
+
response = json.loads(body)
|
667
|
+
model = models.StartPublishLiveStreamResponse()
|
668
|
+
model._deserialize(response["Response"])
|
669
|
+
return model
|
670
|
+
except Exception as e:
|
671
|
+
if isinstance(e, TencentCloudSDKException):
|
672
|
+
raise
|
673
|
+
else:
|
674
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
675
|
+
|
676
|
+
|
677
|
+
def StopPublishLiveStream(self, request):
|
678
|
+
"""停止指定的混流转推任务。如果没有调用 Stop 接口停止任务,所有参与混流转推的主播离开房间超过MaxIdleTime 设置的时间后,任务也会自动停止。
|
679
|
+
|
680
|
+
:param request: Request instance for StopPublishLiveStream.
|
681
|
+
:type request: :class:`tencentcloud.trro.v20220325.models.StopPublishLiveStreamRequest`
|
682
|
+
:rtype: :class:`tencentcloud.trro.v20220325.models.StopPublishLiveStreamResponse`
|
683
|
+
|
684
|
+
"""
|
685
|
+
try:
|
686
|
+
params = request._serialize()
|
687
|
+
headers = request.headers
|
688
|
+
body = self.call("StopPublishLiveStream", params, headers=headers)
|
689
|
+
response = json.loads(body)
|
690
|
+
model = models.StopPublishLiveStreamResponse()
|
691
|
+
model._deserialize(response["Response"])
|
692
|
+
return model
|
551
693
|
except Exception as e:
|
552
694
|
if isinstance(e, TencentCloudSDKException):
|
553
695
|
raise
|
@@ -199,6 +199,14 @@ class AgentConfig(AbstractModel):
|
|
199
199
|
:type FilterOneWord: bool
|
200
200
|
:param _WelcomeMessagePriority: 欢迎消息优先级,0默认,1高优,高优不能被打断。
|
201
201
|
:type WelcomeMessagePriority: int
|
202
|
+
:param _FilterBracketsContent: 用于过滤LLM返回内容,不播放括号中的内容。
|
203
|
+
1:中文括号()
|
204
|
+
2:英文括号()
|
205
|
+
3:中文方括号【】
|
206
|
+
4:英文方括号[]
|
207
|
+
5:英文花括号{}
|
208
|
+
默认值为空,表示不进行过滤。
|
209
|
+
:type FilterBracketsContent: int
|
202
210
|
"""
|
203
211
|
self._UserId = None
|
204
212
|
self._UserSig = None
|
@@ -210,6 +218,7 @@ class AgentConfig(AbstractModel):
|
|
210
218
|
self._TurnDetectionMode = None
|
211
219
|
self._FilterOneWord = None
|
212
220
|
self._WelcomeMessagePriority = None
|
221
|
+
self._FilterBracketsContent = None
|
213
222
|
|
214
223
|
@property
|
215
224
|
def UserId(self):
|
@@ -323,6 +332,23 @@ class AgentConfig(AbstractModel):
|
|
323
332
|
def WelcomeMessagePriority(self, WelcomeMessagePriority):
|
324
333
|
self._WelcomeMessagePriority = WelcomeMessagePriority
|
325
334
|
|
335
|
+
@property
|
336
|
+
def FilterBracketsContent(self):
|
337
|
+
"""用于过滤LLM返回内容,不播放括号中的内容。
|
338
|
+
1:中文括号()
|
339
|
+
2:英文括号()
|
340
|
+
3:中文方括号【】
|
341
|
+
4:英文方括号[]
|
342
|
+
5:英文花括号{}
|
343
|
+
默认值为空,表示不进行过滤。
|
344
|
+
:rtype: int
|
345
|
+
"""
|
346
|
+
return self._FilterBracketsContent
|
347
|
+
|
348
|
+
@FilterBracketsContent.setter
|
349
|
+
def FilterBracketsContent(self, FilterBracketsContent):
|
350
|
+
self._FilterBracketsContent = FilterBracketsContent
|
351
|
+
|
326
352
|
|
327
353
|
def _deserialize(self, params):
|
328
354
|
self._UserId = params.get("UserId")
|
@@ -335,6 +361,7 @@ class AgentConfig(AbstractModel):
|
|
335
361
|
self._TurnDetectionMode = params.get("TurnDetectionMode")
|
336
362
|
self._FilterOneWord = params.get("FilterOneWord")
|
337
363
|
self._WelcomeMessagePriority = params.get("WelcomeMessagePriority")
|
364
|
+
self._FilterBracketsContent = params.get("FilterBracketsContent")
|
338
365
|
memeber_set = set(params.keys())
|
339
366
|
for name, value in vars(self).items():
|
340
367
|
property_name = name[1:]
|
@@ -2518,9 +2545,12 @@ class DescribeCloudRecordingRequest(AbstractModel):
|
|
2518
2545
|
:type SdkAppId: int
|
2519
2546
|
:param _TaskId: 录制任务的唯一Id,在启动录制成功后会返回。
|
2520
2547
|
:type TaskId: str
|
2548
|
+
:param _RecorderKey: 转推录制任务发起时所填,标识一次录制
|
2549
|
+
:type RecorderKey: str
|
2521
2550
|
"""
|
2522
2551
|
self._SdkAppId = None
|
2523
2552
|
self._TaskId = None
|
2553
|
+
self._RecorderKey = None
|
2524
2554
|
|
2525
2555
|
@property
|
2526
2556
|
def SdkAppId(self):
|
@@ -2544,10 +2574,22 @@ class DescribeCloudRecordingRequest(AbstractModel):
|
|
2544
2574
|
def TaskId(self, TaskId):
|
2545
2575
|
self._TaskId = TaskId
|
2546
2576
|
|
2577
|
+
@property
|
2578
|
+
def RecorderKey(self):
|
2579
|
+
"""转推录制任务发起时所填,标识一次录制
|
2580
|
+
:rtype: str
|
2581
|
+
"""
|
2582
|
+
return self._RecorderKey
|
2583
|
+
|
2584
|
+
@RecorderKey.setter
|
2585
|
+
def RecorderKey(self, RecorderKey):
|
2586
|
+
self._RecorderKey = RecorderKey
|
2587
|
+
|
2547
2588
|
|
2548
2589
|
def _deserialize(self, params):
|
2549
2590
|
self._SdkAppId = params.get("SdkAppId")
|
2550
2591
|
self._TaskId = params.get("TaskId")
|
2592
|
+
self._RecorderKey = params.get("RecorderKey")
|
2551
2593
|
memeber_set = set(params.keys())
|
2552
2594
|
for name, value in vars(self).items():
|
2553
2595
|
property_name = name[1:]
|
@@ -2574,12 +2616,15 @@ Exited:表示当前录制任务正在退出的过程中。
|
|
2574
2616
|
:type Status: str
|
2575
2617
|
:param _StorageFileList: 录制文件信息。
|
2576
2618
|
:type StorageFileList: list of StorageFile
|
2619
|
+
:param _RecorderKey: 转推录制任务发起时所填,标识一次录制
|
2620
|
+
:type RecorderKey: str
|
2577
2621
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2578
2622
|
:type RequestId: str
|
2579
2623
|
"""
|
2580
2624
|
self._TaskId = None
|
2581
2625
|
self._Status = None
|
2582
2626
|
self._StorageFileList = None
|
2627
|
+
self._RecorderKey = None
|
2583
2628
|
self._RequestId = None
|
2584
2629
|
|
2585
2630
|
@property
|
@@ -2618,6 +2663,17 @@ Exited:表示当前录制任务正在退出的过程中。
|
|
2618
2663
|
def StorageFileList(self, StorageFileList):
|
2619
2664
|
self._StorageFileList = StorageFileList
|
2620
2665
|
|
2666
|
+
@property
|
2667
|
+
def RecorderKey(self):
|
2668
|
+
"""转推录制任务发起时所填,标识一次录制
|
2669
|
+
:rtype: str
|
2670
|
+
"""
|
2671
|
+
return self._RecorderKey
|
2672
|
+
|
2673
|
+
@RecorderKey.setter
|
2674
|
+
def RecorderKey(self, RecorderKey):
|
2675
|
+
self._RecorderKey = RecorderKey
|
2676
|
+
|
2621
2677
|
@property
|
2622
2678
|
def RequestId(self):
|
2623
2679
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -2639,6 +2695,7 @@ Exited:表示当前录制任务正在退出的过程中。
|
|
2639
2695
|
obj = StorageFile()
|
2640
2696
|
obj._deserialize(item)
|
2641
2697
|
self._StorageFileList.append(obj)
|
2698
|
+
self._RecorderKey = params.get("RecorderKey")
|
2642
2699
|
self._RequestId = params.get("RequestId")
|
2643
2700
|
|
2644
2701
|
|
@@ -5936,12 +5993,10 @@ class EmulateMobileParams(AbstractModel):
|
|
5936
5993
|
:param _MobileDeviceType: 移动设备类型,
|
5937
5994
|
0: 手机
|
5938
5995
|
1: 平板
|
5939
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
5940
5996
|
:type MobileDeviceType: int
|
5941
5997
|
:param _ScreenOrientation: 屏幕方向,
|
5942
5998
|
0: 竖屏,
|
5943
5999
|
1: 横屏
|
5944
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
5945
6000
|
:type ScreenOrientation: int
|
5946
6001
|
"""
|
5947
6002
|
self._MobileDeviceType = None
|
@@ -5952,7 +6007,6 @@ class EmulateMobileParams(AbstractModel):
|
|
5952
6007
|
"""移动设备类型,
|
5953
6008
|
0: 手机
|
5954
6009
|
1: 平板
|
5955
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
5956
6010
|
:rtype: int
|
5957
6011
|
"""
|
5958
6012
|
return self._MobileDeviceType
|
@@ -5966,7 +6020,6 @@ class EmulateMobileParams(AbstractModel):
|
|
5966
6020
|
"""屏幕方向,
|
5967
6021
|
0: 竖屏,
|
5968
6022
|
1: 横屏
|
5969
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
5970
6023
|
:rtype: int
|
5971
6024
|
"""
|
5972
6025
|
return self._ScreenOrientation
|
@@ -9936,72 +9989,42 @@ class RecognizeConfig(AbstractModel):
|
|
9936
9989
|
语音转文本不同套餐版本支持的语言如下:
|
9937
9990
|
|
9938
9991
|
**基础版**:
|
9939
|
-
|
9940
|
-
- "zh":
|
9941
|
-
|
9942
|
-
- "zh-TW": 中国台湾
|
9943
|
-
|
9992
|
+
- "zh": 中文(简体)
|
9993
|
+
- "zh-TW": 中文(繁体)
|
9944
9994
|
- "en": 英语
|
9945
9995
|
|
9946
9996
|
**标准版:**
|
9947
|
-
|
9948
9997
|
- "8k_zh_large": 普方大模型引擎. 当前模型同时支持中文等语言的识别,模型参数量极大,语言模型性能增强,针对电话音频中各类场景、各类中文方言的识别准确率极大提升.
|
9949
|
-
|
9950
9998
|
- "16k_zh_large": 普方英大模型引擎. 当前模型同时支持中文、英文、多种中文方言等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
|
9951
|
-
|
9952
9999
|
- "16k_multi_lang": 多语种大模型引擎. 当前模型同时支持英语、日语、韩语、阿拉伯语、菲律宾语、法语、印地语、印尼语、马来语、葡萄牙语、西班牙语、泰语、土耳其语、越南语、德语的识别,可实现15个语种的自动识别(句子/段落级别).
|
9953
|
-
|
9954
10000
|
- "16k_zh_en": 中英大模型引擎. 当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
|
9955
10001
|
|
9956
10002
|
**高级版:**
|
9957
|
-
|
9958
10003
|
- "zh-dialect": 中国方言
|
9959
|
-
|
9960
10004
|
- "zh-yue": 中国粤语
|
9961
|
-
|
9962
10005
|
- "vi": 越南语
|
9963
|
-
|
9964
10006
|
- "ja": 日语
|
9965
|
-
|
9966
10007
|
- "ko": 韩语
|
9967
|
-
|
9968
10008
|
- "id": 印度尼西亚语
|
9969
|
-
|
9970
10009
|
- "th": 泰语
|
9971
|
-
|
9972
10010
|
- "pt": 葡萄牙语
|
9973
|
-
|
9974
10011
|
- "tr": 土耳其语
|
9975
|
-
|
9976
10012
|
- "ar": 阿拉伯语
|
9977
|
-
|
9978
10013
|
- "es": 西班牙语
|
9979
|
-
|
9980
10014
|
- "hi": 印地语
|
9981
|
-
|
9982
10015
|
- "fr": 法语
|
9983
|
-
|
9984
10016
|
- "ms": 马来语
|
9985
|
-
|
9986
10017
|
- "fil": 菲律宾语
|
9987
|
-
|
9988
10018
|
- "de": 德语
|
9989
|
-
|
9990
10019
|
- "it": 意大利语
|
9991
|
-
|
9992
10020
|
- "ru": 俄语
|
9993
|
-
|
9994
10021
|
- "sv": 瑞典语
|
9995
|
-
|
9996
10022
|
- "da": 丹麦语
|
9997
|
-
|
9998
10023
|
- "no": 挪威语
|
9999
10024
|
|
10000
10025
|
**注意:**
|
10001
|
-
|
10002
10026
|
如果缺少满足您需求的语言,请联系我们技术人员。
|
10003
10027
|
|
10004
|
-
示例值:zh
|
10005
10028
|
:type Language: str
|
10006
10029
|
:param _AlternativeLanguage: **发起模糊识别为高级版能力,默认按照高级版收费,仅支持填写基础版和高级版语言.**
|
10007
10030
|
注意:不支持填写"zh-dialect"
|
@@ -10047,72 +10070,42 @@ class RecognizeConfig(AbstractModel):
|
|
10047
10070
|
语音转文本不同套餐版本支持的语言如下:
|
10048
10071
|
|
10049
10072
|
**基础版**:
|
10050
|
-
|
10051
|
-
- "zh":
|
10052
|
-
|
10053
|
-
- "zh-TW": 中国台湾
|
10054
|
-
|
10073
|
+
- "zh": 中文(简体)
|
10074
|
+
- "zh-TW": 中文(繁体)
|
10055
10075
|
- "en": 英语
|
10056
10076
|
|
10057
10077
|
**标准版:**
|
10058
|
-
|
10059
10078
|
- "8k_zh_large": 普方大模型引擎. 当前模型同时支持中文等语言的识别,模型参数量极大,语言模型性能增强,针对电话音频中各类场景、各类中文方言的识别准确率极大提升.
|
10060
|
-
|
10061
10079
|
- "16k_zh_large": 普方英大模型引擎. 当前模型同时支持中文、英文、多种中文方言等语言的识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
|
10062
|
-
|
10063
10080
|
- "16k_multi_lang": 多语种大模型引擎. 当前模型同时支持英语、日语、韩语、阿拉伯语、菲律宾语、法语、印地语、印尼语、马来语、葡萄牙语、西班牙语、泰语、土耳其语、越南语、德语的识别,可实现15个语种的自动识别(句子/段落级别).
|
10064
|
-
|
10065
10081
|
- "16k_zh_en": 中英大模型引擎. 当前模型同时支持中文、英语识别,模型参数量极大,语言模型性能增强,针对噪声大、回音大、人声小、人声远等低质量音频的识别准确率极大提升.
|
10066
10082
|
|
10067
10083
|
**高级版:**
|
10068
|
-
|
10069
10084
|
- "zh-dialect": 中国方言
|
10070
|
-
|
10071
10085
|
- "zh-yue": 中国粤语
|
10072
|
-
|
10073
10086
|
- "vi": 越南语
|
10074
|
-
|
10075
10087
|
- "ja": 日语
|
10076
|
-
|
10077
10088
|
- "ko": 韩语
|
10078
|
-
|
10079
10089
|
- "id": 印度尼西亚语
|
10080
|
-
|
10081
10090
|
- "th": 泰语
|
10082
|
-
|
10083
10091
|
- "pt": 葡萄牙语
|
10084
|
-
|
10085
10092
|
- "tr": 土耳其语
|
10086
|
-
|
10087
10093
|
- "ar": 阿拉伯语
|
10088
|
-
|
10089
10094
|
- "es": 西班牙语
|
10090
|
-
|
10091
10095
|
- "hi": 印地语
|
10092
|
-
|
10093
10096
|
- "fr": 法语
|
10094
|
-
|
10095
10097
|
- "ms": 马来语
|
10096
|
-
|
10097
10098
|
- "fil": 菲律宾语
|
10098
|
-
|
10099
10099
|
- "de": 德语
|
10100
|
-
|
10101
10100
|
- "it": 意大利语
|
10102
|
-
|
10103
10101
|
- "ru": 俄语
|
10104
|
-
|
10105
10102
|
- "sv": 瑞典语
|
10106
|
-
|
10107
10103
|
- "da": 丹麦语
|
10108
|
-
|
10109
10104
|
- "no": 挪威语
|
10110
10105
|
|
10111
10106
|
**注意:**
|
10112
|
-
|
10113
10107
|
如果缺少满足您需求的语言,请联系我们技术人员。
|
10114
10108
|
|
10115
|
-
示例值:zh
|
10116
10109
|
:rtype: str
|
10117
10110
|
"""
|
10118
10111
|
return self._Language
|
@@ -10822,8 +10815,8 @@ class STTConfig(AbstractModel):
|
|
10822
10815
|
语音转文本不同套餐版本支持的语言如下:
|
10823
10816
|
|
10824
10817
|
**基础版**:
|
10825
|
-
- "zh":
|
10826
|
-
- "zh-TW":
|
10818
|
+
- "zh": 中文(简体)
|
10819
|
+
- "zh-TW": 中文(繁体)
|
10827
10820
|
- "en": 英语
|
10828
10821
|
|
10829
10822
|
**标准版:**
|
@@ -10885,8 +10878,8 @@ class STTConfig(AbstractModel):
|
|
10885
10878
|
语音转文本不同套餐版本支持的语言如下:
|
10886
10879
|
|
10887
10880
|
**基础版**:
|
10888
|
-
- "zh":
|
10889
|
-
- "zh-TW":
|
10881
|
+
- "zh": 中文(简体)
|
10882
|
+
- "zh-TW": 中文(繁体)
|
10890
10883
|
- "en": 英语
|
10891
10884
|
|
10892
10885
|
**标准版:**
|
@@ -11609,14 +11602,15 @@ class StartAIConversationRequest(AbstractModel):
|
|
11609
11602
|
:param _STTConfig: 语音识别配置。
|
11610
11603
|
:type STTConfig: :class:`tencentcloud.trtc.v20190722.models.STTConfig`
|
11611
11604
|
:param _LLMConfig: LLM配置。需符合openai规范,为JSON字符串,示例如下:
|
11612
|
-
<pre> { <br>   "LLMType":
|
11605
|
+
<pre> { <br>   "LLMType": "大模型类型", // String 必填,如:"openai" <br>   "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br>   "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br>   "Streaming": true // Boolean 非必填,指定是否使用流式传输<br>  } </pre>
|
11613
11606
|
|
11614
11607
|
:type LLMConfig: str
|
11615
|
-
:param _TTSConfig: TTS配置,为JSON字符串,腾讯云TTS示例如下:
|
11616
|
-
<pre>{ <br>   "AppId": 您的应用ID, // Integer 必填<br>   "TTSType": "TTS类型", // String TTS类型, 固定为"tencent"<br>   "SecretId": "您的密钥ID", // String 必填<br>   "SecretKey": "您的密钥Key", // String 必填<br>   "VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<br>   "Speed": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br>   "Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br>   "PrimaryLanguage": "zh-CN" // String 非必填,主要语言<br>  }</pre>
|
11608
|
+
:param _TTSConfig: TTS配置,为JSON字符串,腾讯云TTS示例如下: <pre>{ <br>   "AppId": 您的应用ID, // Integer 必填<br>   "TTSType": "TTS类型", // String TTS类型, 固定为"tencent"<br>   "SecretId": "您的密钥ID", // String 必填<br>   "SecretKey": "您的密钥Key", // String 必填<br>   "VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<br>   "Speed": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br>   "Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br>   "EmotionCategory": "angry", // String 非必填 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)。<br>   "EmotionIntensity": 150 // Integer 非必填 控制合成音频情感程度,取值范围为 [50,200],默认为 100;只有 EmotionCategory 不为空时生效。<br>   }</pre>
|
11617
11609
|
:type TTSConfig: str
|
11618
11610
|
:param _AvatarConfig: 数字人配置,为JSON字符串。**数字人配置需要提工单加白后才能使用**
|
11619
11611
|
:type AvatarConfig: str
|
11612
|
+
:param _ExperimentalParams: 实验性参数,联系后台使用
|
11613
|
+
:type ExperimentalParams: str
|
11620
11614
|
"""
|
11621
11615
|
self._SdkAppId = None
|
11622
11616
|
self._RoomId = None
|
@@ -11627,6 +11621,7 @@ class StartAIConversationRequest(AbstractModel):
|
|
11627
11621
|
self._LLMConfig = None
|
11628
11622
|
self._TTSConfig = None
|
11629
11623
|
self._AvatarConfig = None
|
11624
|
+
self._ExperimentalParams = None
|
11630
11625
|
|
11631
11626
|
@property
|
11632
11627
|
def SdkAppId(self):
|
@@ -11697,7 +11692,7 @@ class StartAIConversationRequest(AbstractModel):
|
|
11697
11692
|
@property
|
11698
11693
|
def LLMConfig(self):
|
11699
11694
|
"""LLM配置。需符合openai规范,为JSON字符串,示例如下:
|
11700
|
-
<pre> { <br>   "LLMType":
|
11695
|
+
<pre> { <br>   "LLMType": "大模型类型", // String 必填,如:"openai" <br>   "Model": "您的模型名称", // String 必填,指定使用的模型<br> "APIKey": "您的LLM API密钥", // String 必填 <br>   "APIUrl": "https://api.xxx.com/chat/completions", // String 必填,LLM API访问的URL<br>   "Streaming": true // Boolean 非必填,指定是否使用流式传输<br>  } </pre>
|
11701
11696
|
|
11702
11697
|
:rtype: str
|
11703
11698
|
"""
|
@@ -11709,8 +11704,7 @@ class StartAIConversationRequest(AbstractModel):
|
|
11709
11704
|
|
11710
11705
|
@property
|
11711
11706
|
def TTSConfig(self):
|
11712
|
-
"""TTS配置,为JSON字符串,腾讯云TTS示例如下:
|
11713
|
-
<pre>{ <br>   "AppId": 您的应用ID, // Integer 必填<br>   "TTSType": "TTS类型", // String TTS类型, 固定为"tencent"<br>   "SecretId": "您的密钥ID", // String 必填<br>   "SecretKey": "您的密钥Key", // String 必填<br>   "VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<br>   "Speed": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br>   "Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br>   "PrimaryLanguage": "zh-CN" // String 非必填,主要语言<br>  }</pre>
|
11707
|
+
"""TTS配置,为JSON字符串,腾讯云TTS示例如下: <pre>{ <br>   "AppId": 您的应用ID, // Integer 必填<br>   "TTSType": "TTS类型", // String TTS类型, 固定为"tencent"<br>   "SecretId": "您的密钥ID", // String 必填<br>   "SecretKey": "您的密钥Key", // String 必填<br>   "VoiceType": 101001, // Integer 必填,音色 ID,包括标准音色与精品音色,精品音色拟真度更高,价格不同于标准音色,请参见<a href="https://cloud.tencent.com/document/product/1073/34112">语音合成计费概述</a>。完整的音色 ID 列表请参见<a href="https://cloud.tencent.com/document/product/1073/92668#55924b56-1a73-4663-a7a1-a8dd82d6e823">语音合成音色列表</a>。<br>   "Speed": 1.25, // Integer 非必填,语速,范围:[-2,6],分别对应不同语速: -2: 代表0.6倍 -1: 代表0.8倍 0: 代表1.0倍(默认) 1: 代表1.2倍 2: 代表1.5倍 6: 代表2.5倍 如果需要更细化的语速,可以保留小数点后 2 位,例如0.5/1.25/2.81等。 参数值与实际语速转换,可参考 <a href="https://sdk-1300466766.cos.ap-shanghai.myqcloud.com/sample/speed_sample.tar.gz">语速转换</a><br>   "Volume": 5, // Integer 非必填,音量大小,范围:[0,10],分别对应11个等级的音量,默认值为0,代表正常音量。<br>   "EmotionCategory": "angry", // String 非必填 控制合成音频的情感,仅支持多情感音色使用。取值: neutral(中性)、sad(悲伤)、happy(高兴)、angry(生气)、fear(恐惧)、news(新闻)、story(故事)、radio(广播)、poetry(诗歌)、call(客服)、sajiao(撒娇)、disgusted(厌恶)、amaze(震惊)、peaceful(平静)、exciting(兴奋)、aojiao(傲娇)、jieshuo(解说)。<br>   "EmotionIntensity": 150 // Integer 非必填 控制合成音频情感程度,取值范围为 [50,200],默认为 100;只有 EmotionCategory 不为空时生效。<br>   }</pre>
|
11714
11708
|
:rtype: str
|
11715
11709
|
"""
|
11716
11710
|
return self._TTSConfig
|
@@ -11730,6 +11724,17 @@ class StartAIConversationRequest(AbstractModel):
|
|
11730
11724
|
def AvatarConfig(self, AvatarConfig):
|
11731
11725
|
self._AvatarConfig = AvatarConfig
|
11732
11726
|
|
11727
|
+
@property
|
11728
|
+
def ExperimentalParams(self):
|
11729
|
+
"""实验性参数,联系后台使用
|
11730
|
+
:rtype: str
|
11731
|
+
"""
|
11732
|
+
return self._ExperimentalParams
|
11733
|
+
|
11734
|
+
@ExperimentalParams.setter
|
11735
|
+
def ExperimentalParams(self, ExperimentalParams):
|
11736
|
+
self._ExperimentalParams = ExperimentalParams
|
11737
|
+
|
11733
11738
|
|
11734
11739
|
def _deserialize(self, params):
|
11735
11740
|
self._SdkAppId = params.get("SdkAppId")
|
@@ -11745,6 +11750,7 @@ class StartAIConversationRequest(AbstractModel):
|
|
11745
11750
|
self._LLMConfig = params.get("LLMConfig")
|
11746
11751
|
self._TTSConfig = params.get("TTSConfig")
|
11747
11752
|
self._AvatarConfig = params.get("AvatarConfig")
|
11753
|
+
self._ExperimentalParams = params.get("ExperimentalParams")
|
11748
11754
|
memeber_set = set(params.keys())
|
11749
11755
|
for name, value in vars(self).items():
|
11750
11756
|
property_name = name[1:]
|
@@ -11811,12 +11817,9 @@ class StartAITranscriptionRequest(AbstractModel):
|
|
11811
11817
|
:type RoomId: str
|
11812
11818
|
:param _TranscriptionParams: 转录机器人的参数。
|
11813
11819
|
:type TranscriptionParams: :class:`tencentcloud.trtc.v20190722.models.TranscriptionParams`
|
11814
|
-
:param _SessionId: 调用方传入的唯一Id
|
11820
|
+
:param _SessionId: 调用方传入的唯一Id,服务端用来任务去重,重复的任务会发起失败。服务端固定使用SdkAppId+RoomId+RoomIdType+RobotUserId来去重,如果传入了SessionId,也会使用SessionId去重。
|
11815
11821
|
注意:
|
11816
|
-
|
11817
|
-
如果不传该参数,服务端的去重策略如下:
|
11818
|
-
- 如果TranscriptionMode字段是0,则一个房间只能开启一个任务
|
11819
|
-
- 如果TranscriptionMode字段是1,则一个TargetUserId只能开启一个任务
|
11822
|
+
TranscriptionMode为0时,需要保证一个房间内只发起一个任务,如果发起多个任务,则机器人之间会相互订阅,除非主动停止任务,否则只有10小时后任务才会超时退出,这种情况下建议填写SessionId,保证后续重复发起的任务失败。
|
11820
11823
|
:type SessionId: str
|
11821
11824
|
:param _RoomIdType: TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。
|
11822
11825
|
:type RoomIdType: int
|
@@ -11865,12 +11868,9 @@ class StartAITranscriptionRequest(AbstractModel):
|
|
11865
11868
|
|
11866
11869
|
@property
|
11867
11870
|
def SessionId(self):
|
11868
|
-
"""调用方传入的唯一Id
|
11871
|
+
"""调用方传入的唯一Id,服务端用来任务去重,重复的任务会发起失败。服务端固定使用SdkAppId+RoomId+RoomIdType+RobotUserId来去重,如果传入了SessionId,也会使用SessionId去重。
|
11869
11872
|
注意:
|
11870
|
-
|
11871
|
-
如果不传该参数,服务端的去重策略如下:
|
11872
|
-
- 如果TranscriptionMode字段是0,则一个房间只能开启一个任务
|
11873
|
-
- 如果TranscriptionMode字段是1,则一个TargetUserId只能开启一个任务
|
11873
|
+
TranscriptionMode为0时,需要保证一个房间内只发起一个任务,如果发起多个任务,则机器人之间会相互订阅,除非主动停止任务,否则只有10小时后任务才会超时退出,这种情况下建议填写SessionId,保证后续重复发起的任务失败。
|
11874
11874
|
:rtype: str
|
11875
11875
|
"""
|
11876
11876
|
return self._SessionId
|
@@ -12276,6 +12276,7 @@ class StartPublishCdnStreamRequest(AbstractModel):
|
|
12276
12276
|
:param _AgentParams: 转推服务加入TRTC房间的机器人参数。
|
12277
12277
|
:type AgentParams: :class:`tencentcloud.trtc.v20190722.models.AgentParams`
|
12278
12278
|
:param _WithTranscoding: 是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转码费用。
|
12279
|
+
注:混流是必须转码,这个参数需设置为1。
|
12279
12280
|
:type WithTranscoding: int
|
12280
12281
|
:param _AudioParams: 转推流的音频编码参数。由于音频是必转码的(不会收取转码费用),所以启动任务的时候,必须填写。
|
12281
12282
|
:type AudioParams: :class:`tencentcloud.trtc.v20190722.models.McuAudioParams`
|
@@ -12352,6 +12353,7 @@ class StartPublishCdnStreamRequest(AbstractModel):
|
|
12352
12353
|
@property
|
12353
12354
|
def WithTranscoding(self):
|
12354
12355
|
"""是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转码费用。
|
12356
|
+
注:混流是必须转码,这个参数需设置为1。
|
12355
12357
|
:rtype: int
|
12356
12358
|
"""
|
12357
12359
|
return self._WithTranscoding
|
@@ -14565,6 +14567,7 @@ class UpdatePublishCdnStreamRequest(AbstractModel):
|
|
14565
14567
|
:param _SequenceNumber: 客户保证同一个任务,每次更新请求中的SequenceNumber递增,防止请求乱序。
|
14566
14568
|
:type SequenceNumber: int
|
14567
14569
|
:param _WithTranscoding: 是否转码,0表示无需转码,1表示需要转码。
|
14570
|
+
注:混流是必须转码,这个参数需设置为1。
|
14568
14571
|
:type WithTranscoding: int
|
14569
14572
|
:param _AudioParams: 更新相关参数,只支持更新参与混音的主播列表参数,不支持更新Codec、采样率、码率和声道数。不填表示不更新此参数。
|
14570
14573
|
:type AudioParams: :class:`tencentcloud.trtc.v20190722.models.McuAudioParams`
|
@@ -14626,6 +14629,7 @@ class UpdatePublishCdnStreamRequest(AbstractModel):
|
|
14626
14629
|
@property
|
14627
14630
|
def WithTranscoding(self):
|
14628
14631
|
"""是否转码,0表示无需转码,1表示需要转码。
|
14632
|
+
注:混流是必须转码,这个参数需设置为1。
|
14629
14633
|
:rtype: int
|
14630
14634
|
"""
|
14631
14635
|
return self._WithTranscoding
|
@@ -15125,7 +15129,7 @@ class VideoEncode(AbstractModel):
|
|
15125
15129
|
r"""
|
15126
15130
|
:param _Width: 输出流宽,音视频输出时必填。取值范围[0,1920],单位为像素值。
|
15127
15131
|
:type Width: int
|
15128
|
-
:param _Height: 输出流高,音视频输出时必填。取值范围[0,
|
15132
|
+
:param _Height: 输出流高,音视频输出时必填。取值范围[0,1920],单位为像素值。
|
15129
15133
|
:type Height: int
|
15130
15134
|
:param _Fps: 输出流帧率,音视频输出时必填。取值范围[1,60],表示混流的输出帧率可选范围为1到60fps。
|
15131
15135
|
:type Fps: int
|
@@ -15153,7 +15157,7 @@ class VideoEncode(AbstractModel):
|
|
15153
15157
|
|
15154
15158
|
@property
|
15155
15159
|
def Height(self):
|
15156
|
-
"""输出流高,音视频输出时必填。取值范围[0,
|
15160
|
+
"""输出流高,音视频输出时必填。取值范围[0,1920],单位为像素值。
|
15157
15161
|
:rtype: int
|
15158
15162
|
"""
|
15159
15163
|
return self._Height
|
@@ -1094,6 +1094,10 @@ class TrtcClient(AbstractClient):
|
|
1094
1094
|
|
1095
1095
|
服务端通过TRTC的自定义消息实时下发字幕以及转录消息,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。
|
1096
1096
|
|
1097
|
+
|
1098
|
+
**注意:**
|
1099
|
+
TranscriptionMode为0时,需要保证一个房间内只发起一个任务,如果发起多个任务,则机器人之间会相互订阅,除非主动停止任务,否则只有10小时后任务才会超时退出,这种情况下建议填写SessionId,保证后续重复发起的任务失败。
|
1100
|
+
|
1097
1101
|
:param request: Request instance for StartAITranscription.
|
1098
1102
|
:type request: :class:`tencentcloud.trtc.v20190722.models.StartAITranscriptionRequest`
|
1099
1103
|
:rtype: :class:`tencentcloud.trtc.v20190722.models.StartAITranscriptionResponse`
|