Lightning v2 (Deprecated)

View as Markdown
Get speech for given text using the Waves API

Authentication

AuthorizationBearer

Header authentication of the form Bearer <token>

Request

This endpoint expects an object.
textstringRequiredDefaults to Hey i am your a text to speech model
The text to convert to speech.
voice_idstringRequiredDefaults to malcom
The voice identifier to use for speech generation.
sample_rateintegerOptional8000-24000Defaults to 24000
The sample rate for the generated audio.
speeddoubleOptional0.5-2Defaults to 1
The speed of the generated speech.
consistencydoubleOptional0-1Defaults to 0.5
This parameter controls word repetition and skipping. Decrease it to prevent skipped words, and increase it to prevent repetition.
similaritydoubleOptional0-1Defaults to 0
This parameter controls the similarity between the generated speech and the reference audio. Increase it to make the speech more similar to the reference audio.
enhancementdoubleOptional0-2Defaults to 1
Enhances speech quality at the cost of increased latency.
languageenumOptionalDefaults to en
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_formatenumOptionalDefaults to pcm
The format of the output audio.
Allowed values:
pronunciation_dictslist of stringsOptional
The IDs of the pronunciation dictionaries to use for speech generation.

Response

Synthesized speech retrieved successfully.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error