Skip to content

Commit

Permalink
Allow setting the playback rate of slow sentences down to 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
blmage committed Jul 18, 2024
1 parent 0cabed3 commit d397395
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tts.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ export const POSITION_STEP = 0.1;
* @param {string} ttsSpeed A TTS speed.
* @returns {number} The minimum allowed playback rate for TTS sounds of the given speed.
*/
export const getTtsMinRate = clampSoundSettingValue(
SOUND_SETTING_RATE,
SOUND_SPEED_SLOW === _ ? 1.0 : 0.5
export const getTtsMinRate = ttsSpeed => ( // eslint-disable-line no-unused-vars
clampSoundSettingValue(SOUND_SETTING_RATE, 0.5)
);

/**
Expand Down

0 comments on commit d397395

Please sign in to comment.