-2

AVSpeechSynthesisVoice voice is fred's voice in iOS 12 if no voice identifier is set. How can we go back to default voice?

1 Answers1

0

com.apple.ttsbundle.Samantha-compact is the default voice from AVSpeechSynthesisVoice. This is how you can go back to default voice-

AVSpeechSynthesisVoice* voice = [AVSpeechSynthesisVoice voiceWithIdentifier:@"com.apple.ttsbundle.Samantha-compact"];
matt
  • 515,959
  • 87
  • 875
  • 1,141