mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 18:26:48 +00:00
refac: speedRate -> playbackRate
This commit is contained in:
@@ -361,7 +361,7 @@
|
||||
?.at(0) ?? undefined;
|
||||
|
||||
currentUtterance = new SpeechSynthesisUtterance(content);
|
||||
currentUtterance.rate = $settings.audio?.tts?.speedRate ?? 1;
|
||||
currentUtterance.rate = $settings.audio?.tts?.playbackRate ?? 1;
|
||||
|
||||
if (voice) {
|
||||
currentUtterance.voice = voice;
|
||||
@@ -388,7 +388,7 @@
|
||||
if (audioElement) {
|
||||
audioElement.src = audio.src;
|
||||
audioElement.muted = true;
|
||||
audioElement.playbackRate = $settings.audio?.tts?.speedRate ?? 1;
|
||||
audioElement.playbackRate = $settings.audio?.tts?.playbackRate ?? 1;
|
||||
|
||||
audioElement
|
||||
.play()
|
||||
|
||||
Reference in New Issue
Block a user