blob: 3a940d5a721ce5f09e2c58362add01ce74af0be9 (
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
50
51
|
#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;
size_t sample_size,
sample_rate,
buffer_size;
void *ctx;
int flags;
int pid,
stdin,
stdout;
FILE *in;
} xas_vox;
xas_vox *xas_vox_new(const char *text2wave_path,
size_t sample_size,
size_t sample_rate,
size_t buffer_size,
void *ctx);
void xas_vox_destroy(xas_vox *vox);
int xas_vox_stop(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 */
|