Skip to main content
POST
/
api
/
v1
/
lightning
/
get_speech
Generate speech from text (Lightning)
curl --request POST \
  --url https://waves-api.smallest.ai/api/v1/lightning/get_speech \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "<string>",
  "voice_id": "<string>",
  "sample_rate": 24000,
  "speed": 1,
  "language": "en",
  "output_format": "pcm"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Body

application/json
text
string
required
voice_id
string
required
sample_rate
integer
default:24000
Required range: 8000 <= x <= 24000
speed
number
default:1
Required range: 0.5 <= x <= 2
language
enum<string>
default:en
Available options:
en,
hi
output_format
enum<string>
default:pcm
Available options:
pcm,
mp3,
wav,
mulaw

Response