TTS-UtteranceProgressListener nie jest wywoływany

Nie chcę tutaj umieszczać całego mojego kodu, więc wkładam tylko odpowiednie elementy. Jeśli potrzebujesz więcej, nie krępuj się zapytać.

Używam Text To Speech (TTS), który prowadzi do słuchacza mowy po zadaniu pytania ... Znalazłem poprzez wyjścia Log, że onInit TTS jest wywoływany, ale UtteranceProgressListener nie jest i nie mogę zrozumieć dlaczego. Każda pomoc jest doceniana.

// ---Initialize TTS variables---

        // Implement Text to speech feature
        tts = new TextToSpeech(this, new ttsInitListener());

        // set listener to the TTS engine
        tts.setOnUtteranceProgressListener(new ttsUtteranceListener());

        if (!tts.isSpeaking()) {
            tts.speak("Speak to me", TextToSpeech.QUEUE_FLUSH, null);
        }
// --- TEXT TO SPEECH && SPEECH TO TEXT METHODS ---

class ttsInitListener implements OnInitListener {

    @Override
    public void onInit(int status) {

        if (status == TextToSpeech.SUCCESS) {
            tts.setLanguage(Locale.getDefault());

        } else {
            tts = null;
            Toast.makeText(mContext, "Failed to initialize TTS engine.",
                    Toast.LENGTH_SHORT).show();
        }
    }
}

class ttsUtteranceListener extends UtteranceProgressListener {

    @Override
    public void onDone(String utteranceId) {
        if (processStart) {
            speech.startListening(intent);
        } else {
            ...
        }

    }

    @Override
    public void onError(String utteranceId) {
    }

    @Override
    public void onStart(String utteranceId) {
    }    
}

Dodałem wyjścia dziennika do wszystkich moich metod syntezatora mowy i mowy. UtteranceProgressListener's onStart nie jest nawet nazywany:

11-30 00:38:37.299: D/OpenGLRenderer(15842): Enabling debug mode 0
11-30 00:38:39.782: I/TextToSpeech(15842): Connected to ComponentInfo{com.google.android.tts/com.google.android.tts.service.GoogleTTSService}
11-30 00:38:39.782: I/TextToSpeech(15842): Set up connection to ComponentInfo{com.google.android.tts/com.google.android.tts.service.GoogleTTSService}
11-30 00:38:39.782: D/LOOK AT ME!!!(15842): ttsInitListener - onInit

questionAnswers(3)

yourAnswerToTheQuestion