Android keyboard Speech to Text keeps turning off

I have an app where a user can speak words into a text box.

In the following 2 cases, the speech recognition stops listening:

     1) The text box has a function running where, when it finds a particular word, commits the string to an array and clears the text box. When this happens, the speech recognition stops listening.

     2) After a user has spoken a word they can press an onscreen button to commit the string to an array. Doing this causes the speech recognition to stop listening.

I’ve tried using native.setKeyboardFocus(theTextBox), but it doesn’t appear to help in this situation.

Any ideas on how I can keep the voice recognition going as the user keeps talking/clicking the add button?

Any update on Speech to Text (Voice Recognition) for Solar2D? If not, are the APIs available for Android and iOS so that a plugin can be developed to do this?

There is a plugin by @Scott_Harrison, for iOS and Android,

https://solar2dmarketplace.com/plugins?VoiceToText_tech-scotth

Disclaimer: I have not tried it myself.

1 Like