summaryrefslogtreecommitdiffstats
path: root/include/xas
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-27 00:39:55 -0500
committerXANTRONIX Development2022-02-27 00:39:55 -0500
commit455efe0d2d06e37569631089843e38cadee5cc4a (patch)
tree683f4a96eeac69d06db0c6ffb0191a7b985a9edc /include/xas
parent8c5121eb5f8fd415fb1d0ca61fd7aff9ab084565 (diff)
downloadxas-455efe0d2d06e37569631089843e38cadee5cc4a.tar.gz
xas-455efe0d2d06e37569631089843e38cadee5cc4a.tar.bz2
xas-455efe0d2d06e37569631089843e38cadee5cc4a.zip
meow, we can now like, set stuff :333
Diffstat (limited to 'include/xas')
-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);