Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc link + Cordova or Phonegap #45

Closed
kiralikbeyin opened this issue Oct 3, 2017 · 2 comments
Closed

Doc link + Cordova or Phonegap #45

kiralikbeyin opened this issue Oct 3, 2017 · 2 comments

Comments

@kiralikbeyin
Copy link

Doc link in wiki doesnt work.

Can i use this lib in a cordova/phonegap app?

@sdkcarlos
Copy link
Owner

Hi, the docs of the lib can be found in this website. Pitifully, the Speech APIs aren't available on the WebView of Android nor other mobile devices (only Google Chrome Browser).

@maitmansour
Copy link

Hello,
You can use it with Cordova by installing this plugin : cordova-plugin-speechrecognition
This provide the native speech recognition, then you can add comands and use them with the native Speech :

function startRecognition() {
    window.plugins.speechRecognition.startListening(function(result) {
//Speech Recog Result
        result.forEach(function(option) {
//Artyom will check if there is commands with same words and execute them
            if (artyom.simulateInstruction(option)) {
                console.log("Matched : " + option, result);
                return;
            }
        });

        console.log(result);
    }, function(err) {
        console.error(err);
    }, {
        language: "en-US",
        showPopup: false
    });
}

PS : Artyom.say didn't work actually, but if i found how to make it work, i will share it here !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants