views:

84

answers:

0

For an Android application I want to have TTS functionality, but with a my own custom TTS language, ie, the TTS Language won't necessarily correspond to a pre-existing Locale. (for illustration purposes, lets say my app needs to speak Orcish).

How do you make your own TTS Language for Android? I believe it is possible, as there are several apps on the market that claim to have extra languages.

The TTS object in the docs has several functions of interest, but I'm not sure how to use them, or if they are what I need;

int addEarcon(String earcon, String filename)
// Adds a mapping between a string of text and a sound file.
int addEarcon(String earcon, String packagename, int resourceId)
// Adds a mapping between a string of text and a sound resource in a package.

int addSpeech(String text, String filename)
// Adds a mapping between a string of text and a sound file.
int addSpeech(String text, String packagename, int resourceId)
// Adds a mapping between a string of text and a sound resource in a package.