trtc-electron-sdk 10.1.8-beta.0 → 10.2.0-beta.1
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/liteav/trtc.d.ts +2 -3
- package/liteav/trtc.js +3 -4
- package/liteav/trtc_define.d.ts +1 -3
- package/liteav/trtc_define.js +2 -4
- package/package.json +1 -1
package/liteav/trtc.d.ts
CHANGED
|
@@ -1164,10 +1164,9 @@ declare class TRTCCloud extends EventEmitter {
|
|
|
1164
1164
|
* 我们在 Demo 中有一个音量大小的提示条,就是基于这个接口实现的。
|
|
1165
1165
|
* 如希望打开此功能,请在 startLocalAudio() 之前调用。
|
|
1166
1166
|
*
|
|
1167
|
-
* @param {Number} interval
|
|
1168
|
-
* @param {Boolean} enableVad - true: 打开人声检测;false: 关闭人声检测。目前仅 windows 支持。
|
|
1167
|
+
* @param {Number} interval - 设置 onUserVoiceVolume 回调的触发间隔,单位为ms,最小间隔为100ms,如果小于等于0则会关闭回调,建议设置为300ms
|
|
1169
1168
|
*/
|
|
1170
|
-
enableAudioVolumeEvaluation(interval: number
|
|
1169
|
+
enableAudioVolumeEvaluation(interval: number): void;
|
|
1171
1170
|
/**
|
|
1172
1171
|
* 4.12 开始录音
|
|
1173
1172
|
*
|
package/liteav/trtc.js
CHANGED
|
@@ -2150,11 +2150,10 @@ class TRTCCloud extends events_1.EventEmitter {
|
|
|
2150
2150
|
* 我们在 Demo 中有一个音量大小的提示条,就是基于这个接口实现的。
|
|
2151
2151
|
* 如希望打开此功能,请在 startLocalAudio() 之前调用。
|
|
2152
2152
|
*
|
|
2153
|
-
* @param {Number} interval
|
|
2154
|
-
* @param {Boolean} enableVad - true: 打开人声检测;false: 关闭人声检测。目前仅 windows 支持。
|
|
2153
|
+
* @param {Number} interval - 设置 onUserVoiceVolume 回调的触发间隔,单位为ms,最小间隔为100ms,如果小于等于0则会关闭回调,建议设置为300ms
|
|
2155
2154
|
*/
|
|
2156
|
-
enableAudioVolumeEvaluation(interval
|
|
2157
|
-
this.rtcCloud.enableAudioVolumeEvaluation(interval
|
|
2155
|
+
enableAudioVolumeEvaluation(interval) {
|
|
2156
|
+
this.rtcCloud.enableAudioVolumeEvaluation(interval);
|
|
2158
2157
|
}
|
|
2159
2158
|
/**
|
|
2160
2159
|
* 4.12 开始录音
|
package/liteav/trtc_define.d.ts
CHANGED
|
@@ -377,14 +377,12 @@ export declare class TRTCQualityInfo {
|
|
|
377
377
|
*
|
|
378
378
|
* @param {String} userId - 说话者的 userId,字符编码格式是 UTF-8
|
|
379
379
|
* @param {Number} volume - 说话者的音量, 取值范围0 - 100
|
|
380
|
-
* @param {Number} vad - 是否检测到人声。0:非人声 1:人声 -1: 不支持检测 (mac 平台暂不支持)
|
|
381
380
|
*
|
|
382
381
|
*/
|
|
383
382
|
export declare class TRTCVolumeInfo {
|
|
384
383
|
userId: string;
|
|
385
384
|
volume: number;
|
|
386
|
-
|
|
387
|
-
constructor(userId?: string, volume?: number, vad?: number);
|
|
385
|
+
constructor(userId?: string, volume?: number);
|
|
388
386
|
}
|
|
389
387
|
/**
|
|
390
388
|
* 5.7 测速参数
|
package/liteav/trtc_define.js
CHANGED
|
@@ -257,7 +257,7 @@ const TRTCVideoPixelFormat_HACK_JSDOC = {
|
|
|
257
257
|
// TRTCVideoPixelFormat_Texture_2D: 2,
|
|
258
258
|
/** BGRA32 */
|
|
259
259
|
TRTCVideoPixelFormat_BGRA32: 3,
|
|
260
|
-
/**
|
|
260
|
+
/** RGBA */
|
|
261
261
|
TRTCVideoPixelFormat_RGBA32: 5,
|
|
262
262
|
TRTCVideoPixelFormat_H264: 6,
|
|
263
263
|
};
|
|
@@ -882,14 +882,12 @@ exports.TRTCQualityInfo = TRTCQualityInfo;
|
|
|
882
882
|
*
|
|
883
883
|
* @param {String} userId - 说话者的 userId,字符编码格式是 UTF-8
|
|
884
884
|
* @param {Number} volume - 说话者的音量, 取值范围0 - 100
|
|
885
|
-
* @param {Number} vad - 是否检测到人声。0:非人声 1:人声 -1: 不支持检测 (mac 平台暂不支持)
|
|
886
885
|
*
|
|
887
886
|
*/
|
|
888
887
|
class TRTCVolumeInfo {
|
|
889
|
-
constructor(userId = '', volume = 0
|
|
888
|
+
constructor(userId = '', volume = 0) {
|
|
890
889
|
this.userId = userId;
|
|
891
890
|
this.volume = volume;
|
|
892
|
-
this.vad = vad;
|
|
893
891
|
}
|
|
894
892
|
}
|
|
895
893
|
exports.TRTCVolumeInfo = TRTCVolumeInfo;
|