Skip to content

Commit 4bf502d

Browse files
committed
Remove classic voices
1 parent bf0d345 commit 4bf502d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Sources/Navigator/TTS/AVTTSEngine.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public class AVTTSEngine: NSObject, TTSEngine, AVSpeechSynthesizerDelegate, Logg
5050
public lazy var availableVoices: [TTSVoice] =
5151
AVSpeechSynthesisVoice.speechVoices()
5252
.filter { voice in
53-
// Remove novelty and eloquence voices, as they are not a good
54-
// fit to read publications.
53+
// Remove novelty, eloquence and "classic" voices, as they are
54+
// not a good modern fit to read publications.
5555
if
5656
#available(iOS 17.0, *),
5757
voice.voiceTraits.contains(.isNoveltyVoice) ||
@@ -61,6 +61,7 @@ public class AVTTSEngine: NSObject, TTSEngine, AVSpeechSynthesizerDelegate, Logg
6161
}
6262

6363
return !voice.identifier.contains(".eloquence.")
64+
&& !voice.identifier.starts(with: "com.apple.speech.synthesis.voice.")
6465
}
6566
.map { TTSVoice(voice: $0) }
6667

0 commit comments

Comments
 (0)