Getting Error when loading TTS

后端 未结 1 1862
长发绾君心
长发绾君心 2020-12-20 09:50

I am getting the following stack trace from some phones running my app.

This works fine on my G1 and the emulator, I have never had any troubles. But I am getting t

相关标签:
1条回答
  • 2020-12-20 10:18

    Check the SDK that you are running in that particular device. TexttoSpeech API has been introduced only from Android 1.6 SDK. So if you running 1.5 SDK you might face this issue.

    http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html

    This is the place where you must be getting that error. It tries to navigate an user to android market to download the app...Check the above link.They would have specified it there...

    else 
    {
      // missing data, install it
      Toast.makeText(getApplicationContext(), R.string.install_audio_data, Toast.LENGTH_LONG).show();
      Intent installIntent = new Intent();
      installIntent.setAction(TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA);
      startActivity(installIntent);
      finish();
    }
    

    There has been already an issue that has been filed on the same. Probably you need to change the conditions a bit.

    IntentNotFoundException for TextToSpeech.Engine.ACTION_INSTALL_TTS_DATA

    0 讨论(0)
提交回复
热议问题