Skip to main content

U Event Packet

This packet is sent from the server to the client to inform about the intermediate recognition results during the recognition process for the speech segments detected within the server.

Format

Type: JSON

U <result>

<result> contains the following JSON:

Description
resultsIntermediate recognition result information
tokensArray of morphemes in the intermediate recognition
writtenNotation of the morpheme. The last morpheme is a dummy morpheme with "written" as "...".
textText combining the "written" of all morphemes in the intermediate recognition. "..." is appended at the end.
textText combining the "written" of all morphemes in the intermediate recognition. "..." is appended at the end.

Response Example

{
"results": [
{
"tokens": [
{ "written": "\u3053\u3093\u306b\u3061\u306f" },
{ "written": "\u30d7\u30ec\u30fc\u30c8" },
{ "written": "..." }
],
"text": "\u3053\u3093\u306b\u3061\u306f\u30d7\u30ec\u30fc\u30c8..."
}
],
"text": "\u3053\u3093\u306b\u3061\u306f\u30d7\u30ec\u30fc\u30c8..."
}