tccli 3.0.1371.1__py2.py3-none-any.whl → 3.0.1372.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 +56 -56
- 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/ckafka/v20190819/api.json +21 -21
- tccli/services/clb/v20180317/api.json +7 -7
- tccli/services/cls/v20201016/api.json +311 -207
- tccli/services/cls/v20201016/examples.json +28 -28
- 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/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/monitor/v20180724/api.json +3 -3
- tccli/services/ocr/v20181119/api.json +22 -2
- tccli/services/organization/v20210331/api.json +25 -25
- tccli/services/organization/v20210331/examples.json +1 -1
- tccli/services/ssl/v20191205/api.json +1 -1
- tccli/services/teo/v20220901/api.json +12 -12
- tccli/services/tione/v20211111/api.json +18 -18
- tccli/services/tms/v20201229/api.json +6 -6
- tccli/services/trtc/trtc_client.py +159 -0
- tccli/services/trtc/v20190722/api.json +264 -0
- 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 +490 -490
- tccli/services/tsf/v20180326/examples.json +21 -21
- tccli/services/vod/v20180717/api.json +12 -1
- tccli/services/vpc/v20170312/api.json +12 -2
- tccli/services/vpc/v20170312/examples.json +2 -2
- tccli/services/wsa/v20250508/api.json +21 -3
- {tccli-3.0.1371.1.dist-info → tccli-3.0.1372.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1371.1.dist-info → tccli-3.0.1372.1.dist-info}/RECORD +49 -49
- {tccli-3.0.1371.1.dist-info → tccli-3.0.1372.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1371.1.dist-info → tccli-3.0.1372.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1371.1.dist-info → tccli-3.0.1372.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": [
|
@@ -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": "声音克隆的名字",
|
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"
|
@@ -1772,7 +1772,7 @@
|
|
1772
1772
|
{
|
1773
1773
|
"disabled": false,
|
1774
1774
|
"document": "备可用区",
|
1775
|
-
"example": "ap-guangzhou-
|
1775
|
+
"example": "ap-guangzhou-3",
|
1776
1776
|
"member": "string",
|
1777
1777
|
"name": "SlaveZoneId",
|
1778
1778
|
"output_required": false,
|
@@ -1792,7 +1792,7 @@
|
|
1792
1792
|
{
|
1793
1793
|
"disabled": false,
|
1794
1794
|
"document": "备可用区名称",
|
1795
|
-
"example": "
|
1795
|
+
"example": "广州三区",
|
1796
1796
|
"member": "string",
|
1797
1797
|
"name": "SlaveZoneName",
|
1798
1798
|
"output_required": false,
|
@@ -1802,7 +1802,7 @@
|
|
1802
1802
|
{
|
1803
1803
|
"disabled": false,
|
1804
1804
|
"document": "网络 id",
|
1805
|
-
"example": "network-
|
1805
|
+
"example": "network-1obc76ux",
|
1806
1806
|
"member": "string",
|
1807
1807
|
"name": "NetworkId",
|
1808
1808
|
"output_required": false,
|
@@ -4246,7 +4246,7 @@
|
|
4246
4246
|
{
|
4247
4247
|
"disabled": false,
|
4248
4248
|
"document": "路由id,或路由名称。\n不支持“未命名”",
|
4249
|
-
"example": "
|
4249
|
+
"example": "5836e46f-1653-4183-a76e-c361540d0831",
|
4250
4250
|
"member": "string",
|
4251
4251
|
"name": "Id",
|
4252
4252
|
"required": true,
|
@@ -4913,6 +4913,24 @@
|
|
4913
4913
|
"name": "AffinityConstraint",
|
4914
4914
|
"required": false,
|
4915
4915
|
"type": "string"
|
4916
|
+
},
|
4917
|
+
{
|
4918
|
+
"disabled": false,
|
4919
|
+
"document": "指定zone id列表",
|
4920
|
+
"example": "[100006,100007]",
|
4921
|
+
"member": "int64",
|
4922
|
+
"name": "ZoneIds",
|
4923
|
+
"required": false,
|
4924
|
+
"type": "list"
|
4925
|
+
},
|
4926
|
+
{
|
4927
|
+
"disabled": false,
|
4928
|
+
"document": "地域特殊标签,用于区分相同地域,不通的业务属性",
|
4929
|
+
"example": "ziyan_fit",
|
4930
|
+
"member": "string",
|
4931
|
+
"name": "EngineRegionTag",
|
4932
|
+
"required": false,
|
4933
|
+
"type": "string"
|
4916
4934
|
}
|
4917
4935
|
],
|
4918
4936
|
"type": "object"
|
@@ -12491,7 +12509,7 @@
|
|
12491
12509
|
{
|
12492
12510
|
"disabled": false,
|
12493
12511
|
"document": "备可用区",
|
12494
|
-
"example": "ap-guangzhou-
|
12512
|
+
"example": "ap-guangzhou-3",
|
12495
12513
|
"member": "string",
|
12496
12514
|
"name": "SlaveZoneId",
|
12497
12515
|
"required": false,
|
@@ -67,8 +67,8 @@
|
|
67
67
|
"CreateCloudNativeAPIGatewayRouteRateLimit": [
|
68
68
|
{
|
69
69
|
"document": "云原生网关创建限流插件(路由)",
|
70
|
-
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action:
|
71
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
70
|
+
"input": "POST / HTTP/1.1\nHost: tse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCloudNativeAPIGatewayRouteRateLimit\n<公共请求参数>\n\n{\n \"GatewayId\": \"gateway-9abf3b79\",\n \"Id\": \"5836e46f-1653-4183-a76e-c361540d0831\",\n \"LimitDetail\": {\n \"Enabled\": true,\n \"QpsThresholds\": [\n {\n \"Max\": 20,\n \"Unit\": \"second\"\n }\n ],\n \"LimitBy\": \"consumer\",\n \"Policy\": \"local\",\n \"RateLimitResponse\": {\n \"HttpStatus\": 200\n },\n \"ResponseType\": \"text\",\n \"HideClientHeaders\": true,\n \"LineUpTime\": 1,\n \"IsDelay\": true\n }\n}",
|
71
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"552cae66-953b-490c-b2d7-4c7c8d1cbd05\"\n }\n}",
|
72
72
|
"title": "云原生网关创建限流插件(路由)"
|
73
73
|
}
|
74
74
|
],
|