summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/xas/vox.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/xas/vox.h b/include/xas/vox.h
index c3bae65..7aa43e4 100644
--- a/include/xas/vox.h
+++ b/include/xas/vox.h
@@ -7,7 +7,8 @@
#include <xas/audio.h>
-#define XAS_VOX_SETTINGS_PATHLEN 64
+#define XAS_VOX_SETTINGS_TMP_PATH "/tmp/xas-vox.XXXXXX"
+#define XAS_VOX_SETTINGS_TMP_PATHLEN 64
enum xas_vox_state {
XAS_VOX_IDLE,
@@ -28,7 +29,9 @@ typedef struct _xas_vox {
stdin,
stdout;
- char tmpfile[XAS_VOX_SETTINGS_PATHLEN];
+ char tmpfile[XAS_VOX_SETTINGS_TMP_PATHLEN];
+ int tmpfd;
+ FILE *tmpfh;
FILE *in;
} xas_vox;
@@ -45,6 +48,12 @@ xas_vox *xas_vox_new(xas_audio_format format,
void xas_vox_destroy(xas_vox *vox);
+int xas_vox_set_voice(xas_vox *vox, const char *voice);
+
+int xas_vox_set_parameter(xas_vox *vox,
+ const char *name,
+ const char *value);
+
int xas_vox_stop(xas_vox *vox);
int xas_vox_active(xas_vox *vox);