ios语音朗读英文

需要导入  AVFoundation框架。

AVSpeechSynthesizer*synthesizer = [[AVSpeechSynthesizeralloc]init];

AVSpeechUtterance*utterance = [AVSpeechUtterancespeechUtteranceWithString:@"how are you"];

[utterancesetRate:0.1];

[synthesizerspeakUtterance:utterance];

你可能感兴趣的:(ios语音朗读英文)