From 90308dd880fecaa5f51364f016efac7bb2dd1b25 Mon Sep 17 00:00:00 2001 From: leedoughty <32392044+leedoughty@users.noreply.github.com> Date: Mon, 10 Nov 2025 18:15:57 +0000 Subject: [PATCH] Use prefix match for Apple Samantha voice fallback --- qt/aqt/tts.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qt/aqt/tts.py b/qt/aqt/tts.py index c8a8f16eb..f77e5c975 100644 --- a/qt/aqt/tts.py +++ b/qt/aqt/tts.py @@ -98,10 +98,7 @@ class TTSPlayer: # (for example, Apple Samantha) with rank of -50 for avail in avail_voices: if avail.lang == tag.lang: - if ( - avail.lang == "en_US" - and avail.name == "Apple_Samantha_(English_(US))" - ): + if avail.lang == "en_US" and avail.name.startswith("Apple_Samantha"): return TTSVoiceMatch(voice=avail, rank=-50) # if no requested or preferred voices match, we fall back on