AVSpeechSynthesizer - If AVSpeechSynthesizer is Speaking & if has stopped speaking
问题 I want to display a view on my app whilst AVSpeechSynthesizer is speaking, and for the view to disappear when it has stopped speaking. -(void)speakText { AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc] init]; float speechSpeed = 0.12; AVSpeechUtterance *synUtt = [[AVSpeechUtterance alloc] initWithString:textString]; [synUtt setRate:speechSpeed]; [synUtt setVoice:[AVSpeechSynthesisVoice voiceWithLanguage:selectedVoice]]; [synthesizer speakUtterance:synUtt]; //BELOW TO APPEAR