AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init];//初始化朗读对象
AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"hello world"];
[utterance setRate:1.1f];
[synthesizer speakUtterance:utterance];
AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init];//初始化朗读对象
AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"hello world"];
[utterance setRate:1.1f];
[synthesizer speakUtterance:utterance];