summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-28 13:12:34 -0500
committerXANTRONIX Development2022-02-28 13:12:47 -0500
commit8723f399b2e63693d0e90a1b0af87be865069e22 (patch)
tree9e15df6b4cd051b9642001d546fb6c3488afffc2 /include
parent1b8fe922c267844f08b1795682ff8ab7e2b2a40c (diff)
downloadxas-8723f399b2e63693d0e90a1b0af87be865069e22.tar.gz
xas-8723f399b2e63693d0e90a1b0af87be865069e22.tar.bz2
xas-8723f399b2e63693d0e90a1b0af87be865069e22.zip
Allow setting vox gain
Diffstat (limited to 'include')
-rw-r--r--include/xas/vox.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xas/vox.h b/include/xas/vox.h
index 9d63bba..b3ea0ed 100644
--- a/include/xas/vox.h
+++ b/include/xas/vox.h
@@ -8,6 +8,8 @@
#include <xas/object.h>
#include <xas/audio.h>
+#define XAS_VOX_DEFAULT_GAIN 1.0f
+
#define XAS_VOX_SETTINGS_TMP_PATH "/tmp/xas-vox.XXXXXX"
#define XAS_VOX_SETTINGS_TMP_PATHLEN 64
@@ -22,6 +24,8 @@ typedef struct _xas_vox {
xas_audio_format format;
size_t buffer_size;
+ float gain;
+
const char *text2wave_path;
int argn;
char **args;
@@ -51,6 +55,8 @@ xas_vox *xas_vox_new(xas_audio_format format,
void xas_vox_destroy(xas_vox *vox);
+void xas_vox_set_gain(xas_vox *vox, float gain);
+
int xas_vox_set_voice(xas_vox *vox, const char *voice);
int xas_vox_set_parameter(xas_vox *vox,