[android-developers] TextToSpeech is not working

2013-07-30 Thread Raghavendra Rao
Am trying to implement text to speech its not working properly below is the code snippet private void speak() { String text = getText(); speech.speak(text, TextToSpeech.QUEUE_ADD, null); //getting null pointer exception } -- -- You received this message because you are subscribed to the

Re: [android-developers] TextToSpeech is not working

2013-07-30 Thread TreKing
On Tue, Jul 30, 2013 at 2:40 PM, Raghavendra Rao raghu1...@gmail.comwrote: speech.speak(text, TextToSpeech.QUEUE_ADD, null); //getting null pointer exception Have you debugged your app to determine what is null ... ?

Re: [android-developers] TextToSpeech is not working

2013-07-30 Thread Raghavendra Rao
Yes i have.. its showing invocation Targetexceptioninit. But the same code snippet is working fine when i execute that separately, after integrating that with my code its causing this problem On 31 Jul 2013 04:19, TreKing treking...@gmail.com wrote: On Tue, Jul 30, 2013 at 2:40 PM, Raghavendra

Re: [android-developers] TextToSpeech is not working

2013-07-30 Thread Raghavendra Rao
Yes i have.. its showing invocation Targetexceptioninit.. The jar file e:\android\android-sdk-windows\platforms\android-17\android.jar has no source attached. But the same code snippet is working fine when i execute that separately, after integrating that with my code its causing this problem On

Re: [android-developers] TextToSpeech is not working

2013-07-30 Thread TreKing
On Tue, Jul 30, 2013 at 9:03 PM, Raghavendra Rao raghu1...@gmail.comwrote: Yes i have.. its showing invocation Targetexceptioninit.. The jar file e:\android\android-sdk-windows\platforms\android-17\android.jar has no source attached. You should download the android sources so you can step

Re: [android-developers] TextToSpeech is not working

2013-07-30 Thread Raghavendra Rao
Hey its working now, actually i missed to initialize the speech variable. Thanks On 31 July 2013 07:55, TreKing treking...@gmail.com wrote: On Tue, Jul 30, 2013 at 9:03 PM, Raghavendra Rao raghu1...@gmail.comwrote: Yes i have.. its showing invocation Targetexceptioninit.. The jar file

Re: [android-developers] TextToSpeech is not working

2013-07-30 Thread TreKing
On Tue, Jul 30, 2013 at 9:31 PM, Raghavendra Rao raghu1...@gmail.comwrote: Hey its working now, actually i missed to initialize the speech variable. Thanks Uh huh... when I asked have you debugged your app ... this is why. =P

[android-developers] TextToSpeech / OnUtteranceCompletedListener not working

2011-08-24 Thread Ralph Grove
I'm having a problem with the OnUtteranceCompletedListener in TextToSpeech. In execution of the code below, the listener is registered successfully, but OnUtteranceCompleted is never executed. I tried this with both the Eclipse emulator (2.3) and an HTC phone (2.2). I saw some earlier reports of