A very small text to speech plugin for Cordova3 / Ios
Switch branches/tags
Nothing to show
Clone or download
#1 Compare This branch is 1 commit ahead of steevelefort:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
www
LICENSE
README.md
plugin.xml

README.md

#cordova3-ios-tts-plugin

A very small text to speech plugin for Cordova3 / Ios

##INSTALLATION

In your Cordova project directory : cordova plugin add https://github.com/steevelefort/cordova3-ios-tts-plugin

Verify if you config.xml file contains :

<feature name="TtsPlugin"> <param name="ios-package" value="TtsPlugin" /> </feature>

##USE IT

ttsPlugin.setRate(rate); // Set voice speed : default is "0.2"

ttsPlugin.setLanguage(lang); // Set voice language : default is "en-US"

ttsPlugin.initTTS(successCallBack, failCallBack); // Init Plugin : failCallBack doesn't work yet

ttsPlugin.speak("Hello"); // Say Hello

ttsPlugin.stopSpeaking(); // Try to stop speaking