android - Hide Google Voice recognition -


i'm using google voice recognition , hide popup google , mic being shown.. code:

intent intent = new intent(                     recognizerintent.action_recognize_speech);              intent.putextra(recognizerintent.extra_language_model, getresources().getstring(r.string.ttslang));              try {                 startactivityforresult(intent, result_speech);             } catch (activitynotfoundexception a) {                 toast t = toast.maketext(getapplicationcontext(),                         getresources().getstring(r.string.notts),                         toast.length_short);                 t.show();             } 

as think saw such apps, think possible.. if is, know how?

many thanks!

for that, need use speechrecognizer. example can found here.

it's quite easy implement:

speechrecognizer recognizer = speechrecognizer.createspeechrecognizer(this);        recognizer.setrecognitionlistener(new recognitionlistener() { ... });   

the listener catches events , process them accordingly.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -