Spaces:
Paused
Paused
ChandimaPrabath
commited on
Commit
β’
47e852b
1
Parent(s):
d690791
update README.md
Browse files
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title: TTS
|
3 |
emoji: π
|
4 |
colorFrom: blue
|
5 |
colorTo: purple
|
@@ -9,4 +9,25 @@ app_file: app.py
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
title: TTS Server
|
3 |
emoji: π
|
4 |
colorFrom: blue
|
5 |
colorTo: purple
|
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
+
# TTS Server
|
13 |
+
|
14 |
+
The TTS (Text-to-Speech) Server is a Flask-based application that provides an API for synthesizing speech from text using various models. It supports multiple TTS models fetched from Hugging Face Model Hub.
|
15 |
+
|
16 |
+
## Features
|
17 |
+
|
18 |
+
- **Model Management**: Fetches available TTS models dynamically from Hugging Face Model Hub.
|
19 |
+
- **Speech Synthesis**: Converts text input into speech audio using selected models.
|
20 |
+
- **RESTful API**: Provides endpoints for fetching available models and synthesizing speech.
|
21 |
+
- **Error Handling**: Logs detailed error messages and returns appropriate HTTP status codes for easy debugging.
|
22 |
+
|
23 |
+
### Endpoints
|
24 |
+
|
25 |
+
- **`/models`**: GET request to fetch available TTS models.
|
26 |
+
|
27 |
+
Example response:
|
28 |
+
```json
|
29 |
+
[
|
30 |
+
{"repo_id": "csukuangfj/vits-piper-en_US-lessac-medium", "filename": "en_US-lessac-medium.onnx"},
|
31 |
+
{"repo_id": "csukuangfj/vits-piper-en_US-hfc_female-medium", "filename": "en_US-hfc_female-medium.onnx"},
|
32 |
+
{"repo_id": "csukuangfj/vits-piper-en_GB-southern_english_female-medium", "filename": "en_GB-southern_english_female-medium.onnx"}
|
33 |
+
]
|