AVSpeechSynthesizer
을 확인했지만 iOS6에서 실행하면 왜 오류가 발생합니까? 나는 AVSpeechSynthesizer이 아이폰 OS 7 만이기 때문에 AVSpeechSynthesizer이 iOS7에iOS 6 - AVSpeechSynthesizer 문제
if (NSClassFromString(@"AVSpeechSynthesizer")) {
AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc] init];
AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"Just what do you think you're doing, Dave?"];
utterance.rate = AVSpeechUtteranceMinimumSpeechRate; // Tell it to me slowly
[synthesizer speakUtterance:utterance];
}
@import AVFoundation; – Vjy