Skip to main content
POST
Initiate a text to speech job

Authorizations

Authorization
string
header
required

Pass the API key in the Authorization header, You need to put Token keyword before the API key. e.g. 'Authorization: Token '

Body

application/json
voiceId
string

The voice id you wish to use. If you are using a cloned voice, you need to preload it first using preload cloned TTS voice API

text
string

The text you want to convert to speech.

Example:

"أهلاً و سهلاً بكم في همسة!"

webhookUrl
string<uri>

The webhook url to which the TTS job result will be sent.

webhookAuth
object

Authorization header to be sent in this format: Authorization: [authKey] [authSecret]

Response

Successful response

success
boolean
default:false
message
string
default:success
data
object