Stopping Speech Recognition Before Using Text To Speech
I am implementing a dialogue application using speech recognition and text to speech. I noticed that once the recognizer is started it tries to recognition any sound including the
Solution 1:
Try this- >
@Override
public void onStart(String utteranceId) {
// TODO Auto-generated method stub
SpeechActivity.this.runOnUiThread(new Runnable() {
@Override
public void run() {
recognizer.stopListening();
}
});
}
Post a Comment for "Stopping Speech Recognition Before Using Text To Speech"