POST
/
api
/
v1
/
{model}
/
get_speech
curl --request POST \
  --url https://waves-api.smallest.ai/api/v1/{model}/get_speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "voice_id": "arman",
  "text": "<string>",
  "speed": 1,
  "sample_rate": 24000,
  "add_wav_header": true
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

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

Headers

Authorization
string
required

Bearer token for authentication. Format is 'Bearer {token}'

Path Parameters

model
enum<string>
required

The model to use for speech synthesis. Currently, only 'lightning' is available.

Available options:
lightning,
lightning-large

Body

application/json
voice_id
required

Voice ID for the 'lightning' model

Available options:
arman,
diya,
raman,
ananya,
aarav,
shrishti,
niharika,
deepika,
raghav,
kajal,
mansi,
nisha,
saurabh,
pooja,
saina,
sanya,
aravind,
mithali,
raj,
james,
jasmine,
emily,
arnav,
george,
chetan,
ankur,
enola,
judi,
rebecca,
abhinav,
sushma,
ashish,
shweta,
karen
text
string
required

The text to be synthesized into speech

speed
number
default:
1

The speed for generated speech, Allowed range 0.5 - 2.

Required range: 0.5 < x < 2
sample_rate
enum<integer>
default:
24000

Sample rate of the output audio file. Allowed values are 8000, 16000, or 24000.

Available options:
8000,
16000,
24000
add_wav_header
boolean
default:
true

Whether to add a WAV header or not

Response

200
audio/wav
Synthesized speech retrieved successfully

A PCM int16 WAV file at the specified frequency.