aboutsummaryrefslogtreecommitdiffstats
path: root/src/n_speak.h
blob: dd65b7e7b093c141913ef88692128193da6a9f27 (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
30
31
32
33
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