protected class RecognizeThread implements Runnable {
@Override
public void run() {
Recognizer recognizer = new Recognizer();
try {
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();