self.synthesizer = [[AVSpeechSynthesizer
alloc]
init];
AVSpeechUtterance *utterance = [AVSpeechUtterance
speechUtteranceWithString:self.textField.text];
[self.synthesizer
speakUtterance:utterance];
时间: 2024-11-01 00:20:48
self.synthesizer = [[AVSpeechSynthesizer
alloc]
init];
AVSpeechUtterance *utterance = [AVSpeechUtterance
speechUtteranceWithString:self.textField.text];
[self.synthesizer
speakUtterance:utterance];