How do they do it?
After examining the TtsEngine sample application in the SDK, it will look like this:
Step # 1: Deploy TTS. Developers who try to use this object to capture arbitrary other material in "Settings" will be taken into view.
Step # 2: In the manifest entry for this service, use the <meta-data> element with the android:name="android.speech.tts" and android:resource attribute pointing to the XML resource.
Step # 3: Create the aforementioned XML resource similar to the following:
<tts-engine xmlns:android="http://schemas.android.com/apk/res/android" android:settingsActivity="your.settings.activity.GoesHere" />
Alas, this seems to be undocumented. Leastways, I do not find any links to this material when I search the online developer guide.
source share