So I have a tts app and I'm trying to add the new iOS 17 personal voice as an option. I'm stuck on how to request auth to use voice. Here's what I have so far:
- (void)requestAuthorization
{
NSInteger row = [self.languagePicker selectedRowInComponent:0];
NSString *selected = [self.pickerData objectAtIndex:row];
self.languageChosen = selected;
if ([self.languageChosen isEqualToString:@"Personal"]) {
AVSpeechSynthesizer requestPersonalVoiceAuthorizationWithCompletionHandler:<#^(AVSpeechSynthesisPersonalVoiceAuthorizationStatus status)handler#>
}
}
I don’t know what to do after "requestPersonalVoiceAuthorizationWithCompletionHandler:"
any help will be really appreciated.