KinectRecognitionResult implements org.jvoicexml.RecognitionResult { @Override public float[] getWordsConfidence() { final float confidence = getConfidence(); final String[] words = getWords(); final float[] confidences = new float[words.length]; for (int i=0; i< confidences.length; i++) { confidences[i] = confidence; } return confidences; } KinectRecognitionResult(
            final SmlInterpretationExtractor smlextrator); @Override Object getSemanticInterpretation(final DataModel model); @Override String getUtterance(); @Override String[] getWords(); @Override float getConfidence(); @Override float[] getWordsConfidence(); @Override ModeType getMode(); @Override boolean isAccepted(); @Override void setMark(String value); @Override String getMark();  }
@Test public void testGetWordsConfidence() throws Exception { final SmlInterpretationExtractor extractor = readSml("sml-simple.xml"); final KinectRecognitionResult result = new KinectRecognitionResult(extractor); final float[] confidences = result.getWordsConfidence(); Assert.assertEquals(2, confidences.length); for (int i=0; i < confidences.length; i++) { Assert.assertEquals(0.5100203, confidences[i], MAX_CONFIDENCE_DIFF); } }