TTS

Get a TTS request

GET
https://api.tunio.ai/v1/tts/requests/{request_id}

Get the state of a TTS request. audio_url is present only while the state is completed; the file is deleted and the state becomes expired 7 days after completion.

路径参数

名称类型说明
request_idRequiredstringRequest ID

响应

名称类型说明
requestobject
The TTS request.
audio_urlstring
CDN link to the file, present only while completed and not expired.
completed_atstring
When the request finished, successfully or not.
coststring
Cost in credits, as a decimal string: the estimate while pending or processing, the amount charged once completed, 0 when failed.
created_atstring
When the request was accepted.
durationinteger
Length of the audio in seconds, set once completed.
errorstring
Machine-readable failure code, set only when state is failed; null otherwise.
expires_atstring
When the audio file is deleted, 7 days after completion.
formatstring
Format of the resulting file.
model_idstring
Voice the text is spoken with.
request_idstring
Request ID.
speednumber
Tempo multiplier.
statestring
pending, processing, completed, failed or expired (audio removed 7 days after completion).
textstring
Text being synthesized.
successboolean
Always true.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.
名称类型说明
messagestring
Error code or human-readable error details.
successboolean
Always false for error payloads.