Speech Recognizer Get Confidence Below Api 14
I'm using the SpeechRecognizer with minSDK 14 and added a filter to get the most accurate result. This code I have in onActivityResult() of my Activity. @Override protected void on
Solution 1:
As with most of the Android speech recognition API, "This extra is optional and might not be provided." (quote from the spec).
I think it's a good idea to check for this float array even on lower API levels (just backport the EXTRA_CONFIDENCE_SCORES
constant). If the float array corresponding to this extra is not present then just fall back to assuming that EXTRA_RESULTS
is ordered by confidence (as the API documentation suggests).
Post a Comment for "Speech Recognizer Get Confidence Below Api 14"