java – Speech synthesis in Android


How is TextToSpeech.QUEUE_ADD different from TextToSpeech.QUEUE_FLUSH ?


TextToSpeech.QUEUE_FLUSH is a flag indicating that when a new phrase is added, the current one must be interrupted and playback of the added one should be started. If you want to queue phrases, you should use the TextToSpeech.QUEUE_ADD flag instead.

Scroll to Top