I used tts.isSpeaking() as a workaround.
Lee
On Oct 28, 5:12 pm, Markus Gursch <swordia...@gmail.com> wrote:
> other hints ????
>
> i need to know when the speak is over
>
> On 28 Okt., 14:52, Markus Gursch <swordia...@gmail.com> 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 <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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment