refac: speedRate -> playbackRate

This commit is contained in:
Timothy J. Baek
2024-09-21 15:42:39 +02:00
parent 00f6b4bf09
commit 580ad46036
44 changed files with 51 additions and 51 deletions

View File

@@ -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()