trtc-sdk-v5 5.2.0 → 5.2.1-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/index.d.ts CHANGED
@@ -102,6 +102,9 @@
102
102
  audioTrack?: MediaStreamTrack;
103
103
  captureVolume?: number;
104
104
  earMonitorVolume?: number;
105
+ echoCancellation?: boolean;
106
+ autoGainControl?: boolean;
107
+ noiseSuppression?: boolean;
105
108
  };
106
109
  }
107
110
  declare interface RemoteAudioConfig {
@@ -971,6 +974,7 @@
971
974
  * @param {object} [config.option] - 本地音频选项
972
975
  * @param {string} [config.option.microphoneId]- 指定使用哪个麦克风
973
976
  * @param {MediaStreamTrack} [config.option.audioTrack] - 自定义采集的 audioTrack。{@tutorial 20-advanced-customized-capture-rendering}。
977
+ * @param {number} [config.option.captureVolume] - 设置采集音量,默认值 100,设置小于 100 可以降低采集音量,设置大于 100 可以放大采集音量,注意有爆音风险。
974
978
  * @param {number} [config.option.earMonitorVolume] - 设置耳返音量,取值[0, 100],本地麦克风默认静音播放。
975
979
  * @param {string} [config.option.profile] - 音频编码配置, 默认{@link module:TYPE.AUDIO_PROFILE_STANDARD TRTC.TYPE.AUDIO_PROFILE_STANDARD}
976
980
  * @throws
@@ -1004,6 +1008,8 @@
1004
1008
  * @param {object} [config.option] - 本地音频配置
1005
1009
  * @param {string} [config.option.microphoneId] - 指定使用哪个麦克风,用来切换麦克风。
1006
1010
  * @param {MediaStreamTrack} [config.option.audioTrack] - 自定义采集的 audioTrack。 {@tutorial 20-advanced-customized-capture-rendering}。
1011
+ * @param {number} [config.option.captureVolume] - 设置采集音量,默认值 100,设置小于 100 可以降低采集音量,设置大于 100 可以放大采集音量,注意有爆音风险。
1012
+ * @param {number} [config.option.earMonitorVolume] - 设置耳返音量,取值[0, 100],本地麦克风默认静音播放。
1007
1013
  * @throws
1008
1014
  * - {@link module:ERROR_CODE.INVALID_PARAMETER INVALID_PARAMETER}
1009
1015
  * - {@link module:ERROR_CODE.DEVICE_ERROR DEVICE_ERROR}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trtc-sdk-v5",
3
- "version": "5.2.0",
3
+ "version": "5.2.1-beta.1",
4
4
  "description": "Tencent Cloud RTC SDK for Web",
5
5
  "main": "trtc.js",
6
6
  "types": "index.d.ts",