kanaida Active Member Licensed User Longtime User Aug 16, 2012 #1 I have code that works to get some voice commands to change UI elements. Unfortunately though, they'd have to push some mic button for it to work right using the VoiceRecognition class. Is there a way to keep it always listening for commands? I just want a master on/off button but not for the user to have to keep pressing it. It's for a gaming type app so hands free is important in this case since the user will most likely have an xbox controller in his hands and not necessarily be near the device.
I have code that works to get some voice commands to change UI elements. Unfortunately though, they'd have to push some mic button for it to work right using the VoiceRecognition class. Is there a way to keep it always listening for commands? I just want a master on/off button but not for the user to have to keep pressing it. It's for a gaming type app so hands free is important in this case since the user will most likely have an xbox controller in his hands and not necessarily be near the device.
Erel B4X founder Staff member Licensed User Longtime User Aug 16, 2012 #2 Voice recognition service cannot be kept listening. One option which you can try is to use one of the audio recording libraries to measure the volume. If the volume is high enough then you can call VoiceRecognition.Listen. Upvote 0
Voice recognition service cannot be kept listening. One option which you can try is to use one of the audio recording libraries to measure the volume. If the volume is high enough then you can call VoiceRecognition.Listen.