webvium / issues

The Project Webvium issues tracking repository.
https://mrepol742.github.io/webvium
1 stars 0 forks source link

SpeechRecognition unavailable #41

Open mrepol742 opened 1 year ago

mrepol742 commented 1 year ago

SpeechRecognition API is not yet supported so temporarily the Dev will come with speech recognition javascript interface that you could use.

let webvium = Webvium;

if (!(webvium === undefined)) {
    if (webvium.startSpeechRecognition()) {
        console.log("listening....");
    }
}

// this function was called by the Webvium API Provider and includes speech data
function onSpeechReceived(let result) {
    // your code goes here
}