Skip to main content
POST
/
audio
/
speech
Generate speech
curl --request POST \
  --url https://api.ai-stats.phaseo.app/v1/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "input": "<string>",
  "voice": "<string>",
  "format": "mp3"
}
'
"<string>"

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
model
string
required
input
string
required
voice
string
format
enum<string>
Available options:
mp3,
wav,
ogg,
aac

Response

200 - audio/mpeg

Audio file

The response is of type file.