Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
3b7f7c6e
Commit
3b7f7c6e
authored
Jan 25, 2024
by
Timothy J. Baek
Browse files
fix: loop until voice list available
parent
9101c174
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
src/lib/components/chat/SettingsModal.svelte
src/lib/components/chat/SettingsModal.svelte
+11
-1
No files found.
src/lib/components/chat/SettingsModal.svelte
View file @
3b7f7c6e
...
@@ -618,7 +618,17 @@
...
@@ -618,7 +618,17 @@
gravatarEmail = settings.gravatarEmail ?? '';
gravatarEmail = settings.gravatarEmail ?? '';
speakVoice = settings.speakVoice ?? '';
speakVoice = settings.speakVoice ?? '';
await voices.set(await speechSynthesis.getVoices());
// await voices.set(await speechSynthesis.getVoices());
const getVoicesLoop = setInterval(async () => {
const _voices = await speechSynthesis.getVoices();
await voices.set(_voices);
// do your loop
if (_voices.length > 0) {
clearInterval(getVoicesLoop);
}
}, 100);
saveChatHistory = settings.saveChatHistory ?? true;
saveChatHistory = settings.saveChatHistory ?? true;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment