AVSpeechSynthesizer *av=[[AVSpeechSynthesizer alloc]init];
AVSpeechUtterance *UTT=[[AVSpeechUtterance alloc]initWithString:yourText];
[av speakUtterance:UTT];
时间: 2024-10-12 20:25:38
AVSpeechSynthesizer *av=[[AVSpeechSynthesizer alloc]init];
AVSpeechUtterance *UTT=[[AVSpeechUtterance alloc]initWithString:yourText];
[av speakUtterance:UTT];