diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-17 16:32:09 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-17 16:32:09 +0200 |
commit | 4a41fd428bfd4ed95446e6f24bbd6ec60d87bf50 (patch) | |
tree | c7c5a4ba58b7463659f6660fa56b76fc72fd57a6 /src/jo_n_speak.c | |
parent | espeak tests (diff) | |
download | lowbat-bsd-4a41fd428bfd4ed95446e6f24bbd6ec60d87bf50.tar.gz lowbat-bsd-4a41fd428bfd4ed95446e6f24bbd6ec60d87bf50.tar.bz2 lowbat-bsd-4a41fd428bfd4ed95446e6f24bbd6ec60d87bf50.tar.xz lowbat-bsd-4a41fd428bfd4ed95446e6f24bbd6ec60d87bf50.tar.zst lowbat-bsd-4a41fd428bfd4ed95446e6f24bbd6ec60d87bf50.zip |
Using libespeak and libnotify
Diffstat (limited to 'src/jo_n_speak.c')
-rw-r--r-- | src/jo_n_speak.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/jo_n_speak.c b/src/jo_n_speak.c new file mode 100644 index 0000000..4db4113 --- /dev/null +++ b/src/jo_n_speak.c @@ -0,0 +1,29 @@ +/****************************************************************************************/ +/* */ +/* File : jo_n_speak.c /_________/ */ +/* Author : Joe | */ +/* Date : 04/2020 | */ +/* Info : Uses espeak lib to speak | */ +/* / | */ +/* \ / */ +/* \_____/ */ +/* */ +/****************************************************************************************/ + +#include <jo_n_speak.h> + +void +jo_n_speak(const char *msg) +{ + espeak_Initialize(AUDIO_OUTPUT_PLAYBACK, 0, 0x0, 0); + espeak_Synth(msg, + strlen(msg), + 0, + POS_CHARACTER, + 0, + espeakCHARS_UTF8 | espeakENDPAUSE, + 0x0, + 0x0); + espeak_Synchronize(); + espeak_Terminate(); +} |