blob: 5fc935e3f82c4d161d588d9fc6382023f21994c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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, NULL, 0);
espeak_Synth(msg,
strlen(msg),
0,
POS_CHARACTER,
0,
espeakCHARS_UTF8 | espeakENDPAUSE,
NULL,
NULL);
espeak_Synchronize();
espeak_Terminate();
}
|