diff --git a/lib/synth-audio.js b/lib/synth-audio.js index 50145b3..1d6a6e5 100644 --- a/lib/synth-audio.js +++ b/lib/synth-audio.js @@ -684,6 +684,8 @@ const synthElevenlabs = async(logger, { if (opts.voice_settings?.stability) params += `,stability=${opts.voice_settings.stability}`; if (opts.voice_settings?.style) params += `,style=${opts.voice_settings.style}`; if (opts.voice_settings?.use_speaker_boost === false) params += ',use_speaker_boost=false'; + if (opts.previous_text) params += `,previous_text=${opts.previous_text}`; + if (opts.next_text) params += `,next_text=${opts.next_text}`; params += '}'; return {