Updated on 2025-09-12 GMT+08:00

Responses to Ending TTS

Function

After processing the synthesis request, the synthesis engine sends a synthesis end response. Upon receiving this response, the client closes the current WebSocket connection.

Response Parameters

Table 1 Response parameters

Parameter

Type

Description

resp_type

String

Response type. The value is END, indicating the end of voice synthesis.

trace_id

String

Internal token of the service, which can be used to trace a specific process in logs.

reason

String

End cause.

Table 2 End causes

Parameter

Description

NORMAL

The response ends properly.

ERROR

An error occurred during synthesis.

Example

{ 
    "resp_type": "END",
    "trace_id": "567e8537-a89c-13c3-a882-826321939651",
    "reason": "NORMAL"
} 

Status Codes

See Status Codes.

Error Codes

See Error Codes.