A simple FastAPI server to host Silero TTS
Project description
A simple FastAPI Server to run Silero TTS
Silero PyTorch Page Silero GitHub Page
Installation
pip install silero-api-server
Starting Server
py -m silero_api_server
will run on default ip and port (0.0.0.0:8001)
usage: silero_api_server [-h] [-o HOST] [-p PORT]
Run Silero within a FastAPI application
options:
-h, --help show this help message and exit
-o HOST, --host HOST
-p PORT, --port PORT
On first run of server, two operations occur automatically. These may take a minute or two.
- The model will be downloaded
- Voice samples will be generated.
API Docs
API Docs can be accessed from http://localhost:8001/docs
Voice Samples
Samples are served statically by the web server at /samples/{speaker}.wav
or callable from the API from /tts/sample?speaker={speaker}
endpoint.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for silero_api_server-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 463cbf5bbb9ef5760965e2c6d39040dc56433ae45bb725f5d39b623c0866d4b9 |
|
MD5 | 1eebde424591c9110d59696afec0daf6 |
|
BLAKE2b-256 | 63024a76b4d181d6ea10d15d02538185774abd506e084145eca7e8b7915a7db9 |