headerobject Properties task_idstring Client-generated task ID (UUID format). eventstring Event type. Always result-generated. payloadobject Properties outputobject Properties usageobject When payload.output.sentence.sentence_end is false (the current sentence has not ended), usage is null. When payload.output.sentence.sentence_end is true (the current sentence has ended), usage.duration indicates the billable duration of the current task. Properties durationinteger Billable task duration, in seconds. Properties sentenceobject Properties begin_timeinteger Sentence start time, in milliseconds. end_timeinteger Sentence end time, in milliseconds. textstring Recognized text. heartbeatboolean If true, you can skip this result (heartbeat packet). sentence_endboolean Whether the sentence has ended (true=final result, false=intermediate result). emo_tagstring Important
- Only paraformer-realtime-8k-v2 supports this feature.
- This feature requires semantic segmentation to be disabled. Set
semantic_punctuation_enabled to false in the run-task event.
- The emotion recognition result is returned only when
payload.output.sentence.sentence_end is true.
Sentiment of the current sentence:
- positive: Positive sentiment, such as happy or satisfied.
- negative: Negative sentiment, such as angry or dejected.
- neutral: No distinct sentiment.
emo_confidencefloat Important
- Only paraformer-realtime-8k-v2 supports this feature.
- This feature requires semantic segmentation to be disabled. Set
semantic_punctuation_enabled to false in the run-task event.
- The emotion recognition result is returned only when
payload.output.sentence.sentence_end is true.
Emotion confidence score in the range [0.0, 1.0]. A higher value indicates greater confidence. wordsarray[object] Word-level timestamp information. Properties begin_timeinteger Word start time, in milliseconds. end_timeinteger Word end time, in milliseconds. textstring Recognized text. punctuationstring Punctuation mark. | {
"header": {
"task_id": "2bf83b9a-baeb-4fda-8d9a-xxxxxxxxxxxx",
"event": "result-generated",
"attributes": {}
},
"payload": {
"output": {
"sentence": {
"begin_time": 170,
"end_time": null,
"text": "Okay, I got it.",
"heartbeat": false,
"sentence_end": true,
"words": [
{
"begin_time": 170,
"end_time": 295,
"text": "Okay",
"punctuation": ","
},
{
"begin_time": 295,
"end_time": 503,
"text": "I",
"punctuation": ""
},
{
"begin_time": 503,
"end_time": 711,
"text": "got",
"punctuation": ""
},
{
"begin_time": 711,
"end_time": 920,
"text": "it",
"punctuation": ""
}
]
}
},
"usage": {
"duration": 3
}
}
}
|