setStatus("Recognizing...");
recognizer.setLanguage(languageCode.getText());
//recognizer.setLanguage(plugin.LANGUAGE_CODE);
//GoogleResponse googleResponse = recognizer.getRecognizedDataForWave(file.getText());
GoogleResponse googleResponse = recognizer.getRecognizedDataForWave(temp);
response.setText(googleResponse.getResponse());
plugin.setDescription("You said: " + googleResponse.getResponse());
confidence.setText(googleResponse.getConfidence());
} catch (Exception ex) {
ex.printStackTrace();
}
setStatus("Waiting...");
startRecognition.setEnabled(true);