Skip to content

ApatheticDELL/SpeakyAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpeakyAPI

Created by ApatheticDELL

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.

Only made for Windows

Installation

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.

API

Generate TTS

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.

Get list of available voices

Endpoint: /voices
Method: GET
Sample returned data:

[
  "Microsoft David Desktop",
  "Microsoft Zira Desktop",
  "Microsoft Hazel Desktop",
]

About

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.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages