让程序读出文字

  AVSpeechSynthesizer *syn = [[AVSpeechSynthesizer alloc]init];
    AVSpeechUtterance *utter = [[AVSpeechUtterance alloc]initWithString:@"hello"];
    [syn speakUtterance:utter];
原文地址:https://www.cnblogs.com/yintingting/p/4694286.html