Parameter | Type | Description |
type | string | The value is fixed at response.done. |
response | object | The response object. |
response.id | string | The unique ID of the response. |
response.object | string | The object type. The value is fixed at realtime.response. |
response.output | array | The output of the response. |
response.usage | object | The billing details for the speech synthesis. |
response.usage.characters | integer | The number of billable characters for Qwen3-TTS Realtime. |
response.usage.total_tokens | integer | The total number of tokens for the Qwen-TTS Realtime input and output (synthesized audio). |
response.usage.input_tokens | integer | The total number of tokens for the Qwen-TTS Realtime input. |
response.usage.output_tokens | integer | The total number of tokens for the Qwen-TTS Realtime output. |
response.usage.input_tokens_details | integer | Details of the tokens in the Qwen-TTS Realtime input. |
response.usage.input_tokens_details.text_tokens | integer | The total number of tokens for the Qwen-TTS Realtime text input. |
response.usage.output_tokens_details | integer | Details of the tokens in the Qwen-TTS Realtime output. |
response.usage.output_tokens_details.text_tokens | integer | The total number of tokens for the Qwen-TTS Realtime text output. |
response.usage.output_tokens_details.audio_tokens | integer | The total number of tokens for the Qwen-TTS Realtime audio output. The audio is converted to tokens at a rate of 50 tokens per second. Audio with a duration of less than one second is counted as 50 tokens. |