diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-27 01:02:18 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-27 01:02:18 +0200 |
commit | ea0eca4f717d7f4408273613a566f3550d27085b (patch) | |
tree | b1c1fa062823bb36bbd8bb9dab6437c83c229eec /src/n_speak.h | |
parent | Makefile change (diff) | |
download | lowbat-bsd-ea0eca4f717d7f4408273613a566f3550d27085b.tar.gz lowbat-bsd-ea0eca4f717d7f4408273613a566f3550d27085b.tar.bz2 lowbat-bsd-ea0eca4f717d7f4408273613a566f3550d27085b.tar.xz lowbat-bsd-ea0eca4f717d7f4408273613a566f3550d27085b.tar.zst lowbat-bsd-ea0eca4f717d7f4408273613a566f3550d27085b.zip |
Rewrite started
Diffstat (limited to 'src/n_speak.h')
-rw-r--r-- | src/n_speak.h | 34 |
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 |