curl --request POST \
--url https://api.pawa-ai.com/v1/voice/speech-to-text \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form model=pawa-stt-v1-20240701 \
--form language=sw \
--form 'prompt=Nipe maneno yaliyokwenye hii audio' \
--form temperature=0.1{
"success": true,
"message": "Audio transcribed succesfully",
"data": {
"text": "Hello, my name is Innocent Charles, welcome to Pawa AI"
}
}This endpoint converts a single audio file into text
curl --request POST \
--url https://api.pawa-ai.com/v1/voice/speech-to-text \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form model=pawa-stt-v1-20240701 \
--form language=sw \
--form 'prompt=Nipe maneno yaliyokwenye hii audio' \
--form temperature=0.1{
"success": true,
"message": "Audio transcribed succesfully",
"data": {
"text": "Hello, my name is Innocent Charles, welcome to Pawa AI"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Audio file to be transcribed. accepted formats: mp3, mpeg, wav
pawa-stt-v1-20240701 "pawa-stt-v1-20240701"
"sw"
"Nipe maneno yaliyokwenye hii audio"
0.1