2 * Copyright © 2009 Keith Packard <keithp@keithp.com>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 2 of the License.
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
25 void aoview_voice_open(void)
28 aoview_flite = popen("aoview_flite", "w");
31 void aoview_voice_close(void)
39 void aoview_voice_speak(char *format, ...)
45 vfprintf(aoview_flite, format, ap);
52 void aoview_voice_open(void)
56 void aoview_voice_close(void)
60 void aoview_voice_speak(char *format, ...)
66 static GtkCheckMenuItem *voice_enable;
69 aoview_voice_enable(GtkWidget *widget, gpointer data)
71 if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(widget))) {
73 aoview_voice_speak("enable voice system\n");
75 aoview_voice_speak("disable voice system\n");
81 aoview_voice_init(GladeXML *xml)
85 voice_enable = GTK_CHECK_MENU_ITEM(glade_xml_get_widget(xml, "voice_enable"));
88 g_signal_connect(G_OBJECT(voice_enable), "toggled",
89 G_CALLBACK(aoview_voice_enable),