nrc-result payload
Current version: v1
The application/x-nuance-nrc-result
payloads provide the final recognition result.
In addition to the standard fields described in data field structure, messages with the application/x-nuance-nrc-result
dataContentType include the following fields:
fields table
Field |
Description |
response |
Contains the Result payload for the final result of speech or DTMF. |
nrcSessionid |
Identifier of the current NR session. |
Sample payload: Example of speech recognition
"data": {
"dataContentType": "application/x-nuance-nrc-result.v1+json",
"nrcSessionid": "c8b1a8e1-43e5-48ff-9ad0-666c0632c969",
"traceid": "",
"requestid": "28e465d6-96c4-9f0c-b984-547db6f33194",
"clientRequestid": "",
"userid": "1857909e51fddfaa9d548a7ef0d4a0fcc65dcc866ede0a1982cac1baff6b6efc",
"locale": "en-US",
"processingTime": {
"startTime": "2023-07-13T20:56:42.956Z",
"durationMs": 869
},
"response": {
"result": {
"formattedText": "<?xml version='1.0'?><result><interpretation grammar=\"builtin:grammar/digits\" confidence=\"93\"><input mode=\"speech\">one</input><instance>1</instance></interpretation><interpretation grammar=\"builtin:grammar/digits\" confidence=\"23\"><input mode=\"speech\">one eight</input><instance>18</instance></interpretation></result>",
"status": "SUCCESS"
}
}
}
Sample payload: Example of DTMF recognition result
"data": {
"dataContentType": "application/x-nuance-nrc-result.v1+json",
"nrcSessionid": "c2de8c2d-44dd-41cb-baf8-3a2a45ea1ba0",
"traceid": "",
"requestid": "8ab7e9e5-021b-9c08-b866-f5e6c5da67fe",
"clientRequestid": "",
"locale": "en-US",
"processingTime": {
"startTime": "2023-07-13T21:29:44.812Z",
"durationMs": 5271
},
"response": {
"result": {
"formattedText": "<?xml version='1.0'?><result><interpretation grammar=\"builtin:dtmf/currency\" confidence=\"100\"><input mode=\"dtmf\">2 0 * 0 0</input><instance>USD20.00</instance></interpretation></result>",
"status": "SUCCESS"
}
}
}