Server events for the Qwen-TTS-Realtime API.
Reference: Real-time speech synthesis - Qwen.
error
Sent for both client-side and server-side errors.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |
|
|
error The error details. |
session.created
Sent when a client connects. Includes the default session configuration.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |
|
|
session The session configuration. |
session.updated
Sent after the server successfully processes a session.update request. On error, an `error` event is sent instead.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |
|
|
session The session configuration. |
input_text_buffer.committed
Sent after the server receives an input_text_buffer.commit event.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |
|
|
item_id The ID of the user message item to create. |
input_text_buffer.cleared
The server’s response event after the client sends the input_audio_buffer.clear event.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |
response.created
The server sends this event after it receives an input_text_buffer.commit event from the client.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |
|
|
response The response details. |
response.output_item.added
Sent when a new output item is ready.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |
|
|
response_id The ID of the response. |
|
|
output_index The index of the response output item. This value is always 0. |
|
|
item The output item details. |
response.content_part.added
Sent when a new content part is ready.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |
|
|
response_id The ID of the response. |
|
|
item_id The ID of the message item. |
|
|
output_index The index of the response output item. This value is always 0. |
|
|
content_index The index of the content part within the response output item. This value is always 0. |
|
|
part The completed content part. |
response.audio.delta
Sent when the model generates new audio data incrementally.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |
|
|
response_id The ID of the response. |
|
|
item_id The ID of the message item. |
|
|
output_index The index of the response output item. This value is always 0. |
|
|
content_index The index of the content part within the response output item. This value is always 0. |
|
|
delta Audio data generated incrementally by the model. The data is Base64-encoded. |
response.content_part.done
Sent when a content part is complete.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |
|
|
response_id The ID of the response. |
|
|
item_id The ID of the message item. |
|
|
output_index The index of the response output item. This value is always 0. |
|
|
content_index The index of the content part within the response output item. This value is always 0. |
|
|
part The completed content part. |
response.output_item.done
Sent when an output item is complete.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |
|
|
response_id The ID of the response. |
|
|
output_index The index of the response output item. This value is always 0. |
|
|
item The output item details. |
response.audio.done
Sent when the model finishes generating audio data.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |
|
|
response_id The ID of the response. |
|
|
item_id The ID of the message item. |
|
|
output_index The index of the response output item. This value is always 0. |
|
|
content_index The index of the content part within the response output item. This value is always 0. |
response.done
Sent when response generation is complete. The `response` object contains all output items but excludes the already-sent raw audio data.
|
event_id The server-side event ID. |
Qwen3-TTS Realtime
Qwen-TTS Realtime
|
|
type The event type. This value is always |
|
|
response_id The ID of the response. |
|
|
response The response details. |
session.finished
Sent when all responses have been generated.
|
event_id The server-side event ID. |
|
|
type The event type. This value is always |