Convert any amount to spoken words in 19 African languages.
curl -X POST https://maika.uac.bj/api/compose \
-H "Content-Type: application/json" \
-d '{"lang":"fon","amount":7500}'| Field | Type | Required | Description |
|---|---|---|---|
| lang | string | ✓ | Language code (fon, swa, yor…) |
| amount | number | ✓ | Amount as a JSON number, not a string |
| Field | Type | Description |
|---|---|---|
| lang | string | Language code echoed back |
| amount | number | Amount echoed back |
| atoms | string[] | Word pieces — each maps to an audio file /audio/{lang}/{atom}.wav |
| text | string | Human-readable result |
| currency | string | Currency for this language (FCFA, USD…) |
| name | string | Language name |
| region | string | Geographic region |
| live | boolean | true if audio WAV files are available |
| HTTP | Reason |
|---|---|
| 400 | Missing lang or amount — or amount is not a number |
| 404 | Unknown language code |
| 405 | Method not allowed — use POST |
| 422 | Amount out of range for this language |
| 500 | Internal composition error |
| Code | Language | Region | Audio |
|---|---|---|---|
| fon | Fongbé | Bénin | 🔊 live |
| gun | Goungbé | Bénin | 🔊 live |
| min | Mina | Bénin / Togo | 🔊 live |
| adj | Adja | Bénin | 🔊 live |
| den | Dendi | Bénin | 🔊 live |
| yor | Yorùbá | Nigeria / Bénin | 🔊 live |
| amh | አማርኛ | Éthiopie | 🔊 live |
| oro | Afaan Oromo | Éthiopie | 🔊 live |
| ara | Arabic | Afrique du Nord | 🔊 live |
| eng | English | International | 🔊 live |
| fre | Français | International | 🔊 live |
| hau | Haoussa | Afrique de l'Ouest | 🔊 live |
| swa | Kiswahili | Afrique de l'Est | 🔊 live |
| bam | Bamanankan | Mali | 🔊 live |
| ful | Fulfulde | Sahel | 🔊 live |
| dio | Dioula | Mali / Côte d'Ivoire | 📝 text |
| kri | Kriolu | Cabo Verde | 📝 text |
| lin | Lingala | RDC / Congo | 📝 text |
| wol | Wolof | Sénégal | 📝 text |