Save audio stream to mp3 file (iOS)

I have an AVSpeechSynthesizer that converts text to speech, but I ran into a problem.

I don’t know how to save the audio file that it creates into a music file, which I really would like to make!

So here is my question: how do you save the output of AVSpeechSynthesizer, and if this is not possible, can I AVFoundation, CoreMedia or another public API to capture the output of the speakers, but before it comes out?

Thanks!

+4
source share
1 answer

Unfortunately no, there is no public API available to capture speaker output and view documents for AVSpeechSynthesizer and its related classes. I see no way to capture any sound from it. You may want to look at third-party libraries to help with this.

Related questions:

Record audio output from iphone speaker only without microphone

IPhone Text Libraries

+3
source

All Articles