Event Type | Value |
Live subtitles | event_type = 338 |
Parameter | Type | Description |
t | int64 | Expiration time, which is the Unix timestamp when the event notification signature expires. The default validity period of a callback notification from Tencent Cloud is 10 minutes. If the time specified by the t value in a notification has elapsed, then this notification is considered invalid. This prevents network replay attacks.The value of t is a decimal Unix timestamp, that is, the number of seconds that have elapsed since 00:00:00 (UTC/GMT time), January 1, 1970. |
sign | string | Security signature. sign = MD5(key + t). Tencent Cloud splices the encryption key and t, generates the MD5 hash of the spliced string, and embeds it in callback messages. Your backend server can perform the same calculation when it receives a callback message. If the signature matches, it indicates the message is from Tencent Cloud. |

Parameter | Type | Description |
appid | int | |
stream_id | string | Live stream name. |
channel_id | string | Same as the live stream name. |
task_id | string | Subtitle task ID. |
data | Process the results. |
Parameter | Type | Description |
subtitle_tmp_res | Subtitle text results. |
Parameter | Type | Description |
src_txt | string | Original audio recognition text. |
dst_txt | string | The translated text. If no translation is configured, this value is not returned. |
start_pts | int64 | src_txt corresponds to the timestamp starting point of the audio stream, in milliseconds (ms). |
end_pts | int64 | src_txt corresponds to the timestamp end point of the audio stream, in milliseconds (ms). |
start_unix_time | int64 | src_txt corresponds to the UNIX time starting point of the live broadcast. |
end_unix_time | int64 | src_txt corresponds to the UNIX time end point of the live broadcast. |
steady_state | bool | Steady state flag: When true, it indicates that the sentence has entered a stable state and the text will no longer be revised. |
{"event_type": 338,"stream_id": "teststream","channel_id": "teststream","task_id": "7735333","data": {"subtitle_tmp_res": [{"src_txt": "Today we shall delve into the study of linear equations in one variable.","start_pts": 123000,"end_pts": 126333,"stead_state": bool}]},"sign": "ca3e25e5dc17a6f9909a9ae7281e300d","t": 1754623810}
Feedback