From 5f98c245612ead4ab24a435605306ce4cc2531a4 Mon Sep 17 00:00:00 2001 From: buildwithricky Date: Sat, 26 Jul 2025 23:52:51 +0100 Subject: [PATCH] Fix(#4782 ) Fixed issue with voice on safari browsers --- src/app/util/speak.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;