POST
/
api
/
v1
/
lightning
/
get_speech

Authorizations

Authorization
string
header
required

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

Body

application/json
text
string
required

The text to convert to speech.

voice_id
string
required

The voice identifier to use for speech generation.

add_wav_header
boolean
default:
false

Whether to add WAV header to the output.

sample_rate
integer
default:
24000

The sample rate for the generated audio.

Required range: 8000 < x < 24000
speed
number
default:
1

The speed of the generated speech.

Required range: 0.5 < x < 2

Response

200
audio/wav
Synthesized speech retrieved successfully.

A PCM int16 WAV file at the specified sample rate.