Text to speech

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

Authentication

AuthorizationBearer

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

Request

This endpoint expects an object.
textstringRequired
The text to convert to speech.
voice_idstringRequired
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.
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.
Allowed values:
output_formatenumOptionalDefaults to pcm
The format of the output audio.
Allowed values:

Response

Synthesized speech retrieved successfully.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error