mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2024-11-27 06:10:28 +01:00
DroidFish: Only play the announcement sound if the TTS engine is idle.
This commit is contained in:
parent
fbb6bace27
commit
5c6b1408f4
|
@ -99,7 +99,8 @@ public class Speech {
|
|||
public void say(String text) {
|
||||
if (initialized) {
|
||||
if (lang != Language.NONE && text != null) {
|
||||
tts.playEarcon("[move]", TextToSpeech.QUEUE_ADD, null);
|
||||
if (!tts.isSpeaking())
|
||||
tts.playEarcon("[move]", TextToSpeech.QUEUE_ADD, null);
|
||||
tts.speak(text, TextToSpeech.QUEUE_ADD, null);
|
||||
}
|
||||
toSpeak = null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user