class KinectRecognizer {

    public void stopRecognition() throws KinectRecognizerException {
        if (handle == 0) {
            throw new KinectRecognizerException("no recognizer allocated!");
        }
        if (recognitionThread != null) {
            recognitionThread.stopRecognition();
            recognitionThread = null;
        }
        try {
            kinectStopRecognition(handle);
        } finally {
            isRecognizing = false;
        }
    }

    public  KinectRecognizer(final KinectSpokenInput spokenInput);

}