A simple FastAPI Server to run Silero TTS
Credit goes to the developers of Silero TTS
Silero PyTorch Page
Silero GitHub Page
This is primarily to serve the TTS extension in SillyTavern. The TTS module or server can be used any way you wish.
Installation
pip install silero-api-server
Starting Server
python -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.
Selecting Language
Download and set the desired language using POST /tts/language with payload {"id":"languageId"}
List of language ids are available via GET /tts/language
Metadata
Release files for silero-api-server 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| silero_api_server-0.3.1.tar.gz | 6.2 kB | Without provenance | Details for silero_api_server-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| silero_api_server-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for silero_api_server-0.3.1-py3-none-any.whl |
Total release size: 13.1 kB
Release files / silero_api_server-0.3.1.tar.gz
| Download URL | silero_api_server-0.3.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d187b81e21d98bbf7a0a96cb8e6094432318e4df7e93249a08e56cd9f2ec2bde
|
|
BLAKE2b-256 checksum How to use checksums |
dd1d28895801d1bbe9e0d5d7d7b6ea29d2d8b039edd1f161f9237e659eba3734
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / silero_api_server-0.3.1-py3-none-any.whl
| Download URL | silero_api_server-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfef02793715222f32d15e5f03c1dee9781d06a71c5eb90fe0a6c95d7acb3305
|
|
BLAKE2b-256 checksum How to use checksums |
259a38bf2278d76e83b6f4d41625d4a684c509fdf22cbf49f58fe23a00f4c20d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for silero-api-server 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.