Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8128929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:05:50+00:00 2026-06-06T08:05:50+00:00

Im having a odd Problem with the TTS engine and I cant figure out

  • 0

Im having a odd Problem with the TTS engine and I cant figure out why / where is my mistake. Is searched for hours for a solution but without any mentionable result.

When I am using this API Demo code everything is working well and I can hear for all installed languages the voice.

But when I am checking by this method I am getting CHECK_VOICE_DATA_FAIL as a return code for custom TTS engines (which I need for all necessay languages, Standard google is not enough).

What am I missing here? How can I check the availabillity of the TTS engines?
I know that this is not necessarily a code problem but, for other Programms this seems to be working.

I installed some other apps from the SVox Website and these seem to work on all my devices, while the code below fails.

As an example, TalkToMeClassic is checking the availlability of the Engine and it is working.

What is done different here?

Here is my excact code (which is a copy of the article):

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Intent checkIntent = new Intent();
    checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA);
    startActivityForResult(checkIntent, 0x99);
}

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (requestCode == 0x99) {
        if (resultCode == TextToSpeech.Engine.CHECK_VOICE_DATA_PASS) {
            // success, create the TTS instance
            mTts = new TextToSpeech(this, this);
        } else {
            Log.e("TTS","Missing Data:" + resultCode );
            // missing data, install it
            Intent installIntent = new Intent();
            installIntent.setAction(
                TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA);
            startActivity(installIntent);
        }
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:05:53+00:00Added an answer on June 6, 2026 at 8:05 am

    Unfortunately, initializing TextToSpeech reliably is complicated, asynchronous, and confusing.

    Why is your code checking 0x99???

    You actually don’t need to use the ACTION_CHECK_TTS_DATA Intent to check for language availability, use TextToSpeech.isLanguageAvailable instead.

    So here is a helper class that does it. The code in that library will help you get started. It can be as easy as just extending this class.

    Or you can read about the details in this book.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having an odd problem with a MySQL query, I can't really figure out how
I'm having a very odd problem that I can't seem to track down. Any
I'm having an odd problem with my sessions. I haven't found a solution even
I am having a very odd problem with local variables being out of context
I'm having really odd behavior with Rails, and I can't seem to figure out
I was having an odd problem that I narrowed down to the following test
I'm having an odd problem, when attempting to build my application using Maven, on
I'm having an odd problem while deploying a Django site using Fabric. I've configured
Im having a very odd problem. Im trying to install a Python program. Im
I am having a rather odd problem with the Gecko Webbrowser control, I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.