| title: Nigerian TTS API | |
| emoji: 🎙️ | |
| colorFrom: green | |
| colorTo: blue | |
| sdk: gradio | |
| sdk_version: 5.0.0 | |
| app_file: app.py | |
| pinned: false | |
| license: mit | |
| hardware: t4-small | |
| # Nigerian TTS API | |
| YarnGPT-based TTS service for Nigerian languages (English, Yoruba, Igbo, Hausa, Pidgin). | |
| ## API Usage | |
| ```python | |
| import httpx | |
| response = httpx.post( | |
| "https://ubuntufarms-nigerian-tts-api.hf.space/api/tts", | |
| json={"text": "Hello, how are you?", "speaker": "idera", "language": "english"} | |
| ) | |
| audio = response.content # WAV audio bytes | |
| ``` | |
| ## Available Speakers | |
| - **English/Pidgin**: idera, emma, tayo, jude, chinenye | |
| - **Yoruba**: yoruba_female1, yoruba_male1 | |
| - **Igbo**: igbo_female1 | |
| - **Hausa**: hausa_female1 | |
| ## Languages | |
| - english | |
| - yoruba | |
| - igbo | |
| - hausa | |