blob: fd442a8d6a9a790ed2a12c86fcf29c8180a150eb (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#ifndef _XAS_VOX_H
#define _XAS_VOX_H
#include <stdio.h>
#include <stdarg.h>
#include <sys/types.h>
#include <xas/audio.h>
#define XAS_VOX_IDLE 0
#define XAS_VOX_ACTIVE (1 << 0)
typedef struct _xas_vox {
const char *text2wave_path;
xas_audio_format format;
size_t buffer_size;
int flags;
int pid,
stdin,
stdout;
FILE *in;
} xas_vox;
xas_vox *xas_vox_new(const char *text2wave_path,
xas_audio_format format,
size_t buffer_size);
void xas_vox_destroy(xas_vox *vox);
int xas_vox_stop(xas_vox *vox);
int xas_vox_active(xas_vox *vox);
int xas_vox_generate(xas_vox *vox);
int xas_vox_vsayf(xas_vox *vox, const char *message, va_list args);
int xas_vox_sayf(xas_vox *vox, const char *message, ...);
int xas_vox_say(xas_vox *vox, const char *message);
xas_audio_stream *xas_vox_stream_new(xas_vox *vox);
#endif /* _XAS_VOX_H */
|