pbakondy / cordova-plugin-speechrecognition

:microphone: Cordova Plugin for Speech Recognition
MIT License
197 stars 117 forks source link

Not recognizing the Words #48

Closed desmeit closed 6 years ago

desmeit commented 6 years ago

I try to show the recognized Words with this code:

// Handle results
                    function startRecognition(){

                        window.plugins.speechRecognition.startListening(function(result){
                            // Show results in the console
                            console.log(result);

                        }, function(err){
                            console.error(err);
                        }, {
                            language: "de-DE",
                            showPopup: true
                        });

                    }

It is asking for Permission (so other code is working) and everything is okay, but the only result I get is:

Ongoing speech recognition

Why does not he show the words I have spoken? Has it perhaps to do with the matches? Is there an example? How is the right code to show the spoken results into the console.log?

chrisworrell commented 6 years ago

Seriously you just close without answering what you might have figured out?

For those who are curious, make sure you stopLitsening before you try to startListening again (iOS doesn't automatically stop)

desmeit commented 6 years ago

Yes that was the reason. Sorry for that stupid question.