mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-02 10:19:44 -05:00
refac: audio
This commit is contained in:
@@ -221,11 +221,12 @@
|
||||
)
|
||||
?.at(0) ?? undefined;
|
||||
|
||||
console.log($settings?.audio?.tts?.voice ?? $config?.audio?.tts?.voice);
|
||||
console.log(voices);
|
||||
|
||||
currentUtterance = new SpeechSynthesisUtterance(content);
|
||||
currentUtterance.voice = voice;
|
||||
|
||||
if (voice) {
|
||||
currentUtterance.voice = voice;
|
||||
}
|
||||
|
||||
speechSynthesis.speak(currentUtterance);
|
||||
}
|
||||
}, 100);
|
||||
|
||||
Reference in New Issue
Block a user