tccli 3.0.1145.1__py2.py3-none-any.whl → 3.0.1147.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/aiart/v20221229/api.json +2 -2
- tccli/services/aiart/v20221229/examples.json +4 -4
- tccli/services/cdb/v20170320/api.json +16 -12
- tccli/services/cdn/v20180606/api.json +1 -1
- tccli/services/emr/v20190103/api.json +5 -5
- tccli/services/es/v20180416/api.json +13 -0
- tccli/services/ess/v20201111/api.json +9 -0
- tccli/services/essbasic/v20210526/api.json +24 -15
- tccli/services/goosefs/v20220519/api.json +92 -12
- tccli/services/iotexplorer/v20190423/api.json +1 -1
- tccli/services/ivld/ivld_client.py +163 -4
- tccli/services/ivld/v20210903/api.json +443 -0
- tccli/services/ivld/v20210903/examples.json +24 -0
- tccli/services/live/v20180801/api.json +7 -5
- tccli/services/lke/v20231130/api.json +11 -1
- tccli/services/lke/v20231130/examples.json +2 -2
- tccli/services/mps/v20190612/api.json +20 -0
- tccli/services/ocr/v20181119/api.json +9 -0
- tccli/services/postgres/v20170312/api.json +7 -7
- tccli/services/rum/v20210622/api.json +9 -0
- tccli/services/smpn/smpn_client.py +0 -159
- tccli/services/smpn/v20190822/api.json +0 -312
- tccli/services/smpn/v20190822/examples.json +0 -24
- tccli/services/tdcpg/v20211118/api.json +4 -4
- tccli/services/tdcpg/v20211118/examples.json +2 -2
- tccli/services/tke/v20180525/api.json +3 -0
- tccli/services/trtc/trtc_client.py +163 -4
- tccli/services/trtc/v20190722/api.json +311 -0
- tccli/services/trtc/v20190722/examples.json +24 -0
- tccli/services/tse/v20201207/api.json +19 -0
- tccli/services/vpc/v20170312/api.json +143 -25
- tccli/services/vpc/v20170312/examples.json +10 -2
- tccli/services/vpc/vpc_client.py +69 -16
- tccli/services/waf/v20180125/api.json +2 -2
- {tccli-3.0.1145.1.dist-info → tccli-3.0.1147.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1145.1.dist-info → tccli-3.0.1147.1.dist-info}/RECORD +40 -40
- {tccli-3.0.1145.1.dist-info → tccli-3.0.1147.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1145.1.dist-info → tccli-3.0.1147.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1145.1.dist-info → tccli-3.0.1147.1.dist-info}/license_files/LICENSE +0 -0
@@ -225,6 +225,58 @@ def doDescribeTrtcUsage(args, parsed_globals):
|
|
225
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
226
|
|
227
227
|
|
228
|
+
def doStopAIConversation(args, parsed_globals):
|
229
|
+
g_param = parse_global_arg(parsed_globals)
|
230
|
+
|
231
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
232
|
+
cred = credential.CVMRoleCredential()
|
233
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
234
|
+
cred = credential.STSAssumeRoleCredential(
|
235
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
236
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
237
|
+
)
|
238
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
239
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
240
|
+
else:
|
241
|
+
cred = credential.Credential(
|
242
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
243
|
+
)
|
244
|
+
http_profile = HttpProfile(
|
245
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
246
|
+
reqMethod="POST",
|
247
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
248
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
249
|
+
)
|
250
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
251
|
+
if g_param[OptionsDefine.Language]:
|
252
|
+
profile.language = g_param[OptionsDefine.Language]
|
253
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
254
|
+
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
255
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
256
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
+
model = models.StopAIConversationRequest()
|
258
|
+
model.from_json_string(json.dumps(args))
|
259
|
+
start_time = time.time()
|
260
|
+
while True:
|
261
|
+
rsp = client.StopAIConversation(model)
|
262
|
+
result = rsp.to_json_string()
|
263
|
+
try:
|
264
|
+
json_obj = json.loads(result)
|
265
|
+
except TypeError as e:
|
266
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
267
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
268
|
+
break
|
269
|
+
cur_time = time.time()
|
270
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
271
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
272
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
273
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
274
|
+
else:
|
275
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
276
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
277
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
|
+
|
279
|
+
|
228
280
|
def doDescribeTRTCMarketQualityMetricData(args, parsed_globals):
|
229
281
|
g_param = parse_global_arg(parsed_globals)
|
230
282
|
|
@@ -537,7 +589,7 @@ def doStopMCUMixTranscode(args, parsed_globals):
|
|
537
589
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
538
590
|
|
539
591
|
|
540
|
-
def
|
592
|
+
def doStartAIConversation(args, parsed_globals):
|
541
593
|
g_param = parse_global_arg(parsed_globals)
|
542
594
|
|
543
595
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -566,11 +618,63 @@ def doStopStreamIngest(args, parsed_globals):
|
|
566
618
|
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
567
619
|
client._sdkVersion += ("_CLI_" + __version__)
|
568
620
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
569
|
-
model = models.
|
621
|
+
model = models.StartAIConversationRequest()
|
570
622
|
model.from_json_string(json.dumps(args))
|
571
623
|
start_time = time.time()
|
572
624
|
while True:
|
573
|
-
rsp = client.
|
625
|
+
rsp = client.StartAIConversation(model)
|
626
|
+
result = rsp.to_json_string()
|
627
|
+
try:
|
628
|
+
json_obj = json.loads(result)
|
629
|
+
except TypeError as e:
|
630
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
631
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
632
|
+
break
|
633
|
+
cur_time = time.time()
|
634
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
635
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
636
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
637
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
638
|
+
else:
|
639
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
640
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
641
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
|
+
|
643
|
+
|
644
|
+
def doDescribeAIConversation(args, parsed_globals):
|
645
|
+
g_param = parse_global_arg(parsed_globals)
|
646
|
+
|
647
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
648
|
+
cred = credential.CVMRoleCredential()
|
649
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
650
|
+
cred = credential.STSAssumeRoleCredential(
|
651
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
652
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
653
|
+
)
|
654
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
655
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
656
|
+
else:
|
657
|
+
cred = credential.Credential(
|
658
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
659
|
+
)
|
660
|
+
http_profile = HttpProfile(
|
661
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
662
|
+
reqMethod="POST",
|
663
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
664
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
665
|
+
)
|
666
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
667
|
+
if g_param[OptionsDefine.Language]:
|
668
|
+
profile.language = g_param[OptionsDefine.Language]
|
669
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
670
|
+
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
671
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
672
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
673
|
+
model = models.DescribeAIConversationRequest()
|
674
|
+
model.from_json_string(json.dumps(args))
|
675
|
+
start_time = time.time()
|
676
|
+
while True:
|
677
|
+
rsp = client.DescribeAIConversation(model)
|
574
678
|
result = rsp.to_json_string()
|
575
679
|
try:
|
576
680
|
json_obj = json.loads(result)
|
@@ -2461,6 +2565,58 @@ def doDescribeTRTCMarketQualityData(args, parsed_globals):
|
|
2461
2565
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2462
2566
|
|
2463
2567
|
|
2568
|
+
def doStopStreamIngest(args, parsed_globals):
|
2569
|
+
g_param = parse_global_arg(parsed_globals)
|
2570
|
+
|
2571
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2572
|
+
cred = credential.CVMRoleCredential()
|
2573
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2574
|
+
cred = credential.STSAssumeRoleCredential(
|
2575
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2576
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2577
|
+
)
|
2578
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
2579
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2580
|
+
else:
|
2581
|
+
cred = credential.Credential(
|
2582
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2583
|
+
)
|
2584
|
+
http_profile = HttpProfile(
|
2585
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2586
|
+
reqMethod="POST",
|
2587
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2588
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2589
|
+
)
|
2590
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2591
|
+
if g_param[OptionsDefine.Language]:
|
2592
|
+
profile.language = g_param[OptionsDefine.Language]
|
2593
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2594
|
+
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
2595
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2596
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2597
|
+
model = models.StopStreamIngestRequest()
|
2598
|
+
model.from_json_string(json.dumps(args))
|
2599
|
+
start_time = time.time()
|
2600
|
+
while True:
|
2601
|
+
rsp = client.StopStreamIngest(model)
|
2602
|
+
result = rsp.to_json_string()
|
2603
|
+
try:
|
2604
|
+
json_obj = json.loads(result)
|
2605
|
+
except TypeError as e:
|
2606
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2607
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2608
|
+
break
|
2609
|
+
cur_time = time.time()
|
2610
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2611
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2612
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2613
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2614
|
+
else:
|
2615
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2616
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2617
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2618
|
+
|
2619
|
+
|
2464
2620
|
def doStopPublishCdnStream(args, parsed_globals):
|
2465
2621
|
g_param = parse_global_arg(parsed_globals)
|
2466
2622
|
|
@@ -2632,13 +2788,15 @@ ACTION_MAP = {
|
|
2632
2788
|
"DescribeRoomInfo": doDescribeRoomInfo,
|
2633
2789
|
"StopAITranscription": doStopAITranscription,
|
2634
2790
|
"DescribeTrtcUsage": doDescribeTrtcUsage,
|
2791
|
+
"StopAIConversation": doStopAIConversation,
|
2635
2792
|
"DescribeTRTCMarketQualityMetricData": doDescribeTRTCMarketQualityMetricData,
|
2636
2793
|
"DeleteCloudRecording": doDeleteCloudRecording,
|
2637
2794
|
"StartPublishCdnStream": doStartPublishCdnStream,
|
2638
2795
|
"DescribeCallDetailInfo": doDescribeCallDetailInfo,
|
2639
2796
|
"DescribeStreamIngest": doDescribeStreamIngest,
|
2640
2797
|
"StopMCUMixTranscode": doStopMCUMixTranscode,
|
2641
|
-
"
|
2798
|
+
"StartAIConversation": doStartAIConversation,
|
2799
|
+
"DescribeAIConversation": doDescribeAIConversation,
|
2642
2800
|
"DescribeRecordingUsage": doDescribeRecordingUsage,
|
2643
2801
|
"StartStreamIngest": doStartStreamIngest,
|
2644
2802
|
"DeletePicture": doDeletePicture,
|
@@ -2675,6 +2833,7 @@ ACTION_MAP = {
|
|
2675
2833
|
"DescribeWebRecord": doDescribeWebRecord,
|
2676
2834
|
"DescribePicture": doDescribePicture,
|
2677
2835
|
"DescribeTRTCMarketQualityData": doDescribeTRTCMarketQualityData,
|
2836
|
+
"StopStreamIngest": doStopStreamIngest,
|
2678
2837
|
"StopPublishCdnStream": doStopPublishCdnStream,
|
2679
2838
|
"DescribeUnusualEvent": doDescribeUnusualEvent,
|
2680
2839
|
"DescribeTRTCRealTimeScaleMetricData": doDescribeTRTCRealTimeScaleMetricData,
|
@@ -28,6 +28,13 @@
|
|
28
28
|
"output": "DeletePictureResponse",
|
29
29
|
"status": "online"
|
30
30
|
},
|
31
|
+
"DescribeAIConversation": {
|
32
|
+
"document": "查询AI对话任务状态。",
|
33
|
+
"input": "DescribeAIConversationRequest",
|
34
|
+
"name": "查询AI对话状态",
|
35
|
+
"output": "DescribeAIConversationResponse",
|
36
|
+
"status": "online"
|
37
|
+
},
|
31
38
|
"DescribeAITranscription": {
|
32
39
|
"document": "查询AI转录任务状态。",
|
33
40
|
"input": "DescribeAITranscriptionRequest",
|
@@ -252,6 +259,13 @@
|
|
252
259
|
"output": "RemoveUserByStrRoomIdResponse",
|
253
260
|
"status": "online"
|
254
261
|
},
|
262
|
+
"StartAIConversation": {
|
263
|
+
"document": "启动一个任务,机器人将进入TRTC房间,与指定成员进行AI对话",
|
264
|
+
"input": "StartAIConversationRequest",
|
265
|
+
"name": "开始AI对话任务",
|
266
|
+
"output": "StartAIConversationResponse",
|
267
|
+
"status": "online"
|
268
|
+
},
|
255
269
|
"StartAITranscription": {
|
256
270
|
"document": "这个接口调用后,后台会启动转录机器人,实时进行语音识别并下发字幕和转录消息。\n转录机器人支持两种拉流方式,通过TranscriptionMode字段控制:\n- 拉取全房间的流。\n- 拉取特定用户的流。\n\n服务端通过TRTC的自定义消息实时下发字幕和会议记录,CmdId固定是1。客户端只需监听自定义消息的回调即可,比如[c++回调](https://cloud.tencent.com/document/product/647/79637#4cd82f4edb24992a15a25187089e1565)。其他客户端比如安卓、Web等同样可在该链接处找到。\n\n服务端实时下发的消息是JSON字符串,实时字幕具体格式如下:\n`{\n \"type\": \"subtitle\",\n \"userid\": \"xxx\",\n \"text\": \"xxx\",\n \"translation_text\": \"xxx\",\n \"start_time\": \"00:00:02\",\n \"end_time\": \"00:00:05\"\n}`\n字段作用如下:\n- type是subtitle,表示这是实时字幕消息。\n- userid表示是哪个用户说的话。\n- text是语音识别出的文本。\n- translation_text是text翻译后的文本,如果不启用翻译,则是空字符串。\n- start_time和end_time表示该字幕消息从任务开启后的开始和结束时间。\n\n转录消息具体格式如下:\n`{\n \"type\": \"transcription\",\n \"userid\": \"xxx\",\n \"text\": \"xxx\",\n \"translation_text\": \"xx\",\n \"start_time\": \"00:00:02\",\n \"end_time\": \"00:00:05\"\n}`\n字段作用如下:\n- type是transcription,表示这是转录消息。\n- 其余字段同实时字幕消息。\n\n转录消息和实时字幕消息的区别是,转录消息是完整的一句话,实时字幕消息则是这一句话的中间阶段。\n假如有一句完整的话,“今天天气怎么样?”,那么服务的下发消息的顺序可能是这样:\n- 字幕消息,“今天”\n- 字幕消息,“今天天气”\n- 字幕消息,“今天天气怎么样”\n- 转录消息,“今天天气怎么样?”",
|
257
271
|
"input": "StartAITranscriptionRequest",
|
@@ -294,6 +308,13 @@
|
|
294
308
|
"output": "StartWebRecordResponse",
|
295
309
|
"status": "online"
|
296
310
|
},
|
311
|
+
"StopAIConversation": {
|
312
|
+
"document": "停止AI对话任务",
|
313
|
+
"input": "StopAIConversationRequest",
|
314
|
+
"name": "停止AI对话",
|
315
|
+
"output": "StopAIConversationResponse",
|
316
|
+
"status": "online"
|
317
|
+
},
|
297
318
|
"StopAITranscription": {
|
298
319
|
"document": "停止AI转录任务。",
|
299
320
|
"input": "StopAITranscriptionRequest",
|
@@ -440,6 +461,56 @@
|
|
440
461
|
],
|
441
462
|
"usage": "out"
|
442
463
|
},
|
464
|
+
"AgentConfig": {
|
465
|
+
"document": "机器人参数",
|
466
|
+
"members": [
|
467
|
+
{
|
468
|
+
"disabled": false,
|
469
|
+
"document": "机器人的UserId,用于进房发起任务。【注意】这个UserId不能与当前房间内的主播观众[UserId](https://cloud.tencent.com/document/product/647/46351#userid)重复。如果一个房间发起多个任务时,机器人的UserId也不能相互重复,否则会中断前一个任务。需要保证机器人UserId在房间内唯一。\n注意:此字段可能返回 null,表示取不到有效值。",
|
470
|
+
"example": "无",
|
471
|
+
"member": "string",
|
472
|
+
"name": "UserId",
|
473
|
+
"output_required": false,
|
474
|
+
"required": true,
|
475
|
+
"type": "string",
|
476
|
+
"value_allowed_null": true
|
477
|
+
},
|
478
|
+
{
|
479
|
+
"disabled": false,
|
480
|
+
"document": "机器人UserId对应的校验签名,即UserId和UserSig相当于机器人进房的登录密码,具体计算方法请参考TRTC计算[UserSig](https://cloud.tencent.com/document/product/647/45910#UserSig)的方案。\n注意:此字段可能返回 null,表示取不到有效值。",
|
481
|
+
"example": "无",
|
482
|
+
"member": "string",
|
483
|
+
"name": "UserSig",
|
484
|
+
"output_required": false,
|
485
|
+
"required": true,
|
486
|
+
"type": "string",
|
487
|
+
"value_allowed_null": true
|
488
|
+
},
|
489
|
+
{
|
490
|
+
"disabled": false,
|
491
|
+
"document": "机器人拉流的UserId, 填写后,机器人会拉取该UserId的流进行实时处理\n注意:此字段可能返回 null,表示取不到有效值。",
|
492
|
+
"example": "无",
|
493
|
+
"member": "string",
|
494
|
+
"name": "TargetUserId",
|
495
|
+
"output_required": false,
|
496
|
+
"required": true,
|
497
|
+
"type": "string",
|
498
|
+
"value_allowed_null": true
|
499
|
+
},
|
500
|
+
{
|
501
|
+
"disabled": false,
|
502
|
+
"document": "房间内推流用户全部退出后超过MaxIdleTime秒,后台自动关闭任务,默认值是60s。\n注意:此字段可能返回 null,表示取不到有效值。",
|
503
|
+
"example": "无",
|
504
|
+
"member": "uint64",
|
505
|
+
"name": "MaxIdleTime",
|
506
|
+
"output_required": false,
|
507
|
+
"required": false,
|
508
|
+
"type": "int",
|
509
|
+
"value_allowed_null": true
|
510
|
+
}
|
511
|
+
],
|
512
|
+
"usage": "both"
|
513
|
+
},
|
443
514
|
"AgentParams": {
|
444
515
|
"document": "转推服务加入TRTC房间的机器人参数。",
|
445
516
|
"members": [
|
@@ -972,6 +1043,91 @@
|
|
972
1043
|
],
|
973
1044
|
"type": "object"
|
974
1045
|
},
|
1046
|
+
"DescribeAIConversationRequest": {
|
1047
|
+
"document": "DescribeAIConversation请求参数结构体",
|
1048
|
+
"members": [
|
1049
|
+
{
|
1050
|
+
"disabled": false,
|
1051
|
+
"document": "TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和开启转录任务的房间使用的SdkAppId相同。",
|
1052
|
+
"example": "无",
|
1053
|
+
"member": "uint64",
|
1054
|
+
"name": "SdkAppId",
|
1055
|
+
"required": false,
|
1056
|
+
"type": "int"
|
1057
|
+
},
|
1058
|
+
{
|
1059
|
+
"disabled": false,
|
1060
|
+
"document": "唯一标识一次任务。",
|
1061
|
+
"example": "无",
|
1062
|
+
"member": "string",
|
1063
|
+
"name": "TaskId",
|
1064
|
+
"required": false,
|
1065
|
+
"type": "string"
|
1066
|
+
},
|
1067
|
+
{
|
1068
|
+
"disabled": false,
|
1069
|
+
"document": "开启任务时填写的SessionId,如果没写则不返回。",
|
1070
|
+
"example": "无",
|
1071
|
+
"member": "string",
|
1072
|
+
"name": "SessionId",
|
1073
|
+
"required": false,
|
1074
|
+
"type": "string"
|
1075
|
+
}
|
1076
|
+
],
|
1077
|
+
"type": "object"
|
1078
|
+
},
|
1079
|
+
"DescribeAIConversationResponse": {
|
1080
|
+
"document": "DescribeAIConversation返回参数结构体",
|
1081
|
+
"members": [
|
1082
|
+
{
|
1083
|
+
"disabled": false,
|
1084
|
+
"document": "任务开始时间。",
|
1085
|
+
"example": "无",
|
1086
|
+
"member": "string",
|
1087
|
+
"name": "StartTime",
|
1088
|
+
"output_required": false,
|
1089
|
+
"type": "string",
|
1090
|
+
"value_allowed_null": false
|
1091
|
+
},
|
1092
|
+
{
|
1093
|
+
"disabled": false,
|
1094
|
+
"document": "任务状态。有4个值:1、Idle表示任务未开始2、Preparing表示任务准备中3、InProgress表示任务正在运行4、Stopped表示任务已停止,正在清理资源中",
|
1095
|
+
"example": "无",
|
1096
|
+
"member": "string",
|
1097
|
+
"name": "Status",
|
1098
|
+
"output_required": false,
|
1099
|
+
"type": "string",
|
1100
|
+
"value_allowed_null": false
|
1101
|
+
},
|
1102
|
+
{
|
1103
|
+
"disabled": false,
|
1104
|
+
"document": "唯一标识一次任务。",
|
1105
|
+
"example": "无",
|
1106
|
+
"member": "string",
|
1107
|
+
"name": "TaskId",
|
1108
|
+
"output_required": false,
|
1109
|
+
"type": "string",
|
1110
|
+
"value_allowed_null": false
|
1111
|
+
},
|
1112
|
+
{
|
1113
|
+
"disabled": false,
|
1114
|
+
"document": "开启对话任务时填写的SessionId,如果没写则不返回。",
|
1115
|
+
"example": "无",
|
1116
|
+
"member": "string",
|
1117
|
+
"name": "SessionId",
|
1118
|
+
"output_required": false,
|
1119
|
+
"type": "string",
|
1120
|
+
"value_allowed_null": false
|
1121
|
+
},
|
1122
|
+
{
|
1123
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1124
|
+
"member": "string",
|
1125
|
+
"name": "RequestId",
|
1126
|
+
"type": "string"
|
1127
|
+
}
|
1128
|
+
],
|
1129
|
+
"type": "object"
|
1130
|
+
},
|
975
1131
|
"DescribeAITranscriptionRequest": {
|
976
1132
|
"document": "DescribeAITranscription请求参数结构体",
|
977
1133
|
"members": [
|
@@ -5066,6 +5222,34 @@
|
|
5066
5222
|
],
|
5067
5223
|
"usage": "both"
|
5068
5224
|
},
|
5225
|
+
"STTConfig": {
|
5226
|
+
"document": "语音转文字参数",
|
5227
|
+
"members": [
|
5228
|
+
{
|
5229
|
+
"disabled": false,
|
5230
|
+
"document": "语音识别支持的语言,默认是\"zh\" 中文\n目前全量支持的语言如下,等号左面是语言英文名,右面是Language字段需要填写的值,该值遵循[ISO639](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes):\n1. Chinese = \"zh\" # 中文\n2. Chinese_TW = \"zh-TW\" # 中国台湾\n3. Chinese_DIALECT = \"zh-dialect\" # 中国方言\n4. English = \"en\" # 英语\n5. Vietnamese = \"vi\" # 越南语\n6. Japanese = \"ja\" # 日语\n7. Korean = \"ko\" # 汉语\n8. Indonesia = \"id\" # 印度尼西亚语\n9. Thai = \"th\" # 泰语\n10. Portuguese = \"pt\" # 葡萄牙语\n11. Turkish = \"tr\" # 土耳其语\n12. Arabic = \"ar\" # 阿拉伯语\n13. Spanish = \"es\" # 西班牙语\n14. Hindi = \"hi\" # 印地语\n15. French = \"fr\" # 法语\n16. Malay = \"ms\" # 马来语\n17. Filipino = \"fil\" # 菲律宾语\n18. German = \"de\" # 德语\n19. Italian = \"it\" # 意大利语\n20. Russian = \"ru\" # 俄语\n\n注意:\n如果缺少满足您需求的语言,请联系我们技术人员。\n注意:此字段可能返回 null,表示取不到有效值。",
|
5231
|
+
"example": "zh",
|
5232
|
+
"member": "string",
|
5233
|
+
"name": "Language",
|
5234
|
+
"output_required": false,
|
5235
|
+
"required": false,
|
5236
|
+
"type": "string",
|
5237
|
+
"value_allowed_null": true
|
5238
|
+
},
|
5239
|
+
{
|
5240
|
+
"disabled": false,
|
5241
|
+
"document": "额外识别可能替代语言,最多3个, 需高级版支持,Language指定方言时,不允许设置该字段\n\n注意:此字段可能返回 null,表示取不到有效值。",
|
5242
|
+
"example": "无",
|
5243
|
+
"member": "string",
|
5244
|
+
"name": "AlternativeLanguage",
|
5245
|
+
"output_required": false,
|
5246
|
+
"required": false,
|
5247
|
+
"type": "list",
|
5248
|
+
"value_allowed_null": true
|
5249
|
+
}
|
5250
|
+
],
|
5251
|
+
"usage": "both"
|
5252
|
+
},
|
5069
5253
|
"ScaleInfomation": {
|
5070
5254
|
"document": "历史规模信息",
|
5071
5255
|
"members": [
|
@@ -5338,6 +5522,106 @@
|
|
5338
5522
|
],
|
5339
5523
|
"usage": "in"
|
5340
5524
|
},
|
5525
|
+
"StartAIConversationRequest": {
|
5526
|
+
"document": "StartAIConversation请求参数结构体",
|
5527
|
+
"members": [
|
5528
|
+
{
|
5529
|
+
"disabled": false,
|
5530
|
+
"document": "TRTC的[SdkAppId](https://cloud.tencent.com/document/product/647/46351#sdkappid),和开启转录任务的房间使用的SdkAppId相同。",
|
5531
|
+
"example": "无",
|
5532
|
+
"member": "uint64",
|
5533
|
+
"name": "SdkAppId",
|
5534
|
+
"required": true,
|
5535
|
+
"type": "int"
|
5536
|
+
},
|
5537
|
+
{
|
5538
|
+
"disabled": false,
|
5539
|
+
"document": "TRTC的[RoomId](https://cloud.tencent.com/document/product/647/46351#roomid),表示开启对话任务的房间号。",
|
5540
|
+
"example": "无",
|
5541
|
+
"member": "string",
|
5542
|
+
"name": "RoomId",
|
5543
|
+
"required": true,
|
5544
|
+
"type": "string"
|
5545
|
+
},
|
5546
|
+
{
|
5547
|
+
"disabled": false,
|
5548
|
+
"document": "机器人参数",
|
5549
|
+
"example": "无",
|
5550
|
+
"member": "AgentConfig",
|
5551
|
+
"name": "AgentConfig",
|
5552
|
+
"required": true,
|
5553
|
+
"type": "object"
|
5554
|
+
},
|
5555
|
+
{
|
5556
|
+
"disabled": false,
|
5557
|
+
"document": "调用方传入的唯一Id,服务端用来去重。",
|
5558
|
+
"example": "无",
|
5559
|
+
"member": "string",
|
5560
|
+
"name": "SessionId",
|
5561
|
+
"required": false,
|
5562
|
+
"type": "string"
|
5563
|
+
},
|
5564
|
+
{
|
5565
|
+
"disabled": false,
|
5566
|
+
"document": "TRTC房间号的类型,0代表数字房间号,1代表字符串房间号。不填默认是数字房间号。",
|
5567
|
+
"example": "无",
|
5568
|
+
"member": "uint64",
|
5569
|
+
"name": "RoomIdType",
|
5570
|
+
"required": false,
|
5571
|
+
"type": "int"
|
5572
|
+
},
|
5573
|
+
{
|
5574
|
+
"disabled": false,
|
5575
|
+
"document": "语音识别配置。",
|
5576
|
+
"example": "无",
|
5577
|
+
"member": "STTConfig",
|
5578
|
+
"name": "STTConfig",
|
5579
|
+
"required": false,
|
5580
|
+
"type": "object"
|
5581
|
+
},
|
5582
|
+
{
|
5583
|
+
"disabled": false,
|
5584
|
+
"document": "LLM配置。需符合openai规范,为JSON字符串,示例如下:\n<pre> { <br>   \"LLMType\": “大模型类型\", // String 必填,目前固定为\"openai\" <br>   \"Model\": \"您的模型名称\", // String 必填,指定使用的模型<br> \"APIKey\": \"您的OpenAI API密钥\", // String 必填,相当于环境变量中的OPENAI_API_KEY<br>   \"APIBaseUrl\": \"https://api.openai.com\", // String 必填,OpenAI API的基础URL<br>   \"Streaming\": true // Boolean 非必填,指定是否使用流式传输<br>  } </pre>\n",
|
5585
|
+
"example": "无",
|
5586
|
+
"member": "string",
|
5587
|
+
"name": "LLMConfig",
|
5588
|
+
"required": false,
|
5589
|
+
"type": "string"
|
5590
|
+
},
|
5591
|
+
{
|
5592
|
+
"disabled": false,
|
5593
|
+
"document": "TTS配置。目前支持腾讯云TTS, 为JSON字符串,示例如下:\n <pre>{ <br>   \"AppId\": \"您的应用ID\", // String 必填<br>   \"TTSType\": \"TTS类型\", // String TTS类型, 固定为\"tencent\"<br>   \"SercetId\": \"您的密钥ID\", // String 必填<br>   \"SercetKey\": \"您的密钥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>",
|
5594
|
+
"example": "无",
|
5595
|
+
"member": "string",
|
5596
|
+
"name": "TTSConfig",
|
5597
|
+
"required": false,
|
5598
|
+
"type": "string"
|
5599
|
+
}
|
5600
|
+
],
|
5601
|
+
"type": "object"
|
5602
|
+
},
|
5603
|
+
"StartAIConversationResponse": {
|
5604
|
+
"document": "StartAIConversation返回参数结构体",
|
5605
|
+
"members": [
|
5606
|
+
{
|
5607
|
+
"disabled": false,
|
5608
|
+
"document": "用于唯一标识对话任务。",
|
5609
|
+
"example": "SV1FR+XTtvzAjRxZZ+aof1DfJF00VSBBNE0zR9W-PEpgCPBmt402BbnqMCdom79LtZO-VbLyV1nhVY1pFauWgrW12BevPvJ5Zn010nD6vj3hgfbVH0.",
|
5610
|
+
"member": "string",
|
5611
|
+
"name": "TaskId",
|
5612
|
+
"output_required": false,
|
5613
|
+
"type": "string",
|
5614
|
+
"value_allowed_null": false
|
5615
|
+
},
|
5616
|
+
{
|
5617
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5618
|
+
"member": "string",
|
5619
|
+
"name": "RequestId",
|
5620
|
+
"type": "string"
|
5621
|
+
}
|
5622
|
+
],
|
5623
|
+
"type": "object"
|
5624
|
+
},
|
5341
5625
|
"StartAITranscriptionRequest": {
|
5342
5626
|
"document": "StartAITranscription请求参数结构体",
|
5343
5627
|
"members": [
|
@@ -5909,6 +6193,33 @@
|
|
5909
6193
|
],
|
5910
6194
|
"type": "object"
|
5911
6195
|
},
|
6196
|
+
"StopAIConversationRequest": {
|
6197
|
+
"document": "StopAIConversation请求参数结构体",
|
6198
|
+
"members": [
|
6199
|
+
{
|
6200
|
+
"disabled": false,
|
6201
|
+
"document": "唯一标识任务。",
|
6202
|
+
"example": "-m97l2ZU7kOlV5cTRMoU6yoGp2nDYkzbJ13EC4K-4pycoZXVv+XVrNoUXQ8++8Z2PwUlAQ..",
|
6203
|
+
"member": "string",
|
6204
|
+
"name": "TaskId",
|
6205
|
+
"required": true,
|
6206
|
+
"type": "string"
|
6207
|
+
}
|
6208
|
+
],
|
6209
|
+
"type": "object"
|
6210
|
+
},
|
6211
|
+
"StopAIConversationResponse": {
|
6212
|
+
"document": "StopAIConversation返回参数结构体",
|
6213
|
+
"members": [
|
6214
|
+
{
|
6215
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
6216
|
+
"member": "string",
|
6217
|
+
"name": "RequestId",
|
6218
|
+
"type": "string"
|
6219
|
+
}
|
6220
|
+
],
|
6221
|
+
"type": "object"
|
6222
|
+
},
|
5912
6223
|
"StopAITranscriptionRequest": {
|
5913
6224
|
"document": "StopAITranscription请求参数结构体",
|
5914
6225
|
"members": [
|
@@ -32,6 +32,14 @@
|
|
32
32
|
"title": "删除图片"
|
33
33
|
}
|
34
34
|
],
|
35
|
+
"DescribeAIConversation": [
|
36
|
+
{
|
37
|
+
"document": "",
|
38
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAIConversation\n<公共请求参数>\n\n{\n \"TaskId\": \"SV1FR+XTtvzAjRxZZ+aof1DfJF00VSBBNE0zR9W-PEpgCPBmt402BbnqMCdom79LtZO-VbLyV1nhVY1pFauWgrW12BevPvJ5Zn010RnD6vj3hgfbV0.\"\n}",
|
39
|
+
"output": "{\n \"Response\": {\n \"StartTime\": \"abc\",\n \"Status\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
40
|
+
"title": "查询对话任务状态"
|
41
|
+
}
|
42
|
+
],
|
35
43
|
"DescribeAITranscription": [
|
36
44
|
{
|
37
45
|
"document": "",
|
@@ -288,6 +296,14 @@
|
|
288
296
|
"title": "移出用户"
|
289
297
|
}
|
290
298
|
],
|
299
|
+
"StartAIConversation": [
|
300
|
+
{
|
301
|
+
"document": "",
|
302
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartAIConversation\n<公共请求参数>\n\n{\n \"SdkAppId\": 12345678,\n \"RoomId\": \"room_987654321\",\n \"RoomIdType\": 1,\n \"AgentConfig\": {\n \"UserId\": \"user_12345\",\n \"UserSig\": \"user_signature_example\",\n \"MaxIdleTime\": 120,\n \"TargetUserId\": \"target_user_54321\"\n },\n \"SessionId\": \"session_1234567890abcdef\",\n \"STTConfig\": {\n \"Language\": \"en-US\",\n \"AlternativeLanguage\": [\n \"en-US\",\n \"zh\"\n ]\n },\n \"LLMConfig\": \"{\\\"LLMType\\\": \\\"openai\\\", \\\"Model\\\": \\\"gpt-3.5-turbo\\\", \\\"APIKey\\\": \\\"xxx\\\", \\\"APIBaseUrl\\\": \\\"http://xxxx-api.woa.com/v1\\\", \\\"Streaming\\\": true}\",\n \"TTSConfig\": \"{\\\"TTSType\\\": \\\"tencent\\\", \\\"AppId\\\": 130000000, \\\"SecretId\\\": \\\"AKIDxxxxx\\\", \\\"SecretKey\\\": \\\"HlDxxxxxx\\\", \\\"VoiceType\\\": 1008, \\\"Speed\\\": 1}\"\n}",
|
303
|
+
"output": "{\n \"Response\": {\n \"TaskId\": \"abc\",\n \"RequestId\": \"abc\"\n }\n}",
|
304
|
+
"title": "启动一个AI机器人对话"
|
305
|
+
}
|
306
|
+
],
|
291
307
|
"StartAITranscription": [
|
292
308
|
{
|
293
309
|
"document": "",
|
@@ -360,6 +376,14 @@
|
|
360
376
|
"title": "启动一个页面录制任务"
|
361
377
|
}
|
362
378
|
],
|
379
|
+
"StopAIConversation": [
|
380
|
+
{
|
381
|
+
"document": "",
|
382
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StopAIConversation\n<公共请求参数>\n\n{\n \"TaskId\": \"SV1FR+XTtvzAjRxZZ+aof1DfJF00VSBBNE0zR9W-PEpgCPBmt402BbnqMCdom79LtZO-VbLyV1nhVY1pFauWgrW12BevPvJ5Zn010RnD6vj3hgfbVH0.\"\n}",
|
383
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
384
|
+
"title": "停止AI对话任务"
|
385
|
+
}
|
386
|
+
],
|
363
387
|
"StopAITranscription": [
|
364
388
|
{
|
365
389
|
"document": "",
|
@@ -3910,6 +3910,15 @@
|
|
3910
3910
|
"name": "InternetConfig",
|
3911
3911
|
"required": false,
|
3912
3912
|
"type": "object"
|
3913
|
+
},
|
3914
|
+
{
|
3915
|
+
"disabled": false,
|
3916
|
+
"document": "关联的prometheus ID",
|
3917
|
+
"example": "prom-788xxxxxx",
|
3918
|
+
"member": "string",
|
3919
|
+
"name": "PromId",
|
3920
|
+
"required": false,
|
3921
|
+
"type": "string"
|
3913
3922
|
}
|
3914
3923
|
],
|
3915
3924
|
"type": "object"
|
@@ -14577,6 +14586,16 @@
|
|
14577
14586
|
"output_required": false,
|
14578
14587
|
"type": "string",
|
14579
14588
|
"value_allowed_null": true
|
14589
|
+
},
|
14590
|
+
{
|
14591
|
+
"disabled": false,
|
14592
|
+
"document": "公网负载均衡描述\n注意:此字段可能返回 null,表示取不到有效值。",
|
14593
|
+
"example": "test",
|
14594
|
+
"member": "string",
|
14595
|
+
"name": "Description",
|
14596
|
+
"output_required": false,
|
14597
|
+
"type": "string",
|
14598
|
+
"value_allowed_null": true
|
14580
14599
|
}
|
14581
14600
|
],
|
14582
14601
|
"usage": "out"
|