The Text to Speech (TTS) service converts written text into spoken audio in various Ugandan languages.Documentation Index
Fetch the complete documentation index at: https://sunbirdai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Available Voices
We provide specific speaker models for each language to ensure natural intonation and pronunciation.| ID | Language | Gender | Characteristics |
|---|---|---|---|
| 241 | Acholi | Female | Clear, moderate pace |
| 242 | Ateso | Female | Warm, expressive |
| 243 | Runyankole | Female | Soft, natural |
| 245 | Lugbara | Female | Clear articulation |
| 246 | Swahili | Male | Deep, authoritative |
| 248 | Luganda | Female | Natural, conversational |
Generating Speech
Use the/tasks/tts endpoint.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to convert to speech. |
speaker_id | integer | Yes | The ID of the voice to use (see table above). |
Example Request
Generating Luganda speech.Response
The response includes a URL to the generated audio file.The
audio_url is a temporary signed URL. You should download or stream the audio immediately.