@Override
    public void run() {
        SpeechResult speechResult;
        while(running) {
            speechResult = listen();
            String hypothesis = speechResult.getHypothesis();
            if(!hypothesis.isEmpty()) {
                emit(new Event(EventType.INPUT, this, hypothesis));
            }
        }
    }