Skip to main content
POST
/
audio
/
speech
Create speech
curl --request POST \
  --url https://app2.freyavoice.ai/api/v2/audio/speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": "<string>",
  "voice": "leyla",
  "model": "freya-audio-v1",
  "response_format": "wav"
}
'
"<string>"

Authorizations

Authorization
string
header
required

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

Body

application/json
input
string
required

Text to synthesize

voice
enum<string>
required

Voice to use

Available options:
leyla
model
enum<string>
default:freya-audio-v1

Freya speech model

Available options:
freya-audio-v1
response_format
enum<string>
default:wav
Available options:
wav

Response

Audio stream

The response is of type file.