Lightning

Generate speech from text (Lightning)

Converts provided text to speech using the Lightning model.

post/api/v1/lightning/get_speech

Request body

textstring required

The text to convert to speech.

voice_idstring required

The voice identifier to use for speech generation.

sample_rateinteger

The sample rate for the generated audio.

speednumber

The speed of the generated speech.

language'en' | 'hi'

Determines how numbers are spelled out. If set to 'en', numbers will be read as individual digits in English. If set to 'hi', numbers will be read as individual digits in Hindi.

output_format'pcm' | 'mp3' | 'wav' | 'mulaw'

The format of the output audio.

Response

Synthesized speech retrieved successfully.

Changes