updated readme
Browse files
README.md
CHANGED
|
@@ -4,13 +4,22 @@ Supported Languages: Assamese, Bengali, Bodo, Gujarati, Hindi, Kannada, Malayala
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# Fastspeech2_HS_Flask_API
|
| 7 |
-
Flask API implementation of the Text to Speech Model developed my Speech Lab, IIT Madras.
|
| 8 |
|
| 9 |
-
|
|
|
|
|
|
|
| 10 |
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
```
|
| 16 |
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.python.sh | bash
|
|
@@ -18,88 +27,60 @@ sudo apt-get install git-lfs
|
|
| 18 |
git lfs install
|
| 19 |
```
|
| 20 |
|
| 21 |
-
The
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
Clone the huggingface repo below
|
| 24 |
```
|
| 25 |
git clone https://huggingface.co/k-m-irfan/Fastspeech2_HS_Flask_API
|
| 26 |
```
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
|
| 29 |
```
|
| 30 |
models
|
| 31 |
-
βββ assamese
|
| 32 |
-
β βββ female
|
| 33 |
-
β βββ male
|
| 34 |
-
βββ bengali
|
| 35 |
-
β βββ female
|
| 36 |
-
β βββ male
|
| 37 |
-
βββ bodo
|
| 38 |
-
β βββ female
|
| 39 |
-
βββ english
|
| 40 |
-
β βββ female
|
| 41 |
-
β βββ male
|
| 42 |
-
βββ gujarati
|
| 43 |
-
β βββ female
|
| 44 |
-
β βββ male
|
| 45 |
βββ hindi
|
| 46 |
β βββ female
|
| 47 |
β βββ male
|
| 48 |
-
βββ kannada
|
| 49 |
-
β βββ female
|
| 50 |
-
β βββ male
|
| 51 |
-
βββ malayalam
|
| 52 |
-
β βββ female
|
| 53 |
-
β βββ male
|
| 54 |
-
βββ manipuri
|
| 55 |
-
β βββ female
|
| 56 |
-
β βββ male
|
| 57 |
-
βββ marathi
|
| 58 |
-
β βββ female
|
| 59 |
-
β βββ male
|
| 60 |
-
βββ odia
|
| 61 |
-
β βββ female
|
| 62 |
-
β βββ male
|
| 63 |
-
βββ punjabi
|
| 64 |
-
β βββ female
|
| 65 |
-
β βββ male
|
| 66 |
-
βββ rajasthani
|
| 67 |
-
β βββ female
|
| 68 |
-
β βββ male
|
| 69 |
βββ tamil
|
| 70 |
β βββ female
|
| 71 |
β βββ male
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
βββ
|
| 76 |
βββ female
|
| 77 |
βββ male
|
| 78 |
```
|
| 79 |
|
| 80 |
-
Installation:
|
| 81 |
|
| 82 |
-
|
| 83 |
```
|
| 84 |
python3 -m venv tts-hs-hifigan
|
| 85 |
source tts-hs-hifigan/bin/activate
|
| 86 |
```
|
| 87 |
-
|
|
|
|
| 88 |
```
|
| 89 |
pip install -r requirements.txt
|
| 90 |
```
|
| 91 |
-
|
|
|
|
|
|
|
| 92 |
```
|
| 93 |
python3 flask_app.py
|
| 94 |
# OR
|
| 95 |
gunicorn -w 2 -b 0.0.0.0:5000 flask_app:app --timeout 600
|
| 96 |
```
|
| 97 |
-
|
|
|
|
| 98 |
```
|
| 99 |
bash start.sh
|
| 100 |
```
|
| 101 |
|
| 102 |
-
### Citation
|
| 103 |
If you use this Fastspeech2 Model in your research or work, please consider citing:
|
| 104 |
|
| 105 |
β
|
|
|
|
| 4 |
---
|
| 5 |
|
| 6 |
# Fastspeech2_HS_Flask_API
|
|
|
|
| 7 |
|
| 8 |
+
This repository contains the Flask API implementation of the Text to Speech Model developed by the Speech Lab at IIT Madras.
|
| 9 |
+
For a comprehensive understanding of the models and inference details, please consult the original repository
|
| 10 |
+
[Fastspeech2_HS](https://github.com/smtiitm/Fastspeech2_HS).
|
| 11 |
|
| 12 |
+
### Table of Contents
|
| 13 |
+
- [Setup](#setup)
|
| 14 |
+
- [Installation](#installation)
|
| 15 |
+
- [Run Flask server](#run-flask-server)
|
| 16 |
+
- [Citation for the original repo](#citation-for-the-original-repo)
|
| 17 |
|
| 18 |
+
### Setup
|
| 19 |
+
Some of the large files in this repo are uploaded using git lfs. Install latest git LFS by following the given commands:
|
| 20 |
+
|
| 21 |
+
Some of the large files in this repository have been uploaded using Git-LFS.
|
| 22 |
+
To ensure seamless handling of these files, please install Git-LFS by executing the provided commands:
|
| 23 |
|
| 24 |
```
|
| 25 |
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.python.sh | bash
|
|
|
|
| 27 |
git lfs install
|
| 28 |
```
|
| 29 |
|
| 30 |
+
The entire repository, including the models, has been uploaded to Hugging Face
|
| 31 |
+
"[Fastspeech2_HS_Flask_API](https://huggingface.co/k-m-irfan/Fastspeech2_HS_Flask_API)" due to size restrictions on GitHub for Git LFS.
|
| 32 |
+
To clone the repository from Hugging Face, please use the following command:
|
| 33 |
|
|
|
|
| 34 |
```
|
| 35 |
git clone https://huggingface.co/k-m-irfan/Fastspeech2_HS_Flask_API
|
| 36 |
```
|
| 37 |
+
|
| 38 |
+
Alternatively, you can download the models from the original repository [Fastspeech2_HS](https://github.com/smtiitm/Fastspeech2_HS)
|
| 39 |
+
and organize the folder structure as specified below. Skip this step if already cloned the repository from Hugging Face.
|
| 40 |
|
| 41 |
```
|
| 42 |
models
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
βββ hindi
|
| 44 |
β βββ female
|
| 45 |
β βββ male
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
βββ tamil
|
| 47 |
β βββ female
|
| 48 |
β βββ male
|
| 49 |
+
.
|
| 50 |
+
.
|
| 51 |
+
.
|
| 52 |
+
βββ marathi
|
| 53 |
βββ female
|
| 54 |
βββ male
|
| 55 |
```
|
| 56 |
|
| 57 |
+
### Installation:
|
| 58 |
|
| 59 |
+
Create a virtual environment and activate it:
|
| 60 |
```
|
| 61 |
python3 -m venv tts-hs-hifigan
|
| 62 |
source tts-hs-hifigan/bin/activate
|
| 63 |
```
|
| 64 |
+
|
| 65 |
+
Install the required dependencies by running:
|
| 66 |
```
|
| 67 |
pip install -r requirements.txt
|
| 68 |
```
|
| 69 |
+
|
| 70 |
+
### Run Flask server:
|
| 71 |
+
Ensure the server application is running correctly before proceeding. Use the following commands and check for any errors:
|
| 72 |
```
|
| 73 |
python3 flask_app.py
|
| 74 |
# OR
|
| 75 |
gunicorn -w 2 -b 0.0.0.0:5000 flask_app:app --timeout 600
|
| 76 |
```
|
| 77 |
+
|
| 78 |
+
If the application is running without any issues, proceed to start the server using the following command:
|
| 79 |
```
|
| 80 |
bash start.sh
|
| 81 |
```
|
| 82 |
|
| 83 |
+
### Citation for the original repo
|
| 84 |
If you use this Fastspeech2 Model in your research or work, please consider citing:
|
| 85 |
|
| 86 |
β
|