Hello

i have a problem to recognize when speak has finished.

here is my code

t2s = new TextToSpeech(this, this);
int result = t2s.setOnUtteranceCompletedListener(completeListener);

result is equal to TextToSpeech.ERROR (-1) - i don't know why.

i speak like this but onUtteranceComplete is not fired:

HashMap<String, String> params = new HashMap<String, String>();
params.put(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID, "theUtId");
t2s.speak(speechText, TextToSpeech.QUEUE_FLUSH, params);

what is the problem???
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to