Skip to main content
POST
/
voice
/
speech-to-text
Speech to 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 model=pawa-stt-v1-20240701 \
  --form language=sw \
  --form 'prompt=Nipe maneno yaliyokwenye hii audio' \
  --form temperature=0.1 \
  --form file=@example-file
{
  "success": true,
  "message": "Audio transcribed succesfully",
  "data": {
    "text": "Hello, my name is Innocent Charles, welcome to Pawa AI"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file
required

Audio file to be transcribed. accepted formats: mp3, mpeg, wav

model
enum<string>
default:pawa-stt-v1-20240701
required
Available options:
pawa-stt-v1-20240701
Example:

"pawa-stt-v1-20240701"

language
string
Example:

"sw"

prompt
string
Example:

"Nipe maneno yaliyokwenye hii audio"

temperature
number
Example:

0.1

Response

Audio transcribed successfully

success
boolean
required
Example:

true

message
string
required
Example:

"Audio transcribed succesfully"

data
object
required
I