SpeechRecognition: audioend event
Experimental
This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The audioend
event of the Web Speech API is fired when the user agent has finished capturing audio for speech recognition.
Bubbles | No |
---|---|
Cancelable | No |
Interface | Event |
Event handler | onaudioend |
Examples
You can use the audioend
event in an addEventListener
method:
var recognition = new webkitSpeechRecognition() || new SpeechRecognition();
recognition.addEventListener('audioend', function() {
console.log('Audio capturing ended');
});
Or use the onaudioend event handler property:
recognition.onaudioend = function() {
console.log('Audio capturing ended');
}
Specifications
Specification | Status | Comment |
---|---|---|
Web Speech API The definition of 'speech recognition events' in that specification. |
Draft |
Browser compatibility
BCD tables only load in the browser
See also
- Web Speech API
onaudioend
event handler