0
이 간단한 코드는 내 iPhone에서는 잘 작동하지만 내 패드에서는 정상적으로 작동하지 않습니다. 음성 합성기는 무엇이든 상관없이 iPad에서 조용하게 유지됩니다. 무엇이 문제 일 수 있습니까? 선택한 텍스트에서 말하기는 iPad에서 작동하며 오류는 없습니다. 경고도, 메시지도, 아무것도.iPad에서 AVSpeechSynthesizer가 작동하지 않습니다.
iOS7에서 Xcode 6, iPhone 5s 및 iPad 4를 사용합니다.
#import <AVFoundation/AVFoundation.h>
AVSpeechSynthesizer *synthesizer;
@interface ViewController()
@end
@implementation ViewController
- (IBAction)Speak:(id)sender
{ NSString* Phrase = @"Hello world!";
synthesizer = [[AVSpeechSynthesizer alloc]init]; // init speech synth }
AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:Phrase];
[synthesizer speakUtterance:utterance];
}
안녕하세요. 마이클, 동일한 문제가 있습니다. 힌트를 얻었습니까? –
제 경우에는 음소거 스위치로 구성된 측면 스위치라고 말하면 곤란합니다. 귀하의 자녀가 귀하의 iPad의 패스 코드를 알고있을 때 그 일이 일어납니다. – Michael