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 files='@example-file' \
--form model=pawa-stt-v1-20240701 \
--form language=English \
--form is_speaker_diarization=false \
--form 'prompt=Nipe maneno yaliyokwenye hii audio' \
--form temperature=0.1{
"success": true,
"message": "Audio transcribed succesfully",
"data": {
"transcriptions": [
{
"filename": "innocent.wav",
"transcript": "Hello, my name is Innocent Charles, welcome to Pawa AI"
}
]
}
}This endpoint converts a list files into text for each of one
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 files='@example-file' \
--form model=pawa-stt-v1-20240701 \
--form language=English \
--form is_speaker_diarization=false \
--form 'prompt=Nipe maneno yaliyokwenye hii audio' \
--form temperature=0.1{
"success": true,
"message": "Audio transcribed succesfully",
"data": {
"transcriptions": [
{
"filename": "innocent.wav",
"transcript": "Hello, my name is Innocent Charles, welcome to Pawa AI"
}
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
[Note: In real app you can upload mulitple or list files but here the docs allow only one for testing] . Audio files to be transcribed (max 10). Types accepted are: audio/mp3, audio/mpeg, audio/x-mp3, audio/wav, audio/wave, audio/x-wav, audio/x-pn-wav, audio/aac, audio/m4a, audio/x-m4a, audio/x-mp4, audio/ogg, audio/opus, audio/x-ms-wma, audio/wma
pawa-stt-v1-20240701 "pawa-stt-v1-20240701"
English, Swahili, Luo, Meru, Kamba, Kikuyu, Hausa, Igbo, Yoruba, Pidgin, Zulu, Tswana, Afrikaans, Xhosa, Nyankole, Ganda, Lugbara "English"
true, false false
"Nipe maneno yaliyokwenye hii audio"
0.1