/srttss

Second Rate (Text To Speech) TTS Server - REST interface

Primary LanguagePythonApache License 2.0Apache-2.0

SRTTSS - Second Rate (Text To Speech) TTS Server - REST interface

Getting Started

If installing/working with a source checkout issue:

pip install -r requirements.txt

Run:

python tts_server.py

Then open a browser to:

Curl/wget may not work (curl -L needed for redirects).

curl 'http://127.0.0.1:5000/api/tts?text=nein&voice=google_translate:de'
curl 'http://127.0.0.1:5000/api/tts?text=no&voice=espeak:en'

Google Translate emulator - no control over TTS engine used, requires eSpeak:

Curl/wget does work:

wget 'http://127.0.0.1:5000/translate_tts?q=hello+world'
curl 'http://127.0.0.1:5000/translate_tts?q=hello+world'

What can this be used for?

What ever you want or can think of (hopefully for good rather than evil...).

One use case is as an output target for https://github.com/mqtt-tools/mqttwarn/blob/main/docs/notifier-catalog.md#chromecast

Future ideas