Skip to content

Commit

Permalink
support elevenlabs previous_text, next_text
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Jun 5, 2024
1 parent 49fe647 commit b81f331
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/synth-audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b81f331

Please sign in to comment.