OBJC AVSpeechUtterance writeUtterance how?
问题 I am trying to create a TTS to file in Objc. Since iOS13 can write it to a file. But I'm stuck with writeUtterance:toBufferCallback. Do someone has an exemple with this function in objc? [synth speakUtterance:utterance]; 回答1: Referring to the potential answer in Swift, this would be the Objective-C implementation AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc] init]; AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:@"test 123"]; AVSpeechSynthesisVoice