Similar to the speech-to-text system (see sttd).
The software enable to build complete local text-to-speech service and use it with critical data instead public services.
This is a fast, lightweight solution with simple web-api which not requires a special hardware (such as GPU) and able to run on regular servers.
Freeswitch javascript example: Simple IVR menu
Written in C, with libs:
lame,
speex DSP,
espeak,
onnx,
piper.
You won't depend on any online services, and spend money for subscription
There are open models for various languages
You don't need to purchase or rent some expensive hardware
There is already a ready-made module for integration with FreeSWITCH.
for details see: mod_sivr_tts
Takes a positive effect on performance and memory consumption
Enable to make easy integration with various applications
- wav
- mp3
- Linux
Request:
curl -q http://127.0.0.1:8802/v1/speech -X POST -H "Authorization: Bearer secret" -H "Content-Type: application/json; charset=utf-8" -d '{"language":"en","samplerate":8000,"foramt":"mp3","input":"Hello, how can I help you?"}'
The response will be as an mp3 stream that you can save or payback.