I am using the default speech recognizer of Android. But you may know that 
it plays a beep sound when starting the recognizer and when the onError() 
event is fired. Beep sound is played from Android version 5.x.

My requirement is to implement continuous recognizer. So I have to start 
this recognizer again and again. In this situation beep sound is being 
played again and again. I have tried to have some solution like below:

Mute the media sound before starting recognizer and unmute again 
onSpeechReady() event. On the other hand, if recognizer do not detect any 
speech for 4/5 sec then it automatically calls onError() event and this 
onError() event plays the beep again. To resolve this, I have stopped the 
recognizer forcefully after 3 sec and called onError() by a timer before 
system calls this onError() event. 
But as I closed the recognizer forcefully, system is getting an exception 
here and playing a buzz.

Anybody can give any solution on how I can stop this beep sound as well as 
the buzz.

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-discuss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-discuss/c8ad51df-cd82-4767-98a3-296d3b79234c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to