Continuous Voice Recognition

Jack Cole

Well-Known Member
Licensed User
Longtime User
I am experimenting with an automation project using an IOIO board. What I'd like to be able to do is to have an android device monitoring for voice commands (such as "Android left", "Android stop", etc...).

I'm able to do this well enough, but there is a significant problem. The voice recognition functionality times out after approximately 10 seconds with a dialog box that cannot be removed programmatically. Nor is it possible to interrupt the speech recognition dialog or run other code while the speech recognition dialog is open.

I'd like to be able to modify how long the speech recognition feature waits for a response (perhaps even stay open until a response is received), or discover a way to programmatically kill this process and restart it.

Any ideas?
 

Jack Cole

Well-Known Member
Licensed User
Longtime User
If this is not possible, I think the SDK from Dragon Mobile development could work. I think a B4A lib could probably be built for this, but I'm not adept enough at Java to do it yet.

If anyone wants to take a look:

NDEV Mobile: Dragon Mobile SDK

I was able to get the sample app to run from Eclipse, and even attempted to do a little bit with a library wrapper. Just don't know enough about java to get the job done.

But, I might be able to take their java sample and modify it to do what I want to do without creating a library. Although working in B4A is much preferred.
 
Upvote 0

oyvinrog

Member
Licensed User
Longtime User
I have the same problem. The Voice recognition dialog box times out, making it impossible to listen continuously for speech
 
Upvote 0

Beja

Expert
Licensed User
Longtime User
Hi,
I see your commands' words have a great deal of similarity.. I mean they share the word "Android" and this causes a headache
for the reco engine.
Try to increase the contrast between the commands.. the highest contrast the easier the engine recognizes the word. Reco
engines compare sounds (not words), so it is a good practice to make the distance between the words (the contrast) as
far as possible.
Good example: "Cocacola" and "Orange Juice"
Bad example: "Free" and "Three"
Good luck.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…