Text To Speech (TTS) Wrapper For Android With Delphi XE5 Firemonkey

Delphi Firemonkey Android Text To Speech TTSEmbarcadero has a blog post from September 2013 that highlights a Text To Speech (TTS) unit that was created by Jeff Overcash. The TTS unit wraps the native Android Text to Speech API and gives you access to it from your Delphi XE5 Firemonkey application. You can take a look at the Android SDK information for android.speech.tts to see the full help on using the API. The interfaces that are implemented in the wrapper are listed below:

And here is a sample from the demo that is included with the wrapper:

Check out the blog post and download the wrapper unit.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Text To Speech (TTS) Wrapper For Android With Delphi XE5 Firemonkey by Delphi XE5 XE6 XE7 XE8 10 Seattle Berlin Firemonkey, Delphi Android, Delphi IOS is licensed under a Creative Commons Attribution 4.0 International License.

9 Responses to Text To Speech (TTS) Wrapper For Android With Delphi XE5 Firemonkey

  1. Lucas says:

    How I can configure it in Spanish?

    • Ronnie says:

      What I did was, I download a spanish tts to my android phone, then on “TttsOnInitListener.onInit” procedure I replace this:
      result := FParent.tts.setLanguage(TJLocale.JavaClass.US);
      with this
      result := FParent.tts.setLanguage(TJLocale.JavaClass.getDefault);

      • Diego Sandoval says:

        Hi, how download the spanish language to android? and to change this line:
        FParent. tts.setLanguage (TJLocale.JavaClass.getDefault); the app crash.

  2. Lucas says:

    Speech to Text without VirtualKeyboard button?

  3. lee says:

    It does not work on the Galaxy . (TTS INIT ERROR)
    What is the reason ?

    my phone: Samsung GalaxyNote-2 (Jellybin 4.3)

  4. langstars says:

    First of all, thank you for this example.

    On my Samsung S3 (Android 4.3) example doesn’t work.

    Program crashes on

    tts := TJTextToSpeech.JavaClass.init(SharedActivityContext, ttsListener);

    Prior to upgrade of Android version everything was working fine. On another device (Android 4.0.4) there is no problem.

    I noticed that there were some changes in API level 18 for TTS. Maybe that’s the reason?

    Best regards,

  5. Pingback: Build Speech Recognition And Text To Speech Into Your Delphi XE6 Firemonkey Apps On Android | Delphi XE5 XE6 Firemonkey, Delphi Android, Delphi IOS

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Charts For Delphi Firemonkey IOS Android
Ultimate Charting Component For Delphi Firemonkey On Android And IOS

Long time chart component developer Steema Software released a new version of Teechart Pro in late 2013 which supports Delphi...

Close