Skip to main content

A simple FastAPI server to host Silero TTS

Project description

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.

  1. The model will be downloaded
  2. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

silero_api_server-0.3.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

silero_api_server-0.3.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file silero_api_server-0.3.1.tar.gz.

File metadata

  • Download URL: silero_api_server-0.3.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for silero_api_server-0.3.1.tar.gz
Algorithm Hash digest
SHA256 d187b81e21d98bbf7a0a96cb8e6094432318e4df7e93249a08e56cd9f2ec2bde
MD5 05ea553d7775c35edfaaa4037266f759
BLAKE2b-256 dd1d28895801d1bbe9e0d5d7d7b6ea29d2d8b039edd1f161f9237e659eba3734

See more details on using hashes here.

File details

Details for the file silero_api_server-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for silero_api_server-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dfef02793715222f32d15e5f03c1dee9781d06a71c5eb90fe0a6c95d7acb3305
MD5 783ec0ff1ab1b14195f99a7ed81b7fcc
BLAKE2b-256 259a38bf2278d76e83b6f4d41625d4a684c509fdf22cbf49f58fe23a00f4c20d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page