tencentcloud-sdk-nodejs-trtc 4.1.122 → 4.1.124
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/README.md
CHANGED
|
@@ -62,6 +62,8 @@ npm install tencentcloud-sdk-slim-nodejs --save
|
|
|
62
62
|
|
|
63
63
|
1. clone 代码到本地:
|
|
64
64
|
```
|
|
65
|
+
git clone https://cnb.cool/tencent/cloud/api/sdk/tencentcloud-sdk-nodejs
|
|
66
|
+
# 或者
|
|
65
67
|
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
66
68
|
# 或者
|
|
67
69
|
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
@@ -135,7 +137,7 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
135
137
|
// ...
|
|
136
138
|
```
|
|
137
139
|
|
|
138
|
-
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](
|
|
140
|
+
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](src/common/interface.ts)。
|
|
139
141
|
|
|
140
142
|
## Common Client
|
|
141
143
|
|
|
@@ -143,17 +145,17 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
143
145
|
|
|
144
146
|
**注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
|
|
145
147
|
|
|
146
|
-
详细使用请参阅示例:[使用 Common Client 进行调用](
|
|
148
|
+
详细使用请参阅示例:[使用 Common Client 进行调用](examples/common)
|
|
147
149
|
|
|
148
150
|
## 更多示例
|
|
149
151
|
|
|
150
|
-
请参考 [examples](
|
|
152
|
+
请参考 [examples](examples) 目录。
|
|
151
153
|
|
|
152
154
|
# 相关配置
|
|
153
155
|
|
|
154
156
|
## 代理
|
|
155
157
|
|
|
156
|
-
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](
|
|
158
|
+
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
|
157
159
|
|
|
158
160
|
# 凭证管理
|
|
159
161
|
|
package/package.json
CHANGED
|
@@ -1050,6 +1050,10 @@ export interface TranslationConfig {
|
|
|
1050
1050
|
* 语音同传配置,开启同传时,需要传递
|
|
1051
1051
|
*/
|
|
1052
1052
|
TTSConfig?: TTSConfig;
|
|
1053
|
+
/**
|
|
1054
|
+
* 翻译术语集合
|
|
1055
|
+
*/
|
|
1056
|
+
Terminology?: Array<Terminology>;
|
|
1053
1057
|
}
|
|
1054
1058
|
/**
|
|
1055
1059
|
* Mcu转推录制,腾讯云点播相关参数。
|
|
@@ -3882,6 +3886,19 @@ export interface ModifyCloudModerationResponse {
|
|
|
3882
3886
|
*/
|
|
3883
3887
|
RequestId?: string;
|
|
3884
3888
|
}
|
|
3889
|
+
/**
|
|
3890
|
+
* 翻译术语
|
|
3891
|
+
*/
|
|
3892
|
+
export interface Terminology {
|
|
3893
|
+
/**
|
|
3894
|
+
* 源术语
|
|
3895
|
+
*/
|
|
3896
|
+
Source: string;
|
|
3897
|
+
/**
|
|
3898
|
+
* 目标术语翻译结果
|
|
3899
|
+
*/
|
|
3900
|
+
Target: string;
|
|
3901
|
+
}
|
|
3885
3902
|
/**
|
|
3886
3903
|
* TRTC数据大盘/实时监控 API接口数据出参
|
|
3887
3904
|
*/
|