tencentcloud-sdk-nodejs 4.0.576 → 4.0.577
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.
- package/CHANGELOG.md +304 -0
- package/SERVICE_CHANGELOG.md +387 -113
- package/package.json +1 -1
- package/products.md +25 -24
- package/src/common/sdk_version.ts +1 -1
- package/src/services/billing/v20180709/billing_models.ts +10 -4
- package/src/services/bma/v20210624/bma_client.ts +4 -2
- package/src/services/cdb/v20170320/cdb_models.ts +5 -0
- package/src/services/cfs/v20190719/cfs_models.ts +2 -2
- package/src/services/cls/v20201016/cls_client.ts +3 -2
- package/src/services/cls/v20201016/cls_models.ts +75 -53
- package/src/services/cvm/v20170312/cvm_models.ts +2 -2
- package/src/services/cwp/v20180228/cwp_client.ts +1 -1
- package/src/services/cwp/v20180228/cwp_models.ts +59 -59
- package/src/services/dasb/v20191018/dasb_client.ts +124 -6
- package/src/services/dasb/v20191018/dasb_models.ts +1218 -104
- package/src/services/dbbrain/v20210527/dbbrain_client.ts +13 -0
- package/src/services/dbbrain/v20210527/dbbrain_models.ts +140 -0
- package/src/services/dlc/v20210125/dlc_models.ts +10 -0
- package/src/services/dnspod/v20210323/dnspod_models.ts +6 -0
- package/src/services/ess/v20201111/ess_client.ts +6 -4
- package/src/services/ess/v20201111/ess_models.ts +4 -4
- package/src/services/essbasic/v20210526/essbasic_client.ts +3 -2
- package/src/services/index.ts +1 -0
- package/src/services/lcic/v20220817/lcic_models.ts +17 -0
- package/src/services/mongodb/v20190725/mongodb_client.ts +18 -6
- package/src/services/mongodb/v20190725/mongodb_models.ts +158 -106
- package/src/services/monitor/v20180724/monitor_models.ts +4 -4
- package/src/services/tiw/v20190919/tiw_client.ts +134 -35
- package/src/services/tiw/v20190919/tiw_models.ts +433 -41
- package/src/services/trtc/v20190722/trtc_models.ts +5 -5
- package/src/services/vrs/index.ts +5 -0
- package/src/services/vrs/v20200824/index.ts +6 -0
- package/src/services/vrs/v20200824/vrs_client.ts +99 -0
- package/src/services/vrs/v20200824/vrs_models.ts +313 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +9 -4
- package/tencentcloud/services/bma/v20210624/bma_client.d.ts +3 -1
- package/tencentcloud/services/bma/v20210624/bma_client.js +3 -1
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +4 -0
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +2 -2
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +63 -44
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +2 -2
- package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +1 -1
- package/tencentcloud/services/cwp/v20180228/cwp_client.js +1 -1
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +59 -59
- package/tencentcloud/services/dasb/v20191018/dasb_client.d.ts +37 -1
- package/tencentcloud/services/dasb/v20191018/dasb_client.js +54 -0
- package/tencentcloud/services/dasb/v20191018/dasb_models.d.ts +1005 -85
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.d.ts +5 -1
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.js +6 -0
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +116 -0
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +8 -0
- package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +5 -0
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +6 -4
- package/tencentcloud/services/ess/v20201111/ess_client.js +6 -4
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +4 -4
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +3 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +3 -2
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +14 -0
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +8 -4
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +9 -3
- package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +139 -92
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +4 -4
- package/tencentcloud/services/tiw/v20190919/tiw_client.d.ts +44 -12
- package/tencentcloud/services/tiw/v20190919/tiw_client.js +63 -15
- package/tencentcloud/services/tiw/v20190919/tiw_models.d.ts +378 -39
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +5 -5
- package/tencentcloud/services/vrs/index.d.ts +6 -0
- package/tencentcloud/services/vrs/index.js +7 -0
- package/tencentcloud/services/vrs/v20200824/index.d.ts +6 -0
- package/tencentcloud/services/vrs/v20200824/index.js +9 -0
- package/tencentcloud/services/vrs/v20200824/vrs_client.d.ts +40 -0
- package/tencentcloud/services/vrs/v20200824/vrs_client.js +69 -0
- package/tencentcloud/services/vrs/v20200824/vrs_models.d.ts +257 -0
- package/tencentcloud/services/vrs/v20200824/vrs_models.js +18 -0
- package/test/dasb.v20191018.test.js +90 -0
- package/test/dbbrain.v20210527.test.js +10 -0
- package/test/mongodb.v20190725.test.js +10 -0
- package/test/tiw.v20190919.test.js +88 -8
- package/test/vrs.v20200824.test.js +61 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
|
+
import { ClientConfig } from "../../../common/interface";
|
|
3
|
+
import { DescribeVRSTaskStatusResponse, CreateVRSTaskResponse, GetTrainingTextResponse, DescribeVRSTaskStatusRequest, DetectEnvAndSoundQualityRequest, DetectEnvAndSoundQualityResponse, GetTrainingTextRequest, CreateVRSTaskRequest } from "./vrs_models";
|
|
4
|
+
/**
|
|
5
|
+
* vrs client
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export declare class Client extends AbstractClient {
|
|
9
|
+
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* 本接口服务对提交音频进行声音复刻任务创建接口,异步返回复刻结果。
|
|
12
|
+
• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
|
|
13
|
+
• 签名方法参考 公共参数 中签名方法v3。
|
|
14
|
+
• 默认接口请求频率限制:30次/秒,
|
|
15
|
+
*/
|
|
16
|
+
CreateVRSTask(req: CreateVRSTaskRequest, cb?: (error: string, rep: CreateVRSTaskResponse) => void): Promise<CreateVRSTaskResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* 本接口用于获取声音复刻训练文本信息。
|
|
19
|
+
请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
|
|
20
|
+
• 签名方法参考 公共参数 中签名方法v3。
|
|
21
|
+
• 默认接口请求频率限制:20次/秒。
|
|
22
|
+
*/
|
|
23
|
+
GetTrainingText(req?: GetTrainingTextRequest, cb?: (error: string, rep: GetTrainingTextResponse) => void): Promise<GetTrainingTextResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* 本接口用于检测音频的环境和音频质量。
|
|
26
|
+
• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
|
|
27
|
+
• 签名方法参考 公共参数 中签名方法v3。
|
|
28
|
+
• 默认接口请求频率限制:20次/秒。
|
|
29
|
+
*/
|
|
30
|
+
DetectEnvAndSoundQuality(req: DetectEnvAndSoundQualityRequest, cb?: (error: string, rep: DetectEnvAndSoundQualityResponse) => void): Promise<DetectEnvAndSoundQualityResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* 在调用声音复刻创建任务请求接口后,有回调和轮询两种方式获取识别结果。
|
|
33
|
+
• 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 声音复刻结果回调 。
|
|
34
|
+
• 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。
|
|
35
|
+
• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
|
|
36
|
+
• 签名方法参考 公共参数 中签名方法v3。
|
|
37
|
+
• 默认接口请求频率限制:20次/秒,如您有提高请求频率限制的需求,请提工单进行咨询。
|
|
38
|
+
*/
|
|
39
|
+
DescribeVRSTaskStatus(req: DescribeVRSTaskStatusRequest, cb?: (error: string, rep: DescribeVRSTaskStatusResponse) => void): Promise<DescribeVRSTaskStatusResponse>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
|
15
|
+
* software distributed under the License is distributed on an
|
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
* KIND, either express or implied. See the License for the
|
|
18
|
+
* specific language governing permissions and limitations
|
|
19
|
+
* under the License.
|
|
20
|
+
*/
|
|
21
|
+
const abstract_client_1 = require("../../../common/abstract_client");
|
|
22
|
+
/**
|
|
23
|
+
* vrs client
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
class Client extends abstract_client_1.AbstractClient {
|
|
27
|
+
constructor(clientConfig) {
|
|
28
|
+
super("vrs.tencentcloudapi.com", "2020-08-24", clientConfig);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 本接口服务对提交音频进行声音复刻任务创建接口,异步返回复刻结果。
|
|
32
|
+
• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
|
|
33
|
+
• 签名方法参考 公共参数 中签名方法v3。
|
|
34
|
+
• 默认接口请求频率限制:30次/秒,
|
|
35
|
+
*/
|
|
36
|
+
async CreateVRSTask(req, cb) {
|
|
37
|
+
return this.request("CreateVRSTask", req, cb);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 本接口用于获取声音复刻训练文本信息。
|
|
41
|
+
请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
|
|
42
|
+
• 签名方法参考 公共参数 中签名方法v3。
|
|
43
|
+
• 默认接口请求频率限制:20次/秒。
|
|
44
|
+
*/
|
|
45
|
+
async GetTrainingText(req, cb) {
|
|
46
|
+
return this.request("GetTrainingText", req, cb);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* 本接口用于检测音频的环境和音频质量。
|
|
50
|
+
• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
|
|
51
|
+
• 签名方法参考 公共参数 中签名方法v3。
|
|
52
|
+
• 默认接口请求频率限制:20次/秒。
|
|
53
|
+
*/
|
|
54
|
+
async DetectEnvAndSoundQuality(req, cb) {
|
|
55
|
+
return this.request("DetectEnvAndSoundQuality", req, cb);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* 在调用声音复刻创建任务请求接口后,有回调和轮询两种方式获取识别结果。
|
|
59
|
+
• 当采用回调方式时,识别完成后会将结果通过 POST 请求的形式通知到用户在请求时填写的回调 URL,具体请参见 声音复刻结果回调 。
|
|
60
|
+
• 当采用轮询方式时,需要主动提交任务ID来轮询识别结果,共有任务成功、等待、执行中和失败四种结果,具体信息请参见下文说明。
|
|
61
|
+
• 请求方法为 HTTP POST , Content-Type为"application/json; charset=utf-8"
|
|
62
|
+
• 签名方法参考 公共参数 中签名方法v3。
|
|
63
|
+
• 默认接口请求频率限制:20次/秒,如您有提高请求频率限制的需求,请提工单进行咨询。
|
|
64
|
+
*/
|
|
65
|
+
async DescribeVRSTaskStatus(req, cb) {
|
|
66
|
+
return this.request("DescribeVRSTaskStatus", req, cb);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.Client = Client;
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DescribeVRSTaskStatus返回参数结构体
|
|
3
|
+
*/
|
|
4
|
+
export interface DescribeVRSTaskStatusResponse {
|
|
5
|
+
/**
|
|
6
|
+
* 声音复刻任务结果
|
|
7
|
+
*/
|
|
8
|
+
Data?: DescribeVRSTaskStatusRespData;
|
|
9
|
+
/**
|
|
10
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
11
|
+
*/
|
|
12
|
+
RequestId?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* CreateVRSTask返回参数结构体
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateVRSTaskResponse {
|
|
18
|
+
/**
|
|
19
|
+
* 创建任务结果
|
|
20
|
+
*/
|
|
21
|
+
Data?: CreateVRSTaskRespData;
|
|
22
|
+
/**
|
|
23
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
24
|
+
*/
|
|
25
|
+
RequestId?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 声音复刻任务创建响应
|
|
29
|
+
*/
|
|
30
|
+
export interface CreateVRSTaskRespData {
|
|
31
|
+
/**
|
|
32
|
+
* 任务ID
|
|
33
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
34
|
+
*/
|
|
35
|
+
TaskId?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 环境检测和音频检测响应
|
|
39
|
+
*/
|
|
40
|
+
export interface DetectionEnvAndSoundQualityRespData {
|
|
41
|
+
/**
|
|
42
|
+
* 音频ID (用于创建任务接口AudioIds),环境检测该值为空,仅在音质检测情况下返回
|
|
43
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
44
|
+
*/
|
|
45
|
+
AudioId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* 检测code
|
|
48
|
+
|
|
49
|
+
0 表示当前语音通过
|
|
50
|
+
-1 表示检测失败,需要重试
|
|
51
|
+
-2 表示语音检测不通过,提示用户再重新录制一下(通常漏读,错读,或多读)
|
|
52
|
+
-3 表示语音中噪声较大,不通过
|
|
53
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
54
|
+
*/
|
|
55
|
+
DetectionCode?: number;
|
|
56
|
+
/**
|
|
57
|
+
* 检测提示信息
|
|
58
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
59
|
+
*/
|
|
60
|
+
DetectionMsg?: string;
|
|
61
|
+
/**
|
|
62
|
+
* 检测提示信息
|
|
63
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
64
|
+
*/
|
|
65
|
+
DetectionTip?: Array<Words>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* GetTrainingText返回参数结构体
|
|
69
|
+
*/
|
|
70
|
+
export interface GetTrainingTextResponse {
|
|
71
|
+
/**
|
|
72
|
+
* 文本列表
|
|
73
|
+
*/
|
|
74
|
+
Data?: TrainingTexts;
|
|
75
|
+
/**
|
|
76
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
77
|
+
*/
|
|
78
|
+
RequestId?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* DescribeVRSTaskStatus请求参数结构体
|
|
82
|
+
*/
|
|
83
|
+
export interface DescribeVRSTaskStatusRequest {
|
|
84
|
+
/**
|
|
85
|
+
* 任务ID
|
|
86
|
+
*/
|
|
87
|
+
TaskId: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* DetectEnvAndSoundQuality请求参数结构体
|
|
91
|
+
*/
|
|
92
|
+
export interface DetectEnvAndSoundQualityRequest {
|
|
93
|
+
/**
|
|
94
|
+
* 标注文本信息 ID
|
|
95
|
+
*/
|
|
96
|
+
TextId: string;
|
|
97
|
+
/**
|
|
98
|
+
* 语音数据 要使用base64编码(采用python语言时注意读取文件应该为string而不是byte,以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。
|
|
99
|
+
*/
|
|
100
|
+
AudioData: string;
|
|
101
|
+
/**
|
|
102
|
+
* 音频格式,音频类型(wav,mp3,aac,m4a)
|
|
103
|
+
*/
|
|
104
|
+
Codec: string;
|
|
105
|
+
/**
|
|
106
|
+
* 1:环境检测 2:音质检测
|
|
107
|
+
*/
|
|
108
|
+
TypeId: number;
|
|
109
|
+
/**
|
|
110
|
+
* 音频采样率:
|
|
111
|
+
|
|
112
|
+
16000:16k(默认)
|
|
113
|
+
*/
|
|
114
|
+
SampleRate?: number;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* 任务结果
|
|
118
|
+
*/
|
|
119
|
+
export interface DescribeVRSTaskStatusRespData {
|
|
120
|
+
/**
|
|
121
|
+
* 任务ID
|
|
122
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
123
|
+
*/
|
|
124
|
+
TaskId?: string;
|
|
125
|
+
/**
|
|
126
|
+
* 任务状态码,0:任务等待,1:任务执行中,2:任务成功,3:任务失败。
|
|
127
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
128
|
+
*/
|
|
129
|
+
Status?: number;
|
|
130
|
+
/**
|
|
131
|
+
* 任务状态,waiting:任务等待,doing:任务执行中,success:任务成功,failed:任务失败。
|
|
132
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
133
|
+
*/
|
|
134
|
+
StatusStr?: string;
|
|
135
|
+
/**
|
|
136
|
+
* 音色id
|
|
137
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
138
|
+
*/
|
|
139
|
+
VoiceType?: number;
|
|
140
|
+
/**
|
|
141
|
+
* 失败原因说明。
|
|
142
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
143
|
+
*/
|
|
144
|
+
ErrorMsg?: string;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* 训练文本
|
|
148
|
+
*/
|
|
149
|
+
export interface TrainingText {
|
|
150
|
+
/**
|
|
151
|
+
* 文本ID
|
|
152
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
153
|
+
*/
|
|
154
|
+
TextId?: string;
|
|
155
|
+
/**
|
|
156
|
+
* 文本
|
|
157
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
158
|
+
*/
|
|
159
|
+
Text?: string;
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Words
|
|
163
|
+
*/
|
|
164
|
+
export interface Words {
|
|
165
|
+
/**
|
|
166
|
+
* 准确度
|
|
167
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
168
|
+
*/
|
|
169
|
+
PronAccuracy?: number;
|
|
170
|
+
/**
|
|
171
|
+
* 流畅度
|
|
172
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
173
|
+
*/
|
|
174
|
+
PronFluency?: number;
|
|
175
|
+
/**
|
|
176
|
+
* tag: 0: match, 1: insert, 2: delete, 3: replace, 4: oov, 5: unknown
|
|
177
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
178
|
+
*/
|
|
179
|
+
Tag?: number;
|
|
180
|
+
/**
|
|
181
|
+
* 字
|
|
182
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
183
|
+
*/
|
|
184
|
+
Word?: string;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* 训练文本列表
|
|
188
|
+
*/
|
|
189
|
+
export interface TrainingTexts {
|
|
190
|
+
/**
|
|
191
|
+
* 训练文本列表
|
|
192
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
193
|
+
*/
|
|
194
|
+
TrainingTextList?: Array<TrainingText>;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* DetectEnvAndSoundQuality返回参数结构体
|
|
198
|
+
*/
|
|
199
|
+
export interface DetectEnvAndSoundQualityResponse {
|
|
200
|
+
/**
|
|
201
|
+
* 检测结果
|
|
202
|
+
*/
|
|
203
|
+
Data?: DetectionEnvAndSoundQualityRespData;
|
|
204
|
+
/**
|
|
205
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
206
|
+
*/
|
|
207
|
+
RequestId?: string;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* GetTrainingText请求参数结构体
|
|
211
|
+
*/
|
|
212
|
+
export declare type GetTrainingTextRequest = null;
|
|
213
|
+
/**
|
|
214
|
+
* CreateVRSTask请求参数结构体
|
|
215
|
+
*/
|
|
216
|
+
export interface CreateVRSTaskRequest {
|
|
217
|
+
/**
|
|
218
|
+
* 唯一请求 ID
|
|
219
|
+
*/
|
|
220
|
+
SessionId: string;
|
|
221
|
+
/**
|
|
222
|
+
* 音色名称
|
|
223
|
+
*/
|
|
224
|
+
VoiceName: string;
|
|
225
|
+
/**
|
|
226
|
+
* 音频采样率:
|
|
227
|
+
|
|
228
|
+
16000:16k(默认)
|
|
229
|
+
*/
|
|
230
|
+
SampleRate: number;
|
|
231
|
+
/**
|
|
232
|
+
* 音色性别:
|
|
233
|
+
|
|
234
|
+
1-male
|
|
235
|
+
|
|
236
|
+
2-female
|
|
237
|
+
*/
|
|
238
|
+
VoiceGender: number;
|
|
239
|
+
/**
|
|
240
|
+
* 语言类型:
|
|
241
|
+
|
|
242
|
+
1-中文(默认)
|
|
243
|
+
*/
|
|
244
|
+
VoiceLanguage: number;
|
|
245
|
+
/**
|
|
246
|
+
* 音频格式,音频类型(wav,mp3,aac,m4a)
|
|
247
|
+
*/
|
|
248
|
+
Codec: string;
|
|
249
|
+
/**
|
|
250
|
+
* 音频ID集合
|
|
251
|
+
*/
|
|
252
|
+
AudioIdList: Array<string>;
|
|
253
|
+
/**
|
|
254
|
+
* 回调 URL,用户自行搭建的用于接收识别结果的服务URL。如果用户使用轮询方式获取识别结果,则无需提交该参数。
|
|
255
|
+
*/
|
|
256
|
+
CallbackUrl?: string;
|
|
257
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -38,6 +38,16 @@ it("dasb.v20191018.DescribeDeviceGroupMembers", async function () {
|
|
|
38
38
|
}
|
|
39
39
|
})
|
|
40
40
|
|
|
41
|
+
it("dasb.v20191018.DescribeLoginEvent", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.DescribeLoginEvent({})
|
|
44
|
+
expect(data).to.be.ok
|
|
45
|
+
} catch(error) {
|
|
46
|
+
expect(error.requestId).to.be.ok
|
|
47
|
+
expect(error.code).to.be.ok
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
41
51
|
it("dasb.v20191018.CreateDeviceGroup", async function () {
|
|
42
52
|
try {
|
|
43
53
|
const data = await client.CreateDeviceGroup({})
|
|
@@ -138,6 +148,26 @@ it("dasb.v20191018.BindDeviceAccountPassword", async function () {
|
|
|
138
148
|
}
|
|
139
149
|
})
|
|
140
150
|
|
|
151
|
+
it("dasb.v20191018.SearchFile", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.SearchFile({})
|
|
154
|
+
expect(data).to.be.ok
|
|
155
|
+
} catch(error) {
|
|
156
|
+
expect(error.requestId).to.be.ok
|
|
157
|
+
expect(error.code).to.be.ok
|
|
158
|
+
}
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
it("dasb.v20191018.SearchSession", async function () {
|
|
162
|
+
try {
|
|
163
|
+
const data = await client.SearchSession({})
|
|
164
|
+
expect(data).to.be.ok
|
|
165
|
+
} catch(error) {
|
|
166
|
+
expect(error.requestId).to.be.ok
|
|
167
|
+
expect(error.code).to.be.ok
|
|
168
|
+
}
|
|
169
|
+
})
|
|
170
|
+
|
|
141
171
|
it("dasb.v20191018.DeleteAcls", async function () {
|
|
142
172
|
try {
|
|
143
173
|
const data = await client.DeleteAcls({})
|
|
@@ -198,6 +228,16 @@ it("dasb.v20191018.ResetDeviceAccountPassword", async function () {
|
|
|
198
228
|
}
|
|
199
229
|
})
|
|
200
230
|
|
|
231
|
+
it("dasb.v20191018.SearchCommandBySid", async function () {
|
|
232
|
+
try {
|
|
233
|
+
const data = await client.SearchCommandBySid({})
|
|
234
|
+
expect(data).to.be.ok
|
|
235
|
+
} catch(error) {
|
|
236
|
+
expect(error.requestId).to.be.ok
|
|
237
|
+
expect(error.code).to.be.ok
|
|
238
|
+
}
|
|
239
|
+
})
|
|
240
|
+
|
|
201
241
|
it("dasb.v20191018.DeleteDeviceGroups", async function () {
|
|
202
242
|
try {
|
|
203
243
|
const data = await client.DeleteDeviceGroups({})
|
|
@@ -258,6 +298,16 @@ it("dasb.v20191018.CreateDeviceAccount", async function () {
|
|
|
258
298
|
}
|
|
259
299
|
})
|
|
260
300
|
|
|
301
|
+
it("dasb.v20191018.SearchAuditLog", async function () {
|
|
302
|
+
try {
|
|
303
|
+
const data = await client.SearchAuditLog({})
|
|
304
|
+
expect(data).to.be.ok
|
|
305
|
+
} catch(error) {
|
|
306
|
+
expect(error.requestId).to.be.ok
|
|
307
|
+
expect(error.code).to.be.ok
|
|
308
|
+
}
|
|
309
|
+
})
|
|
310
|
+
|
|
261
311
|
it("dasb.v20191018.DeleteDeviceGroupMembers", async function () {
|
|
262
312
|
try {
|
|
263
313
|
const data = await client.DeleteDeviceGroupMembers({})
|
|
@@ -268,6 +318,16 @@ it("dasb.v20191018.DeleteDeviceGroupMembers", async function () {
|
|
|
268
318
|
}
|
|
269
319
|
})
|
|
270
320
|
|
|
321
|
+
it("dasb.v20191018.DescribeOperationEvent", async function () {
|
|
322
|
+
try {
|
|
323
|
+
const data = await client.DescribeOperationEvent({})
|
|
324
|
+
expect(data).to.be.ok
|
|
325
|
+
} catch(error) {
|
|
326
|
+
expect(error.requestId).to.be.ok
|
|
327
|
+
expect(error.code).to.be.ok
|
|
328
|
+
}
|
|
329
|
+
})
|
|
330
|
+
|
|
271
331
|
it("dasb.v20191018.DeleteDeviceAccounts", async function () {
|
|
272
332
|
try {
|
|
273
333
|
const data = await client.DeleteDeviceAccounts({})
|
|
@@ -378,6 +438,16 @@ it("dasb.v20191018.DescribeUserGroupMembers", async function () {
|
|
|
378
438
|
}
|
|
379
439
|
})
|
|
380
440
|
|
|
441
|
+
it("dasb.v20191018.SearchFileBySid", async function () {
|
|
442
|
+
try {
|
|
443
|
+
const data = await client.SearchFileBySid({})
|
|
444
|
+
expect(data).to.be.ok
|
|
445
|
+
} catch(error) {
|
|
446
|
+
expect(error.requestId).to.be.ok
|
|
447
|
+
expect(error.code).to.be.ok
|
|
448
|
+
}
|
|
449
|
+
})
|
|
450
|
+
|
|
381
451
|
it("dasb.v20191018.ImportExternalDevice", async function () {
|
|
382
452
|
try {
|
|
383
453
|
const data = await client.ImportExternalDevice({})
|
|
@@ -438,4 +508,24 @@ it("dasb.v20191018.BindDeviceAccountPrivateKey", async function () {
|
|
|
438
508
|
}
|
|
439
509
|
})
|
|
440
510
|
|
|
511
|
+
it("dasb.v20191018.SearchCommand", async function () {
|
|
512
|
+
try {
|
|
513
|
+
const data = await client.SearchCommand({})
|
|
514
|
+
expect(data).to.be.ok
|
|
515
|
+
} catch(error) {
|
|
516
|
+
expect(error.requestId).to.be.ok
|
|
517
|
+
expect(error.code).to.be.ok
|
|
518
|
+
}
|
|
519
|
+
})
|
|
520
|
+
|
|
521
|
+
it("dasb.v20191018.SearchSessionCommand", async function () {
|
|
522
|
+
try {
|
|
523
|
+
const data = await client.SearchSessionCommand({})
|
|
524
|
+
expect(data).to.be.ok
|
|
525
|
+
} catch(error) {
|
|
526
|
+
expect(error.requestId).to.be.ok
|
|
527
|
+
expect(error.code).to.be.ok
|
|
528
|
+
}
|
|
529
|
+
})
|
|
530
|
+
|
|
441
531
|
})
|
|
@@ -288,6 +288,16 @@ it("dbbrain.v20210527.DescribeRedisTopKeyPrefixList", async function () {
|
|
|
288
288
|
}
|
|
289
289
|
})
|
|
290
290
|
|
|
291
|
+
it("dbbrain.v20210527.DescribeSlowLogs", async function () {
|
|
292
|
+
try {
|
|
293
|
+
const data = await client.DescribeSlowLogs({})
|
|
294
|
+
expect(data).to.be.ok
|
|
295
|
+
} catch(error) {
|
|
296
|
+
expect(error.requestId).to.be.ok
|
|
297
|
+
expect(error.code).to.be.ok
|
|
298
|
+
}
|
|
299
|
+
})
|
|
300
|
+
|
|
291
301
|
it("dbbrain.v20210527.DescribeDBDiagEvent", async function () {
|
|
292
302
|
try {
|
|
293
303
|
const data = await client.DescribeDBDiagEvent({})
|
|
@@ -358,6 +358,16 @@ it("mongodb.v20190725.InquirePriceRenewDBInstances", async function () {
|
|
|
358
358
|
}
|
|
359
359
|
})
|
|
360
360
|
|
|
361
|
+
it("mongodb.v20190725.DeleteAccountUser", async function () {
|
|
362
|
+
try {
|
|
363
|
+
const data = await client.DeleteAccountUser({})
|
|
364
|
+
expect(data).to.be.ok
|
|
365
|
+
} catch(error) {
|
|
366
|
+
expect(error.requestId).to.be.ok
|
|
367
|
+
expect(error.code).to.be.ok
|
|
368
|
+
}
|
|
369
|
+
})
|
|
370
|
+
|
|
361
371
|
it("mongodb.v20190725.ModifyDBInstanceSecurityGroup", async function () {
|
|
362
372
|
try {
|
|
363
373
|
const data = await client.ModifyDBInstanceSecurityGroup({})
|