Android Voice Recognition
Before experimenting the voice recognition feature of Android I read the documentation provided by Android Developer site. Which tells us how to initiate the voice recognition activity for result which will return the result back in a call开发者_高级运维back. But what I have not implemented any such thing. what I have done is described below.
- Create a simple EditText in an activity.
- Now tap that EditText and keypad will appear.
- Now tap the speak button on keypad.
- Voice recognition activity will be started.
- For example I speak "hello"
- Voice recognition activity recognized my "hello" and this "hello" word is appeared in my EditText in my activity.
- Could some please explain my how does it happened. how android put the corresponding word into my EditText where i did not do any voice recognition coding.
Thanks Dalvin
The "keypad" Activity (built-in) did this for you and sent the text to the element, which had the focus. You need the approach you mentioned to do it without the keypad.
精彩评论