Text-2-Speech (TTS) for Android released

Supervised News & Rumors concerning the Google Android Platform.

TTS

Postby polarbear » Wed Dec 17, 2008 8:48 pm

I got ant working. Now, how do I get the build.xml file for your HelloWorldTTS example?
polarbear
Junior Developer
Junior Developer
 
Posts: 14
Joined: Mon Dec 03, 2007 4:47 am

Top

Postby clc » Wed Dec 17, 2008 10:37 pm

The HelloWorldTTS example just uses Eclipse, so you don't need ant for it.

I was saying you needed ant to build your own version of the TTS so that you could try it out since you can't grab it from Market; however, this will no longer be necessary as I am posting preview versions of the APK and associated library stub on the downloads page here: http://code.google.com/p/eyes-free/downloads/list

Version 1.3 adds multilingual support. :)

BTW, versions posted on the downloads page are signed with my dev key. This means that you can easily install it over the version you got from Market (and later on, when it goes official and ends up on Market, you can install from Market over it).
clc
Freshman
Freshman
 
Posts: 8
Joined: Fri Dec 12, 2008 7:59 pm

TTS

Postby polarbear » Wed Dec 17, 2008 11:53 pm

clc, it works with the apk!!! Thank you. If you need any help with testing, you can always contact me.
polarbear
Junior Developer
Junior Developer
 
Posts: 14
Joined: Mon Dec 03, 2007 4:47 am

Postby clc » Fri Dec 19, 2008 3:42 am

Ok, a release candidate for version 1.2 of the TTS is now out. Get it at the downloads section:
http://code.google.com/p/eyes-free/downloads/

(My earlier post about a preview of version 1.3 was actually a misnumbering - correct number is 1.2.)

Please try it out and let me know if you have any issues. Thanks!

BTW, plusminus, your hack is reasonable, but here is a better way to check for isInstalled:
public static boolean isInstalled(Context ctx){
try {
Context myContext = ctx.createPackageContext("com.google.tts", 0);
} catch (NameNotFoundException e) {
return false;
}
return true;
}

This is much simpler and doesn't involve starting up the binder. I have now added this to the library stub - thanks for the feature suggestion. :)
clc
Freshman
Freshman
 
Posts: 8
Joined: Fri Dec 12, 2008 7:59 pm

TTS

Postby polarbear » Fri Dec 19, 2008 4:26 am

I tested version 1.2 in the emulator and it works.
polarbear
Junior Developer
Junior Developer
 
Posts: 14
Joined: Mon Dec 03, 2007 4:47 am

TTS installtion not happening through stub_lib

Postby Shibbs » Wed Feb 18, 2009 4:30 pm

Hi clc ,

First of all thanks for the TTS lib.

We are developing an market app using your lib,

The problem we ran into was that, when we use your TTS_library_stub_1.3.1_Market.jar along with our app. On first time launch, it prompts to install the TTS, when we press install ActivityNotFound exception is thrown:

02-18 20:54:54.037: ERROR/AndroidRuntime(432): Uncaught handler: thread main exiting due to uncaught exception
02-18 20:54:54.049: ERROR/AndroidRuntime(432): android.content.ActivityNotFoundException: No Activity found to handle Intent { action=android.intent.action.VIEW data=market://search?q=pname:com.google.tts }
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1471)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1441)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at android.app.Activity.startActivityForResult(Activity.java:2526)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at android.app.Activity.startActivity(Activity.java:2570)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at com.google.tts.TTSVersionAlert$1.onClick(TTSVersionAlert.java:70)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at com.android.internal.app.AlertController$ButtonHandler.handleMessage(AlertController.java:148)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at android.os.Handler.dispatchMessage(Handler.java:88)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at android.os.Looper.loop(Looper.java:123)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at android.app.ActivityThread.main(ActivityThread.java:3739)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at java.lang.reflect.Method.invokeNative(Native Method)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at java.lang.reflect.Method.invoke(Method.java:515)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
02-18 20:54:54.049: ERROR/AndroidRuntime(432): at dalvik.system.NativeStart.main(Native Method)


But, whereas the voice data files gets installed successfully through your market shared library apk - tts_1.3.2_market.apk , when we launch it.

Any idea why this happens?

