MaaS-Arealtime-asr
Request Protocol
Http
| Parameter |
Type |
Description |
| Authorization |
string |
Authentication token |
Request Path
https://genaiapi.cloudsway.net/v1/ai/{endpoint}/audio/recognize
| Parameter |
Type |
Description |
| file |
file |
Audio file to be recognized, maximum duration of 30 seconds |
| recognitionLanguages |
string |
Possible languages of the audio, separated by commas. Example: en-US,es-MX |
| timeout |
string |
Speech interval timeout |
Request Example
curl --location 'https://genaiapi.cloudsway.net/v1/ai/QEnOdgDqcLVKmTCP/audio/recognize' \
--header 'Authorization: Bearer ${AccessKey}' \
--header 'Connection: keep-alive' \
--form 'file=@path/to/your/audio/file' \
--form 'recognitionLanguages="en-US,es-MX"' \
--form 'timeout="100"'
Response
| Parameter |
Type |
Description |
| text |
string |
Recognized audio text |
| language |
string |
Recognized audio language |
| duration |
int |
Audio duration in units |
| durationInSeconds |
int |
Audio duration in seconds |
Example
{
"text": "Cuando abrió los ojos por la mañana fue porque una joven empleada doméstica había entrado en su habitación para encender el fuego.",
"language": "es-MX",
"duration": 65200000,
"durationInSeconds": 7
}
Supported Languages
| Language |
Locale (BCP-47) |
| Arabic |
ar-AE, ar-BH, ar-DZ, ar-EG, ar-IQ, ar-JO, ar-KW, ar-LY, ar-MA, ar-OM, ar-QA, ar-SA, ar-SY, ar-YE |
| Danish |
da-DK |
| Dutch |
nl-NL |
| English |
en-AU |
| Estonian |
et-EE |
| Finnish |
fi-FI |
| French |
fr-CA, fr-FR |
| German |
de-DE |
| Greek |
el-GR |
| Gujarati |
gu-IN |
| Hebrew |
he-IL |
| Hindi |
hi-IN |
| Hungarian |
hu-HU |
| Indonesian |
id-ID |
| Bengali |
bn-IN |
| Bulgarian |
bg-BG |
| Catalan |
ca-ES |
| Chinese |
zh-CN, zh-HK, zh-TW |
| Croatian |
hr-HR |
| Czech |
cs-CZ |
| Irish |
ga-IE |
| Italian |
it-IT |
| Japanese |
ja-JP |
| Kannada |
kn-IN |
| Malayalam |
ml-IN |
| Korean |
ko-KR |
| Latvian |
lv-LV |
| Lithuanian |
lt-LT |
| Maltese |
mt-MT |
| Marathi |
mr-IN |
| Norwegian |
nb-NO |
| Polish |
pl-PL |
| Portuguese |
pt-BR, pt-PT |
| Romanian |
ro-RO |
| Russian |
ru-RU |
| Slovak |
sk-SK |
| Slovenian |
sl-SI |
| Spanish |
es-AR, es-BO, es-CL, es-CO, es-CR, es-CU, es-DO, es-EC, es-SV, es-GQ, es-GT, es-HN, es-MX, es-NI, es-PA, es-PY, es-PE, es-PR, es-ES, es-UY, es-US, es-VE |
| Swedish |
sv-SE |
| Tamil |
ta-IN |
| Telugu |
te-IN |
| Thai |
th-TH |
| Turkish |
tr-TR |
| Ukrainian |
uk-UA |
| Vietnamese |
vi-VN |