Home | History | Annotate | Download | only in uapi
      1 # cd /system/usr/srec
      2 # ./run_ERT.sh
      3 Create an EmbeddedRecognizer
      4 Load a grammar
      5 Add word to grammar slot
      6 Save the grammar
      7 Grammar saved
      8 Recognizing against the first grammar (dynamic add-word)
      9 Meaning1=DEL Jen_Parker
     10 RecognizerListener1.onStopped()
     11 Load the second grammar (pre-populated slot)
     12 Grammar loaded
     13 Recognizing against the pre-populated grammar
     14 Meaning=DEL Jen_Parker
     15 Literal=phone delete Jen_Parker
     16 Score=80
     17 	key=raws value=22722
     18 	key=Phone.V value=DEL Jen_Parker
     19 	key=Names.V value=Jen_Parker
     20 	key=Phone.C value=DEL 
     21 	key=ROOT.meaning value=DEL Jen_Parker
     22 ----- PASS -----
     23 # exit
     24 
     25