This is a simple script that launches a web server, listens for POST requests on port 10000, and responds with an audio file generated by a Text-to-Speech (TTS) model silero-models with PyTorch.
pip install -r requirements.txt
python3 server.py
curl -X POST http://127.0.0.1:10000 -H 'Content-Type: application/json' -d '{"text":"Message"}'