Server events
Server-side events for the qwen3.5-livetranslate-flash-realtime API.
Reference: Real-time audio and video translation - Qwen
error
Error message returned by the server.
|
event_id The unique identifier for this event. |
|
|
type The event type. The value is always |
|
|
error Detailed information about the error. |
session.created
When a client connects, the server returns this event first with the default session configurations.
|
event_id The unique identifier for this event. |
|
|
type The event type. The value is always |
|
|
session The session configuration. |
session.updated
Returned after a successful session.update request. If the request fails, an error event is returned instead.
|
event_id The unique identifier for this event. |
|
|
type The event type. The value is always |
|
|
session The session configuration. |
session.finished
Session is finished and all audio translations are complete.
Sent only after the client sends a session.finish request. The client can then disconnect.
|
event_id The unique identifier for this event. |
|
|
type The event type. The value is always |
response.created
Returned when the server generates a new model response.
|
event_id The unique identifier for this event. |
|
|
type The event type. The value is always |
|
|
response The response object. |
response.done
Returned after response generation is complete. Contains all output items except raw audio data.
|
event_id The unique identifier for this event. |
|
|
type The event type. The value is always |
|
|
response The response object. |
response.text.text
Returned for text-only output when the model generates text incrementally.
|
event_id A unique identifier for the event. |
|
|
type The type of the event. The value is always |
|
|
text The incremental text that is returned. |
|
|
response_id The response ID. |
|
|
item_id A unique identifier for the message item. |
|
|
output_index Currently, the value is always 0. |
|
|
content_index Currently, the value is always 0. |
|
|
stash Temporary text generated by the model. Concatenate |
response.text.done
Returned when text generation finishes for text-only output, or if the response is interrupted, incomplete, or canceled.
|
event_id The unique identifier for this event. |
|
|
type The event type. The value is always |
|
|
response_id The unique identifier for the response. |
|
|
item_id The unique identifier for the message item. |
|
|
output_index The value is currently always 0. |
|
|
content_index The value is currently always 0. |
|
|
text The complete text output from the model. |
response.audio.delta
Returned when audio output is enabled and the model generates audio incrementally.
|
event_id A unique identifier for the event. |
|
|
type The event type. The value is always |
|
|
response_id A unique identifier for the response. |
|
|
item_id A unique identifier for the message item. |
|
|
output_index integer The value is always 0. |
|
|
content_index The value is always 0. |
|
|
delta The incremental audio data that is output by the model. The data is Base64-encoded. |
response.audio.done
Returned when audio generation is complete. Also returned if the response is interrupted, incomplete, or canceled. Does not contain complete audio data.
|
event_id The unique identifier for this event. |
|
|
type The event type. This is always |
|
|
response_id The unique identifier for the response. |
|
|
item_id The unique identifier for the message item. |
|
|
output_index The value is always 0. |
|
|
content_index The value is always 0. |
conversation.item.input_audio_transcription.text
When input_audio_transcription.model is configured, the server streams speech recognition results in the original source language.
|
event_id The unique identifier for this event. |
|
|
type The event type. The value is always |
|
|
item_id The unique identifier for the message item. |
|
|
content_index The value is currently always 0. |
|
|
text The confirmed recognition text. |
|
|
stash The recognition text that is pending confirmation. This text may be corrected by subsequent events. |
|
|
language The detected source language. |
conversation.item.input_audio_transcription.completed
When input_audio_transcription.model is configured, returns the final recognition result after speech recognition completes.
|
event_id The unique identifier for this event. |
|
|
type The event type. This is always |
|
|
item_id The unique identifier for the message item. |
|
|
content_index This is currently always 0. |
|
|
transcript The complete speech recognition result in the original source language. |
|
|
language The detected source language. |
response.audio_transcript.text
Returned for audio output to display real-time translation.
|
event_id The unique identifier for this event. |
|
|
type The type of the event. The value is always |
|
|
response_id The unique identifier for the response. |
|
|
item_id The unique identifier for the message item. |
|
|
output_index Currently, the value is always 0. |
|
|
content_index Currently, the value is always 0. |
|
|
text The confirmed translation text segment. |
|
|
stash Temporary translation text, concatenated with |
response.audio_transcript.done
Returned when audio output is enabled and text generation finishes.
|
event_id The unique identifier for this event. |
|
|
type The event type. This is always |
|
|
response_id The unique identifier for the response. |
|
|
item_id The unique identifier for the message item. |
|
|
output_index This is currently always 0. |
|
|
content_index This is currently always 0. |
|
|
transcript The complete text. |
response.output_item.added
Returned when a new output item is added during response generation.
|
event_id The unique identifier for this event. |
|
|
type The event type. The value is always |
|
|
response_id The unique identifier for the response. |
|
|
output_index The value is currently always 0. |
|
|
item Information about the output item. |
response.output_item.done
Returned when an output item is completed.
|
event_id The unique identifier for this event. |
|
|
type The event type. The value is always |
|
|
response_id The unique identifier for the response. |
|
|
output_index The value is currently always 0. |
|
|
item Information about the output item. |
response.content_part.added
Returned when a new content part is added.
|
event_id The unique ID of the event. |
|
|
type The type of the event. The value is always |
|
|
response_id The unique ID of the response. |
|
|
item_id The unique ID of the message item. |
|
|
output_index The value is always 0. |
|
|
content_index The value is always 0. |
|
|
part Outputs item information. |
response.content_part.done
Returned when a content part is completed.
|
event_id The unique identifier for this event. |
|
|
type The event type. This is always |
|
|
response_id The unique identifier for the response. |
|
|
item_id The unique identifier for the message item. |
|
|
output_index The value is always 0. |
|
|
content_index The value is always 0. |
|
|
part Information about the content part. |