Return payload for each CreateSpeech request

Constructors

Properties

content: string

If the request was successful, this will contain the results. For CreateSpeech requests, an audio file in a base 64 encoded string and for SpeechToText requests, the text that was transcribed.

data?: Buffer
errorMessage?: string

If the request failed, this will contain the error message

success: boolean

True if the request was successful, false otherwise