}
gboolean
-speak_init(gchar voice, guint speed, guint pitch)
+speak_init(gchar *voice, guint speed, guint pitch)
{
erate=espeak_Initialize(AUDIO_OUTPUT_RETRIEVAL, 100, NULL, 0);
-if (erate==-1)
+if (erate==-1)
return FALSE;
espeak_SetSynthCallback(espeak_cb);
espeak_SetVoiceByName(voice);
-espeak_SetParameter(espeakRATE, speed,0);
-espeak_SetParameter(espeakPITCH, pitch,0);
-espeak_SetParameter(espeakVOLUME, 100,0);
+espeak_SetParameter(espeakRATE, speed, 0);
+espeak_SetParameter(espeakPITCH, pitch, 0);
+espeak_SetParameter(espeakVOLUME, 100, 0);
if (speak_create_pipeline()==FALSE)
return FALSE;
-bus = gst_pipeline_get_bus (GST_PIPELINE (ge.pipeline));
+bus=gst_pipeline_get_bus (GST_PIPELINE (ge.pipeline));
+g_assert(bus);
gst_bus_add_watch (bus, bus_call, NULL);
return TRUE;
#include <glib.h>
-gboolean speak_init(gchar voice, guint speed, guint pitch);
+gboolean speak_init(gchar *voice, guint speed, guint pitch);
void speak_deinit(void);
gboolean speak_stop(void);
gboolean speak_speaking(void);