As we are developing a market app, its very important that the lib gets installed when our app is launched rather than the user have to download another TTS service app and launch it to get the lib installed.


any help?

Thanks,
Shibbs
Shibbs
Freshman
Freshman
 
Posts: 5
Joined: Fri Sep 05, 2008 3:14 pm

Top

Postby clc » Wed Feb 18, 2009 6:36 pm

Market is not available on the emulator.

The prompt for installing tries to launch Market, so it will fail if you try to use that part of it on the emulator. The solution is to install the apk manually.
clc
Freshman
Freshman
 
Posts: 8
Joined: Fri Dec 12, 2008 7:59 pm

Postby Shibbs » Wed Feb 18, 2009 6:50 pm

Oh... means on the real device, when we click on the Install App button inside an app which uses your lib, would launch the market and would get the tts_1.3.2_market.apk from the market & install it on the device but on emulator it fails as we dont have the market, thus the tts_1.3.2_market.apk need to be present already. right ?

We just spend a day or so in figuring out why our app couldn't download the voice data files when launched, whereas the other tts_1.3.2_market.apk does... :)

Cool! got it now, Thanks for the info.

Sorry couldn't test the behavior on real device because we don't have the device yet....


Thanks,
Shibbs
Shibbs
Freshman
Freshman
 
Posts: 5
Joined: Fri Sep 05, 2008 3:14 pm

Postby devthx » Sun Jun 28, 2009 12:59 am

clc - Thanks for great piece of work 8)
plusminus - Thanks for anddev.org and your tutorial :)
I love this site! Thanks all of you.
devthx
Freshman
Freshman
 
Posts: 4
Joined: Wed Jun 03, 2009 11:08 pm

Re: TTS

Postby ohyes » Fri Oct 30, 2009 8:02 am

plusminus wrote:@2 I queried Charles if he will put the Stub to the Download-Page: http://code.google.com/p/eyes-free/downloads/list
Nicolas


Hi,
I download "tts_1.8_market.apk " and have it installed on my Emulator
    SDK 1.6
    Emulator 5556 with 256M of SD card
    Internet connection OK (via built-in browser).

However, it appears the following text for a long while and closes.
Please wait while voice data is being downloaded...
How can I install TTS library and make the application works.
Many thanks,
-
Ohyes
ohyes
Junior Developer
Junior Developer
 
Posts: 10
Joined: Fri Jul 10, 2009 2:51 am

Re: TTS

Postby gauravdegenius » Fri Nov 20, 2009 10:20 am

If you are using Android 2.0 or 1.6 , then no need to download the library from market .
Its already available with donut.

TTS Library/APIs information :
Package
↳ android.speech.tts
Classes
↳ TextToSpeech
↳ TextToSpeech.Engine



ohyes wrote:
plusminus wrote:@2 I queried Charles if he will put the Stub to the Download-Page: http://code.google.com/p/eyes-free/downloads/list
Nicolas


Hi,
I download "tts_1.8_market.apk " and have it installed on my Emulator
    SDK 1.6
    Emulator 5556 with 256M of SD card
    Internet connection OK (via built-in browser).

However, it appears the following text for a long while and closes.
Please wait while voice data is being downloaded...
How can I install TTS library and make the application works.
Many thanks,
-
Ohyes
After every end , There is satisfaction..but still if you are not satisfied...than ..Its not the END !!!
gauravdegenius
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Nov 20, 2009 10:16 am

Re: Text-2-Speech (TTS) for Android released

Postby Vicky1314 » Fri Oct 21, 2011 10:49 am

"I'm aware of the fact that if there's a plane in the sky and it's over Manhattan and it's close to the anniversary of Sept. 11 it's a connection people might make," she said. "I wanted to wait long enough after the anniversary that people wouldn't make that connections but I can see how they could." http://www.mtsconverter.jp Plans for the skywriting were announced ahead of time , with Beck encouraging witnesses to email her photos. She was inspired by the "Surrender Dorothy" skywritten message in "The Wizard of Oz." http://www.mtsconverter.jp/mts-converter-for-mac.htm
Vicky1314
 
Posts: 0
Joined: Fri Oct 21, 2011 10:38 am

Top
Previous

Return to News & Rumors

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests