![]() ![]() Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH) * Initializes the speech recognizer and starts listening to the user input To prevent the pop-up Voice Dialog on the screen, you can use the ACTION_RECOGNIZE_SPEECH intent: private static int SR_CODE = 123 I am relatively new to Android programming, so any advice (no matter how basic) is appreciated. My hardware is a Samsung tablet running Android 4.1. Also, I don't want the pop-up Voice Dialog on the screen. I don't want the user to have to press a button, I just want the App to be constantly listening. So, I think that I am close, but I'm not really sure how I can combine the Speech-to-Text with my current Bluetooth App. Upon a button press, a dialog pops up and you can speak words or phrases, and it correctly displays the result on the screen. I have succesfully tested an App that uses RecognizerIntent. I have tested some of the Speech-to-Text examples that can be found on various websites. What I would like to do is add voice command capability, so that the user has either the choice of pressing the Buttons/NumberPickers, or can change the values with only voice commands. This application is currently working correctly. There is also data received from the bluetooth link, and displayed in textViews. The user can press Buttons and NumberPickers to modify the data being sent over bluetooth. The current application transmits data back and forth over bluetooth on a periodic (timer) basis. I have a working application that I would like to add voice commands. ![]()
0 Comments
Leave a Reply. |