Add voice test command for help in adjusting volume.
authorKeith Packard <keithp@keithp.com>
Wed, 28 Jul 2010 20:10:11 +0000 (13:10 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 28 Jul 2010 20:10:11 +0000 (13:10 -0700)
Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/altosui/AltosUI.java

index 511c370..e1697ee 100644 (file)
@@ -721,6 +721,13 @@ public class AltosUI extends JFrame {
                                        }
                                });
                        menu.add(radioitem);
+                       item = new JMenuItem("Test Voice",KeyEvent.VK_T);
+                       item.addActionListener(new ActionListener() {
+                                       public void actionPerformed(ActionEvent e) {
+                                               voice.speak("That's one small step for man; one giant leap for mankind.");
+                                       }
+                               });
+                       menu.add(item);
                }
 
                // Channel menu