Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit 9dcadf9

Browse files
author
Francois-Xavier Gentilhomme
committed
[DEV] Plug recognitionResult "text/plain"
1 parent ea0128a commit 9dcadf9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

myscript-text-web.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@
171171
myscriptTextWebElement.result = {};
172172
myscriptTextWebElement.resultlabel = '';
173173
myscriptTextWebElement.candidates = [];
174+
175+
if (eventDetail.recognitionResult && eventDetail.recognitionResult['text/plain']) {
176+
myscriptTextWebElement.resultlabel = eventDetail.recognitionResult['text/plain'];
177+
}
174178
if (eventDetail.rawResult &&
175179
eventDetail.rawResult.result &&
176180
eventDetail.rawResult.result.textSegmentResult &&

0 commit comments

Comments
 (0)