diff --git a/src/app/util/speak.ts b/src/app/util/speak.ts index db71a07e88..d145bce2ef 100644 --- a/src/app/util/speak.ts +++ b/src/app/util/speak.ts @@ -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;