void sound_noise(void)
{
#ifdef WITH_HILDON
- hildon_play_system_sound("/usr/share/sounds/ui-information_note.wav");
+hildon_play_system_sound("/usr/share/sounds/ui-information_note.wav");
#else
-
+gdk_beep();
#endif
}
void sound_speak(gchar * phrase)
{
+#ifdef WITH_ESPEAK
+#define _voice_synth_path "/usr/bin/espeak"
+#else
#define _voice_synth_path "/usr/bin/flite"
+#endif
-#if WITH_HILDON
- if (!fork()) {
- /* We are the fork child. Synthesize the voice. */
- sound_noise();
- sleep(1);
- printf("%s %s\n", _voice_synth_path, _last_spoken_phrase);
- execl(_voice_synth_path, _voice_synth_path,
- "-t", _last_spoken_phrase, (char *)NULL);
- exit(0);
- }
-#else
+if (!fork()) {
+ /* We are the fork child. Synthesize the voice. */
+ sound_noise();
+ sleep(1);
+ printf("%s %s\n", _voice_synth_path, phrase);
+ execl(_voice_synth_path, _voice_synth_path, "-t", phrase, (char *)NULL);
+ exit(0);
+}
-#endif
}
#if 0