I am using piece of code to speak my message with the help of AVSpeechSynthesizer
. but i want same functionality to run on background mode. can we do it? Please tell me , how do i do it.
Thanks
AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init];
AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"Driver Reached On Your Location"];
[utterance setRate:0.5f];
[synthesizer speakUtterance:utterance];