Add Ignore
Some checks are pending
Release / Build Equicord (push) Waiting to run
Sync to Codeberg / Sync Codeberg and Github (push) Waiting to run
Test / Test (push) Waiting to run

This commit is contained in:
thororen1234 2025-03-04 09:05:14 -05:00
parent d4b86ae0b3
commit 20c350a31f
No known key found for this signature in database

View file

@ -146,6 +146,7 @@ function speak(text: string) {
new Logger("VcNarrator").error(`Voice "${settings.store.voice}" not found. Resetting to default.`); new Logger("VcNarrator").error(`Voice "${settings.store.voice}" not found. Resetting to default.`);
voice = speechSynthesis.getVoices().find(v => v.default); voice = speechSynthesis.getVoices().find(v => v.default);
if (!voice) return; // This should never happen if (!voice) return; // This should never happen
// @ts-ignore
settings.store.voice = voice.voiceURI; settings.store.voice = voice.voiceURI;
} }
speech.voice = voice!; speech.voice = voice!;