过时
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

voiceActivityDetection 特性为 RTCOfferAnswerOptions dictionary is used to specify whether or not to use automatic voice detection for the audio on an RTCPeerConnection . The default value, true , indicates that voice detection should be used and that if possible, the 用户代理 should automatically disable or mute outgoing audio when the audio source is not sensing a human voice.

句法

var options = {
  voiceActivityDetection: trueOrFalse
};
					

A Boolean value indicating whether or not the connection should use voice detection once running. The default value, true , indicates that the 用户代理 should monitor the audio coming from the microphone or other audio source and automatically cease transmitting data or mute when the user isn't speaking into the microphone,

false indicates that the audio should continue to be transmitted regardless of whether or not speech is detected.

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
voiceActivityDetection 弃用 非标 Chrome 50 Edge ≤79 Firefox No IE No Opera ? Safari ? WebView Android 50 Chrome Android 50 Firefox Android No Opera Android ? Safari iOS ? Samsung Internet Android 5.0

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

非标。预期跨浏览器支持较差。

非标。预期跨浏览器支持较差。

弃用。不要用于新网站。

弃用。不要用于新网站。

元数据

  • 最后修改: