Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/espeak.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/espeak.h')
-rw-r--r--src/espeak.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/src/espeak.h b/src/espeak.h
index 6258ebd..b0e3f65 100644
--- a/src/espeak.h
+++ b/src/espeak.h
@@ -15,17 +15,24 @@
* Boston, MA 02111-1307, USA.
*/
-#ifndef __ESPEAK_H__
-#define __ESPEAK_H__
+#ifndef ESPEAK_H
+#define ESPEAK_H
-struct Espeak;
+#define ESPEAK_DEFAULT_PITCH 50
+#define ESPEAK_DEFAULT_RATE 170
+#define ESPEAK_DEFAULT_VOICE "default"
-struct Espeak* espeak_new();
-gint espeak_sample_rate();
-gchar** espeak_voices();
-gboolean espeak_say(struct Espeak*, const gchar *text, const gchar *voice,
- guint pitch, guint rate);
-gpointer espeak_hear(struct Espeak*, goffset offset, guint *size);
-void espeak_unref(struct Espeak*);
+struct _Espeak;
+typedef struct _Espeak Espeak;
+
+struct _Espeak* espeak_new();
+void espeak_unref(struct _Espeak*);
+gint espeak_get_sample_rate();
+gchar** espeak_get_voices();
+void espeak_set_pitch(struct _Espeak*, guint);
+void espeak_set_rate(struct _Espeak*, guint);
+void espeak_set_voice(struct _Espeak*, const gchar*);
+void espeak_say(struct _Espeak*, const gchar *text);
+gpointer espeak_hear(struct _Espeak*, gsize);
#endif