mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-02 00:28:51 +01:00
🔈 fix(tts): update min value for playback rate (#2880)
* 🔈 fix: update min value for playback rate in TTS component
* fix: prevent playbackRate from being set if less than or equal to 0
This commit is contained in:
parent
b80f38e49e
commit
eb5733083e
4 changed files with 10 additions and 4 deletions
|
|
@ -22,7 +22,7 @@ export default function DecibelSelector() {
|
|||
value={[playbackRate ?? 1]}
|
||||
onValueChange={(value) => setPlaybackRate(value[0])}
|
||||
doubleClickHandler={() => setPlaybackRate(null)}
|
||||
min={-0.1}
|
||||
min={0.1}
|
||||
max={2}
|
||||
step={0.1}
|
||||
className="ml-4 flex h-4 w-24"
|
||||
|
|
@ -33,7 +33,7 @@ export default function DecibelSelector() {
|
|||
value={playbackRate ?? 1}
|
||||
disabled={!textToSpeech}
|
||||
onChange={(value) => setPlaybackRate(value ? value[0] : 0)}
|
||||
min={-0.1}
|
||||
min={0.1}
|
||||
max={2}
|
||||
className={cn(
|
||||
defaultTextProps,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue