Skip to content

mmir plugin for speech synthesis via local speak.js library

License

Notifications You must be signed in to change notification settings

mmig/mmir-plugin-tts-speakjs

Repository files navigation

mmir-plugin-tts-speakjs

Cordova plugin for the MMIR framework that adds Text To Speech (TTS) synthesis via speak.js library

The speak.js TTS implementation supports the following options (all optional):

voice (or language): STRING one of 'en-us' | 'de' (DEFAULT: 'en-us')

and non-standard options:

amplitude: NUMBER How loud the voice will be (DEFAULT: 100) pitch: NUMBER The voice pitch (DEFAULT: 50) speed: NUMBER The speed at which to talk (words per minute) (DEFAULT: 175) wordgap: NUMBER Additional gap between words in 10 ms units, i.e. 1 corresponds to a 10 ms duration (DEFAULT: 0)

TODO

  • add fallback for non-WebWorker env
  • support cancel? (i.e. during generation)
  • compile version with more languages? fr, spa, rus ...?
    • impl. way for dynamically loading language resources?

speak.js

The plugin uses the speak.js library (License GPL-3.0, see resources/license-speakjs.txt): github.com/logue/speak.js.

speak.js is compiled from eSpeak to javascript using emscripten.

About

mmir plugin for speech synthesis via local speak.js library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published