From 455efe0d2d06e37569631089843e38cadee5cc4a Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 27 Feb 2022 00:39:55 -0500 Subject: meow, we can now like, set stuff :333 --- include/xas/vox.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'include/xas') 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 -#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); -- cgit v1.2.3