TTS API server to generate TTS with. It's function is to allow the use of SAPI TTS voices on Linux (or other systems that can't run SAPI). A device that's not able to run SAPI voices may make a POST Request to this server, and it will return a WAV file of spoken text.
This application uses Maki TTS, a TTS software made by BunnyTub, this will allow the use of 32bit and 64bit SAPI voices.
The only extra python module needed is flask.
You can install it using pip.
To run the server, simply start the SpeakyServer.py python script.
Endpoint: /tts
Method: POST
Content-type: application/json
Sample data to post:
{
"text": "Hello, I am a text to speech voice rendered on a server using SpeakyAPI.",
"voice_name": "voice_name"
}You will need to fill out 'text' and 'voice_name'.
If voice_name does not match anyone that's installed, server will produce with default voice.
Endpoint: /voices
Method: GET
Sample returned data:
[
"Microsoft David Desktop",
"Microsoft Zira Desktop",
"Microsoft Hazel Desktop",
]