summaryrefslogtreecommitdiffstats
path: root/include/xas
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-01 11:49:03 -0500
committerXANTRONIX Development2022-02-01 11:49:03 -0500
commit06c30104580ec9c589580c695f2cfbb6cc0b8575 (patch)
treeb1782db453869cac5e516c5fb775bbeb3e641be3 /include/xas
parent2ba47727bc4690336e5d9d5f5b83d82577ce7515 (diff)
downloadxas-06c30104580ec9c589580c695f2cfbb6cc0b8575.tar.gz
xas-06c30104580ec9c589580c695f2cfbb6cc0b8575.tar.bz2
xas-06c30104580ec9c589580c695f2cfbb6cc0b8575.zip
Initial commit of src/vox.c
Diffstat (limited to 'include/xas')
-rw-r--r--include/xas/vox.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/xas/vox.h b/include/xas/vox.h
new file mode 100644
index 0000000..6b73ae9
--- /dev/null
+++ b/include/xas/vox.h
@@ -0,0 +1,31 @@
+#ifndef _XAS_VOX_H
+#define _XAS_VOX_H
+
+#include <sys/types.h>
+
+#include <xas/audio.h>
+
+#define XAS_VOX_VOICE_IDLE 0
+#define XAS_VOX_VOICE_ACTIVE (1 << 0)
+
+typedef struct _xas_vox_voice {
+ const char *text2wave_path;
+
+ size_t sample_size,
+ sample_rate;
+
+ void *ctx;
+
+ int flags;
+
+ int pid,
+ stdout;
+} xas_vox_voice;
+
+xas_audio_stream *xas_vox_new(const char *text2wave_path,
+ size_t sample_size,
+ size_t sample_rate,
+ size_t buffer_size,
+ void *ctx);
+
+#endif /* _XAS_VOX_H */