SpeechRecognition: continuous property
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Thecontinuous property of theSpeechRecognition interface controls whether continuous results arereturned for each recognition, or only a single result.
It defaults to single results (false.)
In this article
Value
A boolean value representing the currentSpeechRecognition'scontinuous status.true means continuous, andfalse means notcontinuous (single result each time.)
Examples
This code is excerpted from ourSpeech color changer example.
js
const recognition = new SpeechRecognition();recognition.continuous = false;recognition.lang = "en-US";recognition.interimResults = false;recognition.maxAlternatives = 1;// …Specifications
| Specification |
|---|
| Web Speech API> # dom-speechrecognition-continuous> |