I'm having a play with TextToSpeech, trying to get it to run from a
service.

But, this innocuous-looking line:
        mTts = new TextToSpeech(mContext, this);
generateds an exception:

android.content.ReceiverCallNotAllowedException: IntentReceiver
components are not allowed to bind to services
     at
android.app.ReceiverRestrictedContext.bindService(ContextImpl.java:
148)
     at android.speech.tts.TextToSpeech.initTts(TextToSpeech.java:467)
     at android.speech.tts.TextToSpeech.<init>(TextToSpeech.java:433)

which seems to imply that I'm doomed. Has anyone tried (or even
succeeded!) in getting TTS to run from a service ?

I'm not really sure why TTS has to be an IntentReceiver. I presume
it's because the works to manage the installation of language
downloads is packaged into the same class as the actual audio
synthesis.

Thanks,

Richard

-- 
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