Skip to content

Instantly share code, notes, and snippets.

Last active Jul 22, 2016
What would you like to do?
Checks if the Alex voice is installed on iOS.
- (void)checkForAlex {
// is Alex installed?
BOOL alexInstalled = NO;
NSArray *voices = [AVSpeechSynthesisVoice speechVoices];
for (id voiceName in voices) {
if ([[voiceName valueForKey:@"name"] isEqualToString:@"Alex"]) {
alexInstalled = YES;
if (alexInstalled) {
NSLog(@"Alex is installed on this device.");
} else {
NSLog(@"Alex is not installed on this device.");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment