Simple FastAPI app to server Dhivehi.ai pretrained TTS models.
git clone https://github.com/ashraq1455/DhivehiTTS-http.git- Download dhivehi.ai pre-trained models from here
- Extract and copy the models to
models/female/andmodels/male/directory pip install -r requirements.txtpython main.pyto run development server
|- models/
|- female/
|- tts.saved_model
|- vocoder.saved_model
|- male/
|- tts.saved_model
|- vocoder.saved_model
|- __init__.py
|- tts.py
|- main.py
Send a GET request to http://localhost:8000/predict/?text=ހެލޯ ދިވެހި&voice=female&speed=0.9
There's a simple Dockerfile included to setup a quick deployment for testing
to use,
- 'docker build --tag tts-dv .'
- 'docker run -it --rm -p 8000:8000 tts-dv'