I am executing the code below for a text-to-speech project on a device, but I get the error “Creating MacinTalk Voice for Asset: (null)” Please help, how can I fix it, or any tips on what is going wrong.
AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init]; AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"Tips For Silicon Valley From A Startup Accelerator In Gaza"]; [utterance setRate:0.015f]; utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-GB"]; [synthesizer speakUtterance:utterance];
source share