Skip to content

Commit

Permalink
chore: add docker hub description
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPandir authored Feb 13, 2024
1 parent a5dc569 commit 6aebf19
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/dockerhub-description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Update Docker Hub Description
on:
push:
branches:
- main
paths:
- docker/README.md
- .github/workflows/dockerhub-description.yml
jobs:
docker-description:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKER_REGISTRY_LOGIN }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}
repository: twirapp/silero-tts-api-server
short-description: ${{ github.event.repository.description }}
readme-filepath: docker/README.md
enable-url-completion: true
69 changes: 69 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<!-- Created in https://leviarista.github.io/github-profile-header-generator/ -->
![Header](.github/header.png)

[Github Repository](https://github.com/TwirApp/silero-tts-api-server)

# Languages supported

All models are from the repository: [snakers4/silero-models](https://github.com/snakers4/silero-models)

| Language | Model | Speakers |
|--------|--------|--------|
| Russian | v4_ru | 5: aidar, baya, kseniya, xenia, eugene |
| Ukrainian | v4_ua | 1: mykyta |
| Uzbek | v4_uz | 1: dilnavoz |
| English | v3_en | 118: en_0, en_1, ..., en_117 |
| Spanish | v3_es | 3: es_0, es_1, es_2 |
| French | v3_fr | 6: fr_0, fr_1, fr_2, fr_3, fr_4, fr_5 |
| German | v3_de | 5: bernd_ungerer, eva_k, friedrich, hokuspokus, karlsson |
| Tatar | v3_tt | 1: dilyara |
| Mongolian | v3_xal | 2: erdni, delghir |

All languages support sample rate: 8 000, 24 000, 48 000

# How to use this image
```bash
docker run --rm -p 8000:8000 twirapp/silero-tts-api-server
```

## Here is an example using docker-compose.yml:
```yml
version: '3'
services:
app:
image: twirapp/silero-tts-api-server
ports:
- "8000:8000"
environment:
- TEXT_LENGTH_LIMIT=930
- MKL_NUM_THREADS=8
```
## Environment variables:
- TEXT_LENGTH_LIMIT: Maximum length of the text to be processed. Default is 930 characters.
- MKL_NUM_THREADS: Number of threads to use for generating audio. Default number of threads: number of CPU cores.
# Documentation
You can view the automatically generated documentation based on OpenAPI at:
| Provider | Url |
|--------|--------|
| [ReDoc](https://redocly.com/redoc) | https://localhost:8000/schema |
| [Swagger UI](https://swagger.io) | https://localhost:8000/schema/swagger |
| [Stoplight Elements](https://stoplight-site.webflow.io/open-source/elements) | https://localhost:8000/schema/elements |
| [RepiDoc](https://rapidocweb.com) | https://localhost:8000/schema/repidoc |
| OpenAPI schema yaml | https://localhost:8000/schema/openapi.yaml |
| OpenAPI schema json | https://localhost:8000/schema/openapi.json |
# Endpoints
- `GET` `/generate` - Generate audio in wav format from text
- `GET` `/speakers` - Get list of speakers

# Considerations for the future
This repository is dedicated to twir.app and is designed to meet its requirements.

TwirApp needs to generate audio using the CPU. If support for other devices such as cuda or mps is needed, please [open an issue](https://github.com/twirapp/silero-tts-api-server/issues/new?title=Support%20for%20%60cuba%60%20and%20%60mps%60%20devices).

As of now, there are no immediate plans to update the project to Python 3.12 or higher. However, feel free to [create an issue](https://github.com/twirapp/silero-tts-api-server/issues/new?title=Support%20python%203.12%20and%20higher), and I will reconsider this decision.

0 comments on commit 6aebf19

Please sign in to comment.