I had this problem too.

I used tts.isSpeaking() as a workaround.

Lee

On Oct 28, 5:12 pm, Markus Gursch <[email protected]> wrote:
> other hints ????
>
> i need to know when the speak is over
>
> On 28 Okt., 14:52, Markus Gursch <[email protected]> wrote:
>
> > 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 <[email protected]> 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 <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to