Wednesday, April 10, 2013

Re: [android-developers] TtsEngine sample

Well, I found out that Reto Meier has some good information on TTS in Chapter 11 of his book.

That can be used in lieu of the sample.

Also, I wrote this quick test and am posting it in case it helps anyone:


TextToSpeech tts = null;

...


        tts = new TextToSpeech(this, new TextToSpeech.OnInitListener() {
@Override
public void onInit(int status) {
if (status == TextToSpeech.SUCCESS)
{
Toast.makeText(MainActivity.this, "Success", Toast.LENGTH_LONG).show();
tts.speak("test", TextToSpeech.QUEUE_ADD, null);
}
else
if (status == TextToSpeech.ERROR)
{
Toast.makeText(MainActivity.this, "Error", Toast.LENGTH_LONG).show();
}
}
});

On Tuesday, April 9, 2013 5:19:22 PM UTC-5, bob wrote:

Any idea what this sample is supposed to do?


There is no Launcher activity, and the speak method is never called.


Thanks.





On Wednesday, August 8, 2012 1:48:56 PM UTC-5, Harri Smått wrote:

On Aug 8, 2012, at 9:13 PM, bob <b...@coolfone.comze.com> wrote:

> I'm wondering if it even works at all.  

At least it compiles and installs ok after you change IceCreamSandwich with proper API integer.

--
H

--
--
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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment