O'Reilly logo

Delphi Cookbook - Second Edition by Daniele Teti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Letting your phone talk – using the Android TextToSpeech engine

In this recipe, we'll do some very fun stuff. On your Android phone, run an app with a listening UDP server on it. When another application, in our case a VCL application, sends a UDP broadcast with some text, the android app will pronounce the text using the android TTS engine.

Getting ready

The first thing to do is to import the TTS classes from the android SDK in our Delphi project. That is not a simple task; however, luckily, someone already did the job. Indeed, Jeff Overcash, the maintainer of the InterBase Express Components (IBX), wrote the Android Text To Speech JNI Translation. His translation with a simple demo app is available on CodeCentral (http://cc.embarcadero.com/item/29594 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required