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
Post a Comment