tccli 3.0.1371.1__py2.py3-none-any.whl → 3.0.1373.1__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.
- tccli/__init__.py +1 -1
- tccli/services/batch/v20170312/api.json +59 -59
- tccli/services/batch/v20170312/examples.json +3 -3
- tccli/services/cfg/v20210820/api.json +5 -5
- tccli/services/cfg/v20210820/examples.json +1 -1
- tccli/services/cfs/v20190719/api.json +10 -10
- tccli/services/cfs/v20190719/examples.json +1 -1
- tccli/services/ckafka/v20190819/api.json +21 -21
- tccli/services/clb/v20180317/api.json +259 -10
- tccli/services/cls/v20201016/api.json +388 -282
- tccli/services/cls/v20201016/examples.json +33 -33
- tccli/services/csip/v20221121/examples.json +1 -1
- tccli/services/ctem/v20231128/api.json +104 -104
- tccli/services/ctem/v20231128/examples.json +8 -8
- tccli/services/dnspod/v20210323/api.json +14 -4
- tccli/services/dnspod/v20210323/examples.json +2 -2
- tccli/services/es/v20180416/api.json +23 -4
- tccli/services/ess/v20201111/api.json +3 -3
- tccli/services/essbasic/v20210526/api.json +4 -4
- tccli/services/iai/v20200303/api.json +9 -0
- tccli/services/keewidb/v20220308/api.json +24 -24
- tccli/services/lcic/v20220817/api.json +46 -18
- tccli/services/lighthouse/lighthouse_client.py +106 -0
- tccli/services/lighthouse/v20200324/api.json +280 -0
- tccli/services/lighthouse/v20200324/examples.json +22 -0
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/lke_client.py +0 -53
- tccli/services/lke/v20231130/api.json +29 -79
- tccli/services/lke/v20231130/examples.json +0 -8
- tccli/services/mongodb/v20190725/api.json +4 -4
- tccli/services/monitor/v20180724/api.json +7 -7
- tccli/services/mps/v20190612/api.json +42 -2
- tccli/services/ocr/v20181119/api.json +43 -14
- tccli/services/organization/v20210331/api.json +25 -25
- tccli/services/organization/v20210331/examples.json +1 -1
- tccli/services/postgres/postgres_client.py +12 -171
- tccli/services/postgres/v20170312/api.json +20 -819
- tccli/services/postgres/v20170312/examples.json +6 -30
- tccli/services/scf/v20180416/api.json +2 -0
- tccli/services/ssl/v20191205/api.json +1 -1
- tccli/services/sts/v20180813/api.json +4 -4
- tccli/services/tcbr/v20220217/api.json +92 -0
- tccli/services/tcss/v20201101/api.json +32 -2
- tccli/services/tcss/v20201101/examples.json +3 -3
- tccli/services/teo/v20220901/api.json +12 -12
- tccli/services/tione/v20211111/api.json +18 -18
- tccli/services/tke/v20180525/api.json +10 -1
- tccli/services/tms/v20201229/api.json +6 -6
- tccli/services/trabbit/v20230418/api.json +41 -2
- tccli/services/trocket/trocket_client.py +65 -12
- tccli/services/trocket/v20230308/api.json +156 -0
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trtc/trtc_client.py +159 -0
- tccli/services/trtc/v20190722/api.json +273 -9
- tccli/services/trtc/v20190722/examples.json +24 -0
- tccli/services/tse/v20201207/api.json +23 -5
- tccli/services/tse/v20201207/examples.json +2 -2
- tccli/services/tsf/v20180326/api.json +907 -802
- tccli/services/tsf/v20180326/examples.json +29 -29
- tccli/services/vod/v20180717/api.json +73 -33
- tccli/services/vod/v20180717/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +12 -2
- tccli/services/vpc/v20170312/examples.json +2 -2
- tccli/services/waf/v20180125/api.json +717 -38
- tccli/services/waf/v20180125/examples.json +56 -0
- tccli/services/waf/waf_client.py +444 -73
- tccli/services/wedata/v20210820/api.json +138 -6
- tccli/services/wsa/v20250508/api.json +21 -3
- {tccli-3.0.1371.1.dist-info → tccli-3.0.1373.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1371.1.dist-info → tccli-3.0.1373.1.dist-info}/RECORD +73 -73
- {tccli-3.0.1371.1.dist-info → tccli-3.0.1373.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1371.1.dist-info → tccli-3.0.1373.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1371.1.dist-info → tccli-3.0.1373.1.dist-info}/license_files/LICENSE +0 -0
@@ -849,6 +849,58 @@ def doDescribeRecordingUsage(args, parsed_globals):
|
|
849
849
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
850
850
|
|
851
851
|
|
852
|
+
def doTextToSpeech(args, parsed_globals):
|
853
|
+
g_param = parse_global_arg(parsed_globals)
|
854
|
+
|
855
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
856
|
+
cred = credential.CVMRoleCredential()
|
857
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
858
|
+
cred = credential.STSAssumeRoleCredential(
|
859
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
860
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
861
|
+
)
|
862
|
+
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):
|
863
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
864
|
+
else:
|
865
|
+
cred = credential.Credential(
|
866
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
867
|
+
)
|
868
|
+
http_profile = HttpProfile(
|
869
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
870
|
+
reqMethod="POST",
|
871
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
872
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
873
|
+
)
|
874
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
875
|
+
if g_param[OptionsDefine.Language]:
|
876
|
+
profile.language = g_param[OptionsDefine.Language]
|
877
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
878
|
+
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
879
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
880
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
881
|
+
model = models.TextToSpeechRequest()
|
882
|
+
model.from_json_string(json.dumps(args))
|
883
|
+
start_time = time.time()
|
884
|
+
while True:
|
885
|
+
rsp = client.TextToSpeech(model)
|
886
|
+
result = rsp.to_json_string()
|
887
|
+
try:
|
888
|
+
json_obj = json.loads(result)
|
889
|
+
except TypeError as e:
|
890
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
891
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
892
|
+
break
|
893
|
+
cur_time = time.time()
|
894
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
895
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
896
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
897
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
898
|
+
else:
|
899
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
900
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
901
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
902
|
+
|
903
|
+
|
852
904
|
def doStartStreamIngest(args, parsed_globals):
|
853
905
|
g_param = parse_global_arg(parsed_globals)
|
854
906
|
|
@@ -2357,6 +2409,58 @@ def doDescribeUnusualEvent(args, parsed_globals):
|
|
2357
2409
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2358
2410
|
|
2359
2411
|
|
2412
|
+
def doVoiceClone(args, parsed_globals):
|
2413
|
+
g_param = parse_global_arg(parsed_globals)
|
2414
|
+
|
2415
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2416
|
+
cred = credential.CVMRoleCredential()
|
2417
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2418
|
+
cred = credential.STSAssumeRoleCredential(
|
2419
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2420
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2421
|
+
)
|
2422
|
+
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):
|
2423
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2424
|
+
else:
|
2425
|
+
cred = credential.Credential(
|
2426
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2427
|
+
)
|
2428
|
+
http_profile = HttpProfile(
|
2429
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2430
|
+
reqMethod="POST",
|
2431
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2432
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2433
|
+
)
|
2434
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2435
|
+
if g_param[OptionsDefine.Language]:
|
2436
|
+
profile.language = g_param[OptionsDefine.Language]
|
2437
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2438
|
+
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
2439
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2440
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2441
|
+
model = models.VoiceCloneRequest()
|
2442
|
+
model.from_json_string(json.dumps(args))
|
2443
|
+
start_time = time.time()
|
2444
|
+
while True:
|
2445
|
+
rsp = client.VoiceClone(model)
|
2446
|
+
result = rsp.to_json_string()
|
2447
|
+
try:
|
2448
|
+
json_obj = json.loads(result)
|
2449
|
+
except TypeError as e:
|
2450
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2451
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2452
|
+
break
|
2453
|
+
cur_time = time.time()
|
2454
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2455
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2456
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2457
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2458
|
+
else:
|
2459
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2460
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2461
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2462
|
+
|
2463
|
+
|
2360
2464
|
def doStartMCUMixTranscodeByStrRoomId(args, parsed_globals):
|
2361
2465
|
g_param = parse_global_arg(parsed_globals)
|
2362
2466
|
|
@@ -3553,6 +3657,58 @@ def doDescribeTRTCRealTimeScaleMetricData(args, parsed_globals):
|
|
3553
3657
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3554
3658
|
|
3555
3659
|
|
3660
|
+
def doTextToSpeechSSE(args, parsed_globals):
|
3661
|
+
g_param = parse_global_arg(parsed_globals)
|
3662
|
+
|
3663
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3664
|
+
cred = credential.CVMRoleCredential()
|
3665
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3666
|
+
cred = credential.STSAssumeRoleCredential(
|
3667
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3668
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3669
|
+
)
|
3670
|
+
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):
|
3671
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3672
|
+
else:
|
3673
|
+
cred = credential.Credential(
|
3674
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3675
|
+
)
|
3676
|
+
http_profile = HttpProfile(
|
3677
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3678
|
+
reqMethod="POST",
|
3679
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3680
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3681
|
+
)
|
3682
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3683
|
+
if g_param[OptionsDefine.Language]:
|
3684
|
+
profile.language = g_param[OptionsDefine.Language]
|
3685
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3686
|
+
client = mod.TrtcClient(cred, g_param[OptionsDefine.Region], profile)
|
3687
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3688
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3689
|
+
model = models.TextToSpeechSSERequest()
|
3690
|
+
model.from_json_string(json.dumps(args))
|
3691
|
+
start_time = time.time()
|
3692
|
+
while True:
|
3693
|
+
rsp = client.TextToSpeechSSE(model)
|
3694
|
+
result = rsp.to_json_string()
|
3695
|
+
try:
|
3696
|
+
json_obj = json.loads(result)
|
3697
|
+
except TypeError as e:
|
3698
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3699
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3700
|
+
break
|
3701
|
+
cur_time = time.time()
|
3702
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3703
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3704
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3705
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3706
|
+
else:
|
3707
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3708
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3709
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3710
|
+
|
3711
|
+
|
3556
3712
|
def doStopMCUMixTranscode(args, parsed_globals):
|
3557
3713
|
g_param = parse_global_arg(parsed_globals)
|
3558
3714
|
|
@@ -3632,6 +3788,7 @@ ACTION_MAP = {
|
|
3632
3788
|
"DescribeTRTCRealTimeScaleData": doDescribeTRTCRealTimeScaleData,
|
3633
3789
|
"DescribeAIConversation": doDescribeAIConversation,
|
3634
3790
|
"DescribeRecordingUsage": doDescribeRecordingUsage,
|
3791
|
+
"TextToSpeech": doTextToSpeech,
|
3635
3792
|
"StartStreamIngest": doStartStreamIngest,
|
3636
3793
|
"DescribeCloudModeration": doDescribeCloudModeration,
|
3637
3794
|
"UpdateStreamIngest": doUpdateStreamIngest,
|
@@ -3661,6 +3818,7 @@ ACTION_MAP = {
|
|
3661
3818
|
"StopMCUMixTranscodeByStrRoomId": doStopMCUMixTranscodeByStrRoomId,
|
3662
3819
|
"StopStreamIngest": doStopStreamIngest,
|
3663
3820
|
"DescribeUnusualEvent": doDescribeUnusualEvent,
|
3821
|
+
"VoiceClone": doVoiceClone,
|
3664
3822
|
"StartMCUMixTranscodeByStrRoomId": doStartMCUMixTranscodeByStrRoomId,
|
3665
3823
|
"RemoveUserByStrRoomId": doRemoveUserByStrRoomId,
|
3666
3824
|
"DescribeMixTranscodingUsage": doDescribeMixTranscodingUsage,
|
@@ -3684,6 +3842,7 @@ ACTION_MAP = {
|
|
3684
3842
|
"DeleteCloudSliceTask": doDeleteCloudSliceTask,
|
3685
3843
|
"ModifyCloudModeration": doModifyCloudModeration,
|
3686
3844
|
"DescribeTRTCRealTimeScaleMetricData": doDescribeTRTCRealTimeScaleMetricData,
|
3845
|
+
"TextToSpeechSSE": doTextToSpeechSSE,
|
3687
3846
|
"StopMCUMixTranscode": doStopMCUMixTranscode,
|
3688
3847
|
|
3689
3848
|
}
|
@@ -455,6 +455,20 @@
|
|
455
455
|
"output": "StopWebRecordResponse",
|
456
456
|
"status": "online"
|
457
457
|
},
|
458
|
+
"TextToSpeech": {
|
459
|
+
"document": "语音合成接口",
|
460
|
+
"input": "TextToSpeechRequest",
|
461
|
+
"name": "文本转语音",
|
462
|
+
"output": "TextToSpeechResponse",
|
463
|
+
"status": "online"
|
464
|
+
},
|
465
|
+
"TextToSpeechSSE": {
|
466
|
+
"document": "SSE流式文本转语音",
|
467
|
+
"input": "TextToSpeechSSERequest",
|
468
|
+
"name": "SSE流式文本转语音",
|
469
|
+
"output": "TextToSpeechSSEResponse",
|
470
|
+
"status": "online"
|
471
|
+
},
|
458
472
|
"UpdateAIConversation": {
|
459
473
|
"document": "更新AIConversation参数",
|
460
474
|
"input": "UpdateAIConversationRequest",
|
@@ -482,6 +496,13 @@
|
|
482
496
|
"name": "更新声纹信息",
|
483
497
|
"output": "UpdateVoicePrintResponse",
|
484
498
|
"status": "online"
|
499
|
+
},
|
500
|
+
"VoiceClone": {
|
501
|
+
"document": "声音克隆",
|
502
|
+
"input": "VoiceCloneRequest",
|
503
|
+
"name": "声音克隆",
|
504
|
+
"output": "VoiceCloneResponse",
|
505
|
+
"status": "online"
|
485
506
|
}
|
486
507
|
},
|
487
508
|
"metadata": {
|
@@ -893,6 +914,23 @@
|
|
893
914
|
],
|
894
915
|
"usage": "in"
|
895
916
|
},
|
917
|
+
"AudioFormat": {
|
918
|
+
"document": "TTS音频输出的格式",
|
919
|
+
"members": [
|
920
|
+
{
|
921
|
+
"disabled": false,
|
922
|
+
"document": "生成的音频格式,默认pcm,目前支持的格式列表:[pcm]。",
|
923
|
+
"example": "pcm",
|
924
|
+
"member": "string",
|
925
|
+
"name": "Format",
|
926
|
+
"output_required": false,
|
927
|
+
"required": false,
|
928
|
+
"type": "string",
|
929
|
+
"value_allowed_null": false
|
930
|
+
}
|
931
|
+
],
|
932
|
+
"usage": "both"
|
933
|
+
},
|
896
934
|
"AudioParams": {
|
897
935
|
"document": "录制音频转码参数。",
|
898
936
|
"members": [
|
@@ -2204,7 +2242,7 @@
|
|
2204
2242
|
{
|
2205
2243
|
"disabled": false,
|
2206
2244
|
"document": "用户SdkAppId(如:1400xxxxxx)。",
|
2207
|
-
"example": "
|
2245
|
+
"example": "1400123456",
|
2208
2246
|
"member": "uint64",
|
2209
2247
|
"name": "SdkAppId",
|
2210
2248
|
"required": true,
|
@@ -2213,7 +2251,7 @@
|
|
2213
2251
|
{
|
2214
2252
|
"disabled": false,
|
2215
2253
|
"document": "需查询的用户数组,默认不填返回6个用户。",
|
2216
|
-
"example": "[\"
|
2254
|
+
"example": "[\"user_a\",\"user_b\"]",
|
2217
2255
|
"member": "string",
|
2218
2256
|
"name": "UserIds",
|
2219
2257
|
"required": false,
|
@@ -2221,7 +2259,7 @@
|
|
2221
2259
|
},
|
2222
2260
|
{
|
2223
2261
|
"disabled": false,
|
2224
|
-
"document": "需查询的指标,不填则只返回用户列表,填all则返回所有指标。\nappCpu:APP CPU使用率;\nsysCpu:系统 CPU使用率;\naBit:上/下行音频码率;单位:bps\naBlock:音频卡顿时长;单位:ms\nbigvBit:上/下行视频码率;单位:bps\nbigvCapFps:视频采集帧率;\nbigvEncFps:视频发送帧率;\nbigvDecFps:渲染帧率;\nbigvBlock:视频卡顿时长;单位:ms\naLoss:上/下行音频丢包率;\nbigvLoss:上/下行视频丢包率;\nbigvWidth:上/下行分辨率宽;\nbigvHeight:上/下行分辨率高;\naCapEnergy:音频采集能量;\naPlayEnergy:音频播放能量;\nrtt:SDK到云端的往返延时;单位: ms",
|
2262
|
+
"document": "需查询的指标,不填则只返回用户列表,填all则返回所有指标。\nappCpu:APP CPU使用率;\nsysCpu:系统 CPU使用率;\naBit:上/下行音频码率;单位:bps\naBlock:音频卡顿时长;单位:ms\nbigvBit:上/下行视频码率;单位:bps\nbigvCapFps:视频采集帧率;\nbigvEncFps:视频发送帧率;\nbigvDecFps:渲染帧率;\nbigvBlock:视频卡顿时长;单位:ms\naLoss:上/下行音频丢包率;\nbigvLoss:上/下行视频丢包率;\nbigvWidth:上/下行分辨率宽;\nbigvHeight:上/下行分辨率高;\naCapEnergy:音频采集能量;\naPlayEnergy:音频播放能量;\nrtt:SDK到云端的往返延时;单位: ms\nbigvRecFps: 云端送达帧率;",
|
2225
2263
|
"example": "[\"bigvCapFps\"]",
|
2226
2264
|
"member": "string",
|
2227
2265
|
"name": "DataType",
|
@@ -6990,7 +7028,7 @@
|
|
6990
7028
|
{
|
6991
7029
|
"disabled": false,
|
6992
7030
|
"document": "**发起模糊识别为高级版能力,默认按照高级版收费**\n注意:不支持填写\"zh-dialect\", \"16k_zh_edu\", \"16k_zh_medical\", \"16k_zh_court\", \"8k_zh_large\", \"16k_zh_large\",\"16k_multi_lang\", \"16k_zh_en\"\n",
|
6993
|
-
"example": "
|
7031
|
+
"example": "[\"zh\", \"en\"]",
|
6994
7032
|
"member": "string",
|
6995
7033
|
"name": "AlternativeLanguage",
|
6996
7034
|
"output_required": false,
|
@@ -7001,7 +7039,7 @@
|
|
7001
7039
|
{
|
7002
7040
|
"disabled": false,
|
7003
7041
|
"document": "自定义参数,联系后台使用\n",
|
7004
|
-
"example": "
|
7042
|
+
"example": "{\"key\": \"xx\"}",
|
7005
7043
|
"member": "string",
|
7006
7044
|
"name": "CustomParam",
|
7007
7045
|
"output_required": false,
|
@@ -7012,7 +7050,7 @@
|
|
7012
7050
|
{
|
7013
7051
|
"disabled": false,
|
7014
7052
|
"document": "语音识别vad的时间,范围为240-2000,默认为1000,单位为ms。更小的值会让语音识别分句更快。",
|
7015
|
-
"example": "
|
7053
|
+
"example": "500",
|
7016
7054
|
"member": "uint64",
|
7017
7055
|
"name": "VadSilenceTime",
|
7018
7056
|
"output_required": false,
|
@@ -7484,7 +7522,7 @@
|
|
7484
7522
|
{
|
7485
7523
|
"disabled": false,
|
7486
7524
|
"document": "机器人参数",
|
7487
|
-
"example": "
|
7525
|
+
"example": "无",
|
7488
7526
|
"member": "AgentConfig",
|
7489
7527
|
"name": "AgentConfig",
|
7490
7528
|
"required": true,
|
@@ -7511,7 +7549,7 @@
|
|
7511
7549
|
{
|
7512
7550
|
"disabled": false,
|
7513
7551
|
"document": "语音识别配置。",
|
7514
|
-
"example": "
|
7552
|
+
"example": "无",
|
7515
7553
|
"member": "STTConfig",
|
7516
7554
|
"name": "STTConfig",
|
7517
7555
|
"required": false,
|
@@ -7519,7 +7557,7 @@
|
|
7519
7557
|
},
|
7520
7558
|
{
|
7521
7559
|
"disabled": false,
|
7522
|
-
"document": "LLM配置。需符合openai规范,为JSON字符串,示例如下:\n<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>\n",
|
7560
|
+
"document": "LLM配置。需符合openai规范,为JSON字符串,示例如下:\n<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>   \"History\": 10, // Integer 选填,设置 LLM 的上下文轮次,默认值为0,最大值50<br>   \"HistoryMode\": 1, // Integer 选填,1表示LLM上下文中的内容会和播放音频做同步,没有播放的音频对应的文本不会出现在上下文中。0表示不会做同步,默认值为0<br>   \"Streaming\": true // Boolean 非必填,指定是否使用流式传输<br>  } </pre>\n",
|
7523
7561
|
"example": "{\\\"LLMType\\\": \\\"openai\\\", \\\"Model\\\": \\\"gpt-xxx\", \\\"APIKey\\\": \\\"xxxxxxxx\\\", \\\"APIUrl\\\": \\\"https://api.xxx.com/v1/chat/completions\\\", \\\"Streaming\\\": true}",
|
7524
7562
|
"member": "string",
|
7525
7563
|
"name": "LLMConfig",
|
@@ -8777,6 +8815,142 @@
|
|
8777
8815
|
],
|
8778
8816
|
"usage": "in"
|
8779
8817
|
},
|
8818
|
+
"TextToSpeechRequest": {
|
8819
|
+
"document": "TextToSpeech请求参数结构体",
|
8820
|
+
"members": [
|
8821
|
+
{
|
8822
|
+
"disabled": false,
|
8823
|
+
"document": "需要转语音的文字内容,长度范围:[1, 255]",
|
8824
|
+
"example": "你好呀",
|
8825
|
+
"member": "string",
|
8826
|
+
"name": "Text",
|
8827
|
+
"required": true,
|
8828
|
+
"type": "string"
|
8829
|
+
},
|
8830
|
+
{
|
8831
|
+
"disabled": false,
|
8832
|
+
"document": "文本转语音的声音配置",
|
8833
|
+
"example": "无",
|
8834
|
+
"member": "Voice",
|
8835
|
+
"name": "Voice",
|
8836
|
+
"required": true,
|
8837
|
+
"type": "object"
|
8838
|
+
},
|
8839
|
+
{
|
8840
|
+
"disabled": false,
|
8841
|
+
"document": "TRTC的SdkAppId",
|
8842
|
+
"example": "14600000000",
|
8843
|
+
"member": "uint64",
|
8844
|
+
"name": "SdkAppId",
|
8845
|
+
"required": true,
|
8846
|
+
"type": "int"
|
8847
|
+
},
|
8848
|
+
{
|
8849
|
+
"disabled": false,
|
8850
|
+
"document": "文本转语音的输出音频的格式",
|
8851
|
+
"example": "无",
|
8852
|
+
"member": "AudioFormat",
|
8853
|
+
"name": "AudioFormat",
|
8854
|
+
"required": false,
|
8855
|
+
"type": "object"
|
8856
|
+
},
|
8857
|
+
{
|
8858
|
+
"disabled": false,
|
8859
|
+
"document": "TTS的API密钥",
|
8860
|
+
"example": "sk-xxxxxx",
|
8861
|
+
"member": "string",
|
8862
|
+
"name": "APIKey",
|
8863
|
+
"required": false,
|
8864
|
+
"type": "string"
|
8865
|
+
}
|
8866
|
+
],
|
8867
|
+
"type": "object"
|
8868
|
+
},
|
8869
|
+
"TextToSpeechResponse": {
|
8870
|
+
"document": "TextToSpeech返回参数结构体",
|
8871
|
+
"members": [
|
8872
|
+
{
|
8873
|
+
"disabled": false,
|
8874
|
+
"document": "Base64编码的音频数据",
|
8875
|
+
"example": "ejujainengoxpam",
|
8876
|
+
"member": "string",
|
8877
|
+
"name": "Audio",
|
8878
|
+
"output_required": false,
|
8879
|
+
"type": "string",
|
8880
|
+
"value_allowed_null": false
|
8881
|
+
},
|
8882
|
+
{
|
8883
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
8884
|
+
"member": "string",
|
8885
|
+
"name": "RequestId",
|
8886
|
+
"type": "string"
|
8887
|
+
}
|
8888
|
+
],
|
8889
|
+
"type": "object"
|
8890
|
+
},
|
8891
|
+
"TextToSpeechSSERequest": {
|
8892
|
+
"document": "TextToSpeechSSE请求参数结构体",
|
8893
|
+
"members": [
|
8894
|
+
{
|
8895
|
+
"disabled": false,
|
8896
|
+
"document": "需要转语音的文字内容,长度范围:[1, 255]",
|
8897
|
+
"example": "你好呀",
|
8898
|
+
"member": "string",
|
8899
|
+
"name": "Text",
|
8900
|
+
"required": true,
|
8901
|
+
"type": "string"
|
8902
|
+
},
|
8903
|
+
{
|
8904
|
+
"disabled": false,
|
8905
|
+
"document": "文本转语音的声音配置",
|
8906
|
+
"example": "无",
|
8907
|
+
"member": "Voice",
|
8908
|
+
"name": "Voice",
|
8909
|
+
"required": true,
|
8910
|
+
"type": "object"
|
8911
|
+
},
|
8912
|
+
{
|
8913
|
+
"disabled": false,
|
8914
|
+
"document": "TRTC的SdkAppId",
|
8915
|
+
"example": "14600000000",
|
8916
|
+
"member": "uint64",
|
8917
|
+
"name": "SdkAppId",
|
8918
|
+
"required": true,
|
8919
|
+
"type": "int"
|
8920
|
+
},
|
8921
|
+
{
|
8922
|
+
"disabled": false,
|
8923
|
+
"document": "文本转语音的输出音频的格式",
|
8924
|
+
"example": "无",
|
8925
|
+
"member": "AudioFormat",
|
8926
|
+
"name": "AudioFormat",
|
8927
|
+
"required": false,
|
8928
|
+
"type": "object"
|
8929
|
+
},
|
8930
|
+
{
|
8931
|
+
"disabled": false,
|
8932
|
+
"document": "TTS的API密钥",
|
8933
|
+
"example": "sk-xxxxxxx",
|
8934
|
+
"member": "string",
|
8935
|
+
"name": "APIKey",
|
8936
|
+
"required": false,
|
8937
|
+
"type": "string"
|
8938
|
+
}
|
8939
|
+
],
|
8940
|
+
"type": "object"
|
8941
|
+
},
|
8942
|
+
"TextToSpeechSSEResponse": {
|
8943
|
+
"document": "TextToSpeechSSE返回参数结构体",
|
8944
|
+
"members": [
|
8945
|
+
{
|
8946
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。本接口为流式响应接口,当请求成功时,RequestId 会被放在 HTTP 响应的 Header \"X-TC-RequestId\" 中。",
|
8947
|
+
"member": "string",
|
8948
|
+
"name": "RequestId",
|
8949
|
+
"type": "string"
|
8950
|
+
}
|
8951
|
+
],
|
8952
|
+
"type": "object"
|
8953
|
+
},
|
8780
8954
|
"TimeValue": {
|
8781
8955
|
"document": "返回的质量数据,时间:值",
|
8782
8956
|
"members": [
|
@@ -9537,6 +9711,96 @@
|
|
9537
9711
|
],
|
9538
9712
|
"usage": "in"
|
9539
9713
|
},
|
9714
|
+
"Voice": {
|
9715
|
+
"document": "TTS的声音参数",
|
9716
|
+
"members": [
|
9717
|
+
{
|
9718
|
+
"disabled": false,
|
9719
|
+
"document": "TTS的声音的ID",
|
9720
|
+
"example": "256",
|
9721
|
+
"member": "string",
|
9722
|
+
"name": "VoiceId",
|
9723
|
+
"output_required": false,
|
9724
|
+
"required": true,
|
9725
|
+
"type": "string",
|
9726
|
+
"value_allowed_null": false
|
9727
|
+
}
|
9728
|
+
],
|
9729
|
+
"usage": "both"
|
9730
|
+
},
|
9731
|
+
"VoiceCloneRequest": {
|
9732
|
+
"document": "VoiceClone请求参数结构体",
|
9733
|
+
"members": [
|
9734
|
+
{
|
9735
|
+
"disabled": false,
|
9736
|
+
"document": "TRTC的SdkAppId",
|
9737
|
+
"example": "14600000000",
|
9738
|
+
"member": "uint64",
|
9739
|
+
"name": "SdkAppId",
|
9740
|
+
"required": true,
|
9741
|
+
"type": "int"
|
9742
|
+
},
|
9743
|
+
{
|
9744
|
+
"disabled": false,
|
9745
|
+
"document": "TTS的API密钥",
|
9746
|
+
"example": "sk-xxxxxxx",
|
9747
|
+
"member": "string",
|
9748
|
+
"name": "APIKey",
|
9749
|
+
"required": true,
|
9750
|
+
"type": "string"
|
9751
|
+
},
|
9752
|
+
{
|
9753
|
+
"disabled": false,
|
9754
|
+
"document": "声音克隆的名称, 只允许使用数字、字母、下划线,不能超过36位",
|
9755
|
+
"example": "xiaoming_01",
|
9756
|
+
"member": "string",
|
9757
|
+
"name": "VoiceName",
|
9758
|
+
"required": true,
|
9759
|
+
"type": "string"
|
9760
|
+
},
|
9761
|
+
{
|
9762
|
+
"disabled": false,
|
9763
|
+
"document": "声音克隆的参考音频,必须为16k单声道的wav的base64字符串, 长度在5秒~12秒之间",
|
9764
|
+
"example": "ejiwnorinofnODSw",
|
9765
|
+
"member": "string",
|
9766
|
+
"name": "PromptAudio",
|
9767
|
+
"required": true,
|
9768
|
+
"type": "string"
|
9769
|
+
},
|
9770
|
+
{
|
9771
|
+
"disabled": false,
|
9772
|
+
"document": "声音克隆的参考文本,为参考音频对应的文字。",
|
9773
|
+
"example": "你好,我要复刻一个我的音色。",
|
9774
|
+
"member": "string",
|
9775
|
+
"name": "PromptText",
|
9776
|
+
"required": false,
|
9777
|
+
"type": "string"
|
9778
|
+
}
|
9779
|
+
],
|
9780
|
+
"type": "object"
|
9781
|
+
},
|
9782
|
+
"VoiceCloneResponse": {
|
9783
|
+
"document": "VoiceClone返回参数结构体",
|
9784
|
+
"members": [
|
9785
|
+
{
|
9786
|
+
"disabled": false,
|
9787
|
+
"document": "克隆出的音色ID,可以用此id进行语音合成",
|
9788
|
+
"example": "xiaoming_01_ejwiqnd",
|
9789
|
+
"member": "string",
|
9790
|
+
"name": "VoiceId",
|
9791
|
+
"output_required": false,
|
9792
|
+
"type": "string",
|
9793
|
+
"value_allowed_null": false
|
9794
|
+
},
|
9795
|
+
{
|
9796
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
9797
|
+
"member": "string",
|
9798
|
+
"name": "RequestId",
|
9799
|
+
"type": "string"
|
9800
|
+
}
|
9801
|
+
],
|
9802
|
+
"type": "object"
|
9803
|
+
},
|
9540
9804
|
"VoicePrint": {
|
9541
9805
|
"document": "声纹配置参数",
|
9542
9806
|
"members": [
|
@@ -556,6 +556,22 @@
|
|
556
556
|
"title": "停止页面录制任务"
|
557
557
|
}
|
558
558
|
],
|
559
|
+
"TextToSpeech": [
|
560
|
+
{
|
561
|
+
"document": "",
|
562
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: TextToSpeech\n<公共请求参数>\n\n{\n \"Text\": \"你好呀\",\n \"SdkAppId\": 1466000000,\n \"Voice\": {\n \"VoiceId\": \"256\"\n }\n}\n\n",
|
563
|
+
"output": "{\n \"Response\": {\n \"Audio\": \"inxxx\",\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
564
|
+
"title": "开始一个语音合成"
|
565
|
+
}
|
566
|
+
],
|
567
|
+
"TextToSpeechSSE": [
|
568
|
+
{
|
569
|
+
"document": "启动一个SSE流式语音合成,注意在解析时,音频的Type为chunk,其他的Type 非音频",
|
570
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: TextToSpeechSSE\n<公共请求参数>\n\n{\n \"Text\": \"你好呀\",\n \"SdkAppId\": 14600000000,\n \"Voice\": {\n \"VoiceId\": \"256\"\n }\n}\n\n",
|
571
|
+
"output": "data: {\"Type\": \"chunk\", \"RequestId\": \"456e7890-e12b-34d5-a678-426614174000\", \"ChunkId\": \"chunk_0\", \"Audio\": \"base64编码的音频数据...\", \"Seq\": 0, \"IsEnd\": false}\n\ndata: {\"Type\": \"chunk\", \"RequestId\": \"456e7890-e12b-34d5-a678-426614174000\", \"ChunkId\": \"chunk_1\", \"Audio\": \"base64编码的音频数据...\", \"Seq\": 1, \"IsEnd\": false}\n\ndata: {\"Type\": \"chunk\", \"RequestId\": \"456e7890-e12b-34d5-a678-426614174000\", \"ChunkId\": \"chunk_2\", \"Audio\": \"base64编码的音频数据...\", \"Seq\": 2, \"IsEnd\": true}",
|
572
|
+
"title": "启动一个SSE流式语音合成"
|
573
|
+
}
|
574
|
+
],
|
559
575
|
"UpdateAIConversation": [
|
560
576
|
{
|
561
577
|
"document": "在对话过程中,想要动态更新tts的音色",
|
@@ -593,6 +609,14 @@
|
|
593
609
|
"output": "{\n \"Response\": {\n \"RequestId\": \"40e323b2-f0e7-402c-be5d-b02aef40d887\"\n }\n}",
|
594
610
|
"title": "更新jackson的音频信息"
|
595
611
|
}
|
612
|
+
],
|
613
|
+
"VoiceClone": [
|
614
|
+
{
|
615
|
+
"document": "",
|
616
|
+
"input": "POST / HTTP/1.1\nHost: trtc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: VoiceClone\n<公共请求参数>\n\n{\n \"SdkAppId\": 1466000000,\n \"VoiceName\": \"xiaoming_02\",\n \"APIKey\": \"sk-xxxxxx\",\n \"PromptAudio\": \"ejxxxxxx\"\n}\n\n",
|
617
|
+
"output": "{\n \"Response\": {\n \"VoiceId\": \"xiaoming_02_aidniwqndq\",\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
618
|
+
"title": "创建一个声音克隆"
|
619
|
+
}
|
596
620
|
]
|
597
621
|
},
|
598
622
|
"version": "1.0"
|