Home
last modified time | relevance | path

Searched refs:mSrec (Results 1 – 3 of 3) sorted by relevance

/packages/apps/VoiceDialer/src/com/android/voicedialer/
DPhoneTypeChoiceRecognizerEngine.java36 mSrecGrammar = mSrec.new Grammar(SREC_DIR + "/grammars/phone_type_choice.g2g"); in setupGrammar()
49 if (false) Log.d(TAG, "onRecognitionSuccess " + mSrec.getResultCount()); in onRecognitionSuccess()
55 for (int result = 0; result < mSrec.getResultCount() && in onRecognitionSuccess()
59 String conf = mSrec.getResult(result, Recognizer.KEY_CONFIDENCE); in onRecognitionSuccess()
60 String literal = mSrec.getResult(result, Recognizer.KEY_LITERAL); in onRecognitionSuccess()
61 String semantic = mSrec.getResult(result, Recognizer.KEY_MEANING); in onRecognitionSuccess()
67 if (mSrec.getResultCount() > 0) { in onRecognitionSuccess()
69 String conf = mSrec.getResult(0, Recognizer.KEY_CONFIDENCE); in onRecognitionSuccess()
70 String literal = mSrec.getResult(0, Recognizer.KEY_LITERAL); in onRecognitionSuccess()
71 String semantic = mSrec.getResult(0, Recognizer.KEY_MEANING); in onRecognitionSuccess()
DRecognizerEngine.java75 protected Recognizer mSrec; field in RecognizerEngine
136 if (mSrec == null) { in recognize()
141 mSrec = new Recognizer(parFilePath); in recognize()
165 mSrec.start(); in recognize()
171 int event = mSrec.advance(); in recognize()
188 mSrec.putAudio(mic); in recognize()
209 if (mSrec != null && recognizerStarted) mSrec.stop(); in recognize()
DCommandRecognizerEngine.java145 mSrecGrammar = mSrec.new Grammar(SREC_DIR + "/grammars/VoiceDialer.g2g"); in setupGrammar()
173 mSrecGrammar = mSrec.new Grammar(g2g.getPath()); in setupGrammar()
954 for (int result = 0; result < mSrec.getResultCount() && in onRecognitionSuccess()
958 String conf = mSrec.getResult(result, Recognizer.KEY_CONFIDENCE); in onRecognitionSuccess()
959 String literal = mSrec.getResult(result, Recognizer.KEY_LITERAL); in onRecognitionSuccess()
960 String semantic = mSrec.getResult(result, Recognizer.KEY_MEANING); in onRecognitionSuccess()