Using ispeech.org TTS in Android app

242 Views Asked by At

I am having trouble using ispeech.org TTS engine with my Android app.

The app crashes on:

java.lang.NoClassDefFoundError: org.ispeech.iSpeechFramework
        at            org.ispeech.SpeechSynthesis.showProcessingDialog(SpeechSynthesis.java:276)
        at org.ispeech.SpeechSynthesis.speak(SpeechSynthesis.java:352)

I have added this line to AndroidManifest.xml:

<activity android:name="org.ispeech.iSpeechFramework" android:configChanges="orientation|keyboard" android:theme="@android:style/Theme.Translucent"/>

However IntelliJ complains that

"'org.ispeech.iSpeechFrameworkd' is not assignable to 'app.android.Activity'"

Can anyone help me understand what I am doing wrong?

1

There are 1 best solutions below

0
On

org.ispeech.iSpeechFramework is not an activity, so you don't need to add it to your manifest. NoClassDefFoundError is usually a linker/build path error. Try removing the jar and adding it with the instructions in this StackOverflow answer.

If it helps at all, this is how you would fix it in Eclipse.