TTS ========== The TTS class that allows you to access the devices TTS services. Properties ---------- N/A Methods ------- - __startup__: starts the TTS service. - __shutdown__: stops the TTS service. - __speak__: speaks the specified text. - __silence__: plays silence for the specified number of ms. - __getLanguage__: gets the current TTS language. - __setLanguage__: sets the current TTS language. - __isLanguageAvailable__: finds out if TTS supports the language. Details ------- The TTS class is a way to have your application read out text in a machine generated format. Supported Platforms ------------------- - Android Quick Example ------------------------------ window.plugins.tts.startup(startupWin, startupFail); function startupWin(result) { // When result is equal to STARTED we are ready to play if (result == TTS.STARTED) { window.plugins.tts.speak("The text to speech service is ready"); } } function startupFail(result) { console.log("Startup failure = " + result); } Full Example ------------ PhoneGap Events Example

TTS Example


Speak
test