microsoft / HoloJS

Provides a framework for creating holographic apps using JavaScript and WebGL.
MIT License
1.19k stars 113 forks source link

It There a way to check voice without specifying commands? #182

Closed nosy-b closed 5 years ago

nosy-b commented 6 years ago

Hello! I'm using with success the voice commands but I wanted to use speech recognition without having to specify commands. Is it possible to easily modify HoloJS for that?

Thanks!

Almost-Done commented 5 years ago

Like an unrestricted speech recognizer?

nosy-b commented 5 years ago

Yes, without having to set a dictionary (limited array of words)

Almost-Done commented 5 years ago

That should work, with the speech recognizer in dictation mode. I'll add it to develop/next as an option to a new SpeechRecognizer API.

Almost-Done commented 5 years ago

This is fixed in develop/next. Use it like this:

speechRecognizer = new SpeechRecognizer();
speechRecognizer.onresult = function (result) {
    console.log(result.text);
}
speechRecognizer.start();

See the https://github.com/Microsoft/HoloJS/wiki/SpeechRecognizer for more details.