X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=altosui%2FAltosVoice.java;h=2ed6a8c2834256d1f32faa93fc2b4c60f5bb61cf;hp=ac13ee14e81176c69d46587392340c3a8018ba62;hb=ecb0465be76e9299511aeec663d267967834f6c3;hpb=51c7741040d95c5deece939dae5e4136cc04afc4 diff --git a/altosui/AltosVoice.java b/altosui/AltosVoice.java index ac13ee14..2ed6a8c2 100644 --- a/altosui/AltosVoice.java +++ b/altosui/AltosVoice.java @@ -19,8 +19,8 @@ package altosui; import com.sun.speech.freetts.Voice; import com.sun.speech.freetts.VoiceManager; -import com.sun.speech.freetts.audio.JavaClipAudioPlayer; import java.util.concurrent.LinkedBlockingQueue; +import org.altusmetrum.altosuilib_1.*; public class AltosVoice implements Runnable { VoiceManager voice_manager; @@ -65,7 +65,7 @@ public class AltosVoice implements Runnable { } public void speak(String s) { - if (AltosPreferences.voice()) + if (AltosUIPreferences.voice()) speak_always(s); }