Skip to content

m1ga/ti.tts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text-to-speech module for Titanium SDK (Android)

Simple tts (text-to-speech) module for Titanium SDK. Allows you to say a sentence and write it to a wav file.

Methods

  • init()
  • speak(string) - There is a character limit of 4000 characters per speak method
  • synthesizeToFile(string)

Properties

  • pitch (setter): float
  • speed (setter): float
  • voices (getter): string. Returns a string with voices separated by a |. Optional you can pass in de-de to only get German voices.
  • voice (setter): string
  • language (setter): string. e.g. de or en

Events

  • init(): when TTS is ready
  • done(): returns blob with the sound file

Example

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");
});

Author

Buy Me A Coke donate button

About

Text-to-speech module for Titanium SDK

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published