Post

Replies

Boosts

Views

Activity

AVSpeechSynthesizer on iOS14.5.1
I have developed codes to generate PCM data by AVSpeechSynthesizer.  This codes worked very well. But callback is not called on iOS14.5.1. What should I do ? speechSynth = [[AVSpeechSynthesizer alloc] init]; speechSynth.delegate = (id)self; AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:text]; utterance.rate = voiceRate; utterance.pitchMultiplier = voicePitch; utterance.voice = [AVSpeechSynthesisVoice voiceWithIdentifier:speaker]; [speechSynth writeUtterance:utterance toBufferCallback:^(AVAudioBuffer *buffer ) { AVAudioPCMBuffer *pcmBuffer = (AVAudioPCMBuffer *)buffer;.....
2
0
762
May ’21