diff options
| author | Keith Packard <keithp@keithp.com> | 2010-07-27 10:18:20 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2010-07-27 10:18:20 -0700 |
| commit | 8f2f38f2a9fb0c106e2c6b60cdc205292ce329ea (patch) | |
| tree | f1796d3c3efdbbc0f985648b6708def4d908b7c5 /ao-tools/altosui/AltosVoice.java | |
| parent | 734cd15ccff691f851359518ce6118f29dc9f88d (diff) | |
Java clean ups -- use varargs where possible, remove AltosSerialReader
Add methods that format stuff using String.format for voice and serial
link, remove AltosSerialReader class and just embed that in the
AltosSerial class directly.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosVoice.java')
| -rw-r--r-- | ao-tools/altosui/AltosVoice.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ao-tools/altosui/AltosVoice.java b/ao-tools/altosui/AltosVoice.java index e4ea99a2..c39bfb9b 100644 --- a/ao-tools/altosui/AltosVoice.java +++ b/ao-tools/altosui/AltosVoice.java @@ -47,6 +47,10 @@ public class AltosVoice implements Runnable { } } + public void speak(String format, Object... parameters) { + speak(String.format(format, parameters)); + } + public AltosVoice () { voice_manager = VoiceManager.getInstance(); voice = voice_manager.getVoice(voice_name); |
