From 8723f399b2e63693d0e90a1b0af87be865069e22 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 28 Feb 2022 13:12:34 -0500 Subject: Allow setting vox gain --- include/xas/vox.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/xas') 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 #include +#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, -- cgit v1.2.3