TTS missing language data

prokli

Active Member
Licensed User
Longtime User
Hi everybody!

I tried to run the TTS example as provided within the B4A forum.
But I cannot hear anything (volume set to maximum level!!) and I got the message "language data not found".

Now I found some hints in this forum that I might have to install a speech engine.
For that reason I downloaded SVOX TTS engine from market. It works perfectly as an standalone app, but I can't us it with the B4A example as provided by Erel.

Anybody an idea?
My phone is Sony Ericsson XPERIA

Thx
 
Hi Marget,

yes, the TTS library (version 1.0) was already selected when I loaded the TTS example as it is provided by Erel in forum.
I don't get a compilation error since next code lines work fine:

Sub Activity_Resume
If TTS1.IsInitialized = False Then
TTS1.Initialize("TTS1")
End If
End Sub

I get a "Language data not found." message when executing next lines:

If TTS1.SetLanguage(Value, "") = False Then
ToastMessageShow("Language data not found.", True)
Return
End If

So I suppose that I have to install any language data.
But don't know how to do this :o((

Thanks for your help
Harald
 
Upvote 0
Hi Margret,

it seems that my phone does not support any language.
I put the code from the given link (.html#post79480) to my app. Unfortunately the Log messages do not show any supported language.

Funny thing…
Thanks a lot for your kind help!
 
Upvote 0
Margret,

I copied the TTS example to my ASUS Transformer (Honeycomb 3.2) and it works perfectly!!!
I get a mass of supported languages (as I can see in Log messages)
In device settings I found the menu "Speech-to-Text" which I neither can find on my Sony Ericcson XPERIA nor on Samsung I5800 (both phones keep Android 2.2 / 2.3).
So, if TTS works or not might depend on the OS???

Don't know!

Regards,
Harald
 
Upvote 0
Problem obviously solved!
It it neither a problem of my devices nor of the Android OS version.
Both phones didn't keep an appropriate language data (that is exactly what the message in TTS example was telling me).
I recently downloaded and installed "com.svox.langpack.installer.apk" from Google Play Store and TTS works perfectly on both phones.

Harald
 
Upvote 0
Welcome, Margaret!

One additional information!!
For downloading this language packages, we have to search for "Speech Synthesis Data Installer" on Google market (don’t search for "com.svox.langpack.installer.apk").

Cheers, Harald
 
Upvote 0
Back
Top