Speech-to-Text (ASR)
Convert spoken audio to text. Supports Twi.
Endpoint
POST /transcribe
Request
Send audio as a multipart form upload. Supported formats: WAV, MP3, FLAC, OGG.
| Parameter | Type | Description |
|---|---|---|
| audio_file | file (required) | Audio file to transcribe |
Example
curl -X POST "https://api.ayaspeech.ayadata.ai/transcribe" \ -H "x-api-token: your_api_token" \ -F "audio_file=@recording.wav"
Response
{
"text": "Medaase paa, me din de Kwame",
"language": "twi",
"inference_time_ms": 1234.5
}Limits
| Tier | Daily Requests | Monthly Minutes |
|---|---|---|
| Free | 3 | 30 |
| Premium | 500 | 3,000 |