Thanks, i saw this entries, but they didnt help me. my problem is at adding the listener.
but i dont know what i am doing wrong On 28 Okt., 14:45, blindfold <seeingwithso...@gmail.com> wrote: > Perhaps related > tohttp://groups.google.com/group/tts-for-android/browse_frm/thread/6d5f... > or else ask in that group? > > On Oct 28, 2:37 pm, Markus Gursch <swordia...@gmail.com> wrote: > > > 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 -~----------~----~----~----~------~----~------~--~---