android - Continuous speech recognition with phonegap -
I want to create an app in Phonegap with constant speech recognition in Android and iOS. My app should wait for the user's voice and when he says "next", the app will update the screen and take some actions.
I get this plugin: And it works really fast but the voice has started after a few seconds of recognition and there is no sound, speech identifier is closed. Is there any way or flag like SpeechRecognizerAlive or any other solution? Or is it possible to run as a service?
I also think that there is a similar plugin on iOS and how to manage it :)
This plugin is based on the Web Speech API located here () Example 3 & amp; 4 cards let you issue with
accreditation. Kothir = true
& lt; Textarea id = "textarea" rows = 10 cols = 80> & lt; / Text field & gt; & Lt; Button ID = "Button" onclick = "Toggle Startstop ()" & gt; & Lt; / Button & gt; & Lt; Script type = "text / javascript" & gt; Recognizing the Var; Var validation = new speech recognition (); Recognition Reset (); Recognition Recognition Genetic = function (event) {for (var i = resultIndex; i & lt; event.results.length; ++ i) {if (event.results.final) {textarea.value + = event.results [i] [ 0] .transcript; }}} Function reset () {recognizing = false; Button.innerHTML = "Click to Speak"; } Function toggleStartStop () {if (recognizing) {validation.stop (); Reset (); } And {recognition. Start (); Recognizing = true; Button.innerHTML = "Click to Close"; }} & Lt; / Script & gt; Apart from this, there is another plugin that places constant speech recognition here.
But in this Some problems are not solved yet, though it works great (tested on Lollipop 5.1)
Comments
Post a Comment