Simple tts (text-to-speech) module for Titanium SDK. Allows you to say a sentence and write it to a wav file.
- init()
- speak(string) - There is a character limit of 4000 characters per speak method
- synthesizeToFile(string)
- pitch (setter): float
- speed (setter): float
- voices (getter): string. Returns a string with voices separated by a
|
. Optional you can pass inde-de
to only get German voices. - voice (setter): string
- language (setter): string. e.g.
de
oren
- init(): when TTS is ready
- done(): returns
blob
with the sound file
const tts = require("ti.tts");
const win = Ti.UI.createWindow();
win.open();
win.addEventListener("open", function() {
tts.init();
});
tts.addEventListener("init", function(e) {
tts.speak("Hello");
});
- Michael Gangolf (@MichaelGangolf / Web)