icevl / python-silero-http-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

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.

Usage

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"}'

About

License:MIT License


Languages

Language:Python 100.0%