过时
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.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
完整支持
不支持
兼容性未知
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
RTCOfferAnswerOptions
voiceActivityDetection
MediaDevices.getUserMedia()
Navigator.mediaDevices
RTCCertificate
RTCDTMFSender
RTCDTMFToneChangeEvent
RTCDataChannel
RTCDataChannelEvent
RTCDtlsTransport
RTCErrorEvent
RTCIceCandidate
RTCIceTransport
RTCPeerConnection
RTCPeerConnectionIceErrorEvent
RTCPeerConnectionIceEvent
RTCRtpReceiver
RTCRtpSender
RTCRtpTransceiver
RTCSctpTransport
RTCSessionDescription
RTCStatsEvent
RTCStatsReport
RTCTrackEvent