Skip to content
This repository was archived by the owner on Sep 15, 2021. It is now read-only.

Commit 876ef68

Browse files
YaAvigortok
authored andcommitted
added tts plugin wrapper (#1265)
* added tts plugin wrapper * commit only tts.js * only commit plugin
1 parent 2605cfe commit 876ef68

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/plugins/tts.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// install : cordova plugin add cordova-plugin-tts
2+
// link : https://github.com/smcpjames/cordova-plugin-tts
3+
4+
/* globals TTS: true */
5+
angular.module('ngCordova.plugins.tts', [])
6+
7+
.factory('$cordovaTTS', function () {
8+
return {
9+
speak: function (text, onfulfilled, onrejected) {
10+
return TTS.speak(text, onfulfilled, onrejected);
11+
}
12+
};
13+
});

0 commit comments

Comments
 (0)