0
Answer

How to Speech recognition in phone gap not in cordova

<body>
<script type="text/javascript">
var recognition = new webkitSpeechRecognition();
recognition.onresult = function (event) {
if (event.results.length > 0) {
q.value = event.results[0][0].transcript;
//q.form.submit();
}
}
</script>
<input type="search" id="q" name="q" size="60">
<input type="button" value="Click to Speak" onclick="recognition.start()">
<script type="text/javascript" src="cordova.js"></script>
</body>
 
I have tried this above code
I implemeted the following plugin in congig.xml
 
 
<plugin name="cordova-plugin-speechrecognition" source="npm" spec="~1.0.4"/>
 
 
is that correct?