Skip to content

kn4rfy/cordova-plugin-tts-notification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7c1ed2b · Jul 5, 2016

History

1 Commit
Jul 5, 2016
Jul 5, 2016
Jul 5, 2016
Jul 5, 2016
Jul 5, 2016

Repository files navigation

Cordova Text-to-Speech Notification Plugin

Platforms

iOS 7 and UP

Android 4.0 and UP (API Level 15 to 23)

Installation

cordova plugin add https://github.com/kn4rfy/cordova-plugin-tts-notification

Usage

document.addEventListener('deviceready', function () {

  TTSNotification.speak({title: 'Title', icon: 'icon', message: 'Message', language: 'en-US'}, function () {
    console.log('Speak success');
  }, function (reason) {
    console.log('Speak failed. error: ' + reason);
  });

}, false);

Credits

This plugin is based from Vilic's Cordova Text-to-Speech Plugin

Windows Phone

Windows version is not supported at this moment. It is available here but you have to make the notification yourself.