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 | |||
---|---|---|---|
results | Intermediate recognition result information | ||
tokens | Array of morphemes in the intermediate recognition | ||
written | Notation of the morpheme. The last morpheme is a dummy morpheme with "written" as "...". | ||
text | Text combining the "written" of all morphemes in the intermediate recognition. "..." is appended at the end. | ||
text | Text 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..."
}