aboutsummaryrefslogtreecommitdiffstats
path: root/src/n_speak.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/n_speak.h')
-rw-r--r--src/n_speak.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/n_speak.h b/src/n_speak.h
new file mode 100644
index 0000000..dd65b7e
--- /dev/null
+++ b/src/n_speak.h
@@ -0,0 +1,34 @@
+/* ************************************************************************************ */
+/* */
+/* File : n_speak.h /_________/ */
+/* Author : Joe | */
+/* Date : 04/2020 | */
+/* Info : Use espeak lib to speak | */
+/* / | */
+/* \ / */
+/* \_____/ */
+/* */
+/* ************************************************************************************ */
+
+#ifndef JO_N_SPEAK_H
+#define JO_N_SPEAK_H
+
+#include <espeak/speak_lib.h>
+#include <string.h>
+#include <stdlib.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <unistd.h>
+
+enum
+{
+ JO_RET_FINE,
+ JO_RET_RD_FAILED,
+ JO_RET_ESPEAK_FAILED
+};
+
+#define JO_ESPEAK_VOICE "English"
+
+void jo_n_speak(const char *);
+
+#endif