From 826061eaca88c0dd75051a6006ef6703c91af595 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 28 Jul 2010 13:10:11 -0700 Subject: [PATCH] Add voice test command for help in adjusting volume. Signed-off-by: Keith Packard --- ao-tools/altosui/AltosUI.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ao-tools/altosui/AltosUI.java b/ao-tools/altosui/AltosUI.java index 511c3709..e1697ee1 100644 --- a/ao-tools/altosui/AltosUI.java +++ b/ao-tools/altosui/AltosUI.java @@ -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 -- 2.30.2