AyaSpeech Logo

Text-to-Speech (TTS)

Generate natural-sounding speech from Twi text. Choose between male and female voices.

Endpoint

POST /synthesize

Request Body

FieldTypeDescription
textstring (required)Twi text to synthesize
voicestring (required)"male" or "female"

Example

curl -X POST "https://api.ayaspeech.ayadata.ai/synthesize" \
  -H "x-api-token: your_api_token" \
  -H "Content-Type: application/json" \
  -d '{"text": "Medɔ wo", "voice": "female"}' \
  --output speech.wav

Response

Returns a WAV audio file directly. Content-Type: audio/wav

Inference time is returned in the X-Inference-Time response header.

Limits

TierDaily RequestsMonthly Characters
Free315,000
Premium1,0002,000,000

Voices

VoiceDescription
femaleNatural female voice, clear pronunciation
maleNatural male voice