mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-08-03 21:12:24 +00:00
Merge pull request #4848 from buildwithricky/fix/Domina-Mode-is-speaking-in-indian-on-safari
fix(Domina): fix #4782 to allow domina mode to switch from an Indian accent to other accents in dropdown on safari browsers
This commit is contained in:
commit
f2e959adeb
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ export const speak = (text: string, volume: number, voice: string): void => {
|
|||
const utter = new SpeechSynthesisUtterance();
|
||||
utter.text = text;
|
||||
utter.voice =
|
||||
synth.getVoices().find((v) => v.name === voice) ||
|
||||
synth.getVoices().find((v) => voice.includes(v.name)) ||
|
||||
synth.getVoices().find((v) => v.default) ||
|
||||
null;
|
||||
utter.volume = volume;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue