Poll the Result of the TTS
Once you've summited your TTS request, you'll want to poll the result from the node.
Last updated
Once you've summited your TTS request, you'll want to poll the result from the node.
Last updated
This endpoint retrieves the result of a TTS task based on the taskId. Which you get returned as a string prior in the /createTTS
Note please to avoid overloading the API that you should poll the endpoint every 1-2 seconds.
Post:
taskId
String
response structure:
errorId
Integer
For a successful request the errorId will be always 0, if there has been an error it will be above 0. The status is not affected by this.
status
String
The processing status of your request. "pending" = queued by the processing node "processing" = being processed by the processing node "completed" = TTS generation completed by node "failed" = Processing node failed to process TTS request
message
String
Contains description on the status of the request
audio_data
String
the audio data encoded as base64, decode it for use
successful response:
failed response:
The JobId for TTS request. should be acquired prior to making this request in the