ImperialSquid / zotero-zotts

A Zotero plugin adding text to speech (TTS) functionality to various screens
GNU Affero General Public License v3.0
86 stars 1 forks source link

Add support for MozillaTTS engine #95

Open flightmansam opened 2 months ago

flightmansam commented 2 months ago

This is a working PR so far it is a minimum viable product and lacks preferences.

How to run, install mozilla-tts with python as in these instructions (pip install TTS). Run the tts server (with default port, 5002), tts-server. There will be a small pause as the first query returns, but then should run smoothly

TODO:

ImperialSquid commented 2 months ago

Small fyi, ZoTTS can now do engine status error reporting if part of the initialisation goes wrong.

Check out the status reporting function for how it works (essentially, you should save a value to the optional errorMsg field, refer to WSA's init function for an example).

The messages you want to send should be registered in the localisation files, (the syntax is available here), if the engine has standard keys, using those would be good, but you can also add custom ones if you need to.