espeak: migrated over to use the common pulse infra.
[profile/ivi/speech-recognition.git] / src / plugins / text-to-speech / espeak / espeak-voice.h
1 #ifndef __SRS_ESPEAK_VOICE_H__
2 #define __SRS_ESPEAK_VOICE_H__
3
4 #include <pulse/mainloop.h>
5
6 #include "srs/daemon/plugin.h"
7 #include "srs/daemon/voice.h"
8
9 typedef struct {
10     srs_plugin_t      *self;             /* our plugin instance */
11     srs_context_t     *srs;              /* SRS context */
12     srs_voice_actor_t *actors;           /* loaded voices */
13     int                nactor;           /* number of voices */
14     struct {
15         const char    *voicedir;         /* voice directory */
16         int            rate;             /* sample rate */
17     } config;
18     struct {
19         srs_voice_notify_t  notify;      /* voice notification callback */
20         void               *notify_data; /* opaque notification data */
21     } voice;
22 } espeak_t;
23
24 #endif /* __SRS_ESPEAK_VOICE_H__ */