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 511c37093539fee08e7840862bc15e03088a807d..e1697ee1e280637524b15a8f96d0e051bd3f41e4 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