Skip to content

Commit

Permalink
Merge pull request #77 from jambonz/feat/improve_elevenlabs
Browse files Browse the repository at this point in the history
support elevenlabs previous_text, next_text
  • Loading branch information
davehorton authored Jun 5, 2024
2 parents 49fe647 + b81f331 commit d7797d5
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 d7797d5

Please sign in to comment.