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.txt
python main.py
to 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