Forum Xamarin.iOS

How to convert an AVAudioBuffer to NSData to use for playback on AVAudioPlayer?

Hi everybody.

I have a voice to text application and I'm trying to get the AVAudioBuffer that it generates and convert it to NSData at the end of the voice recognization and save it away for playback at a later date using an AVAudioPlayer.

Can anybody help me with this? I found a few examples in Objective-C and Swift butI'm having trouble translating it over.

Any and all help is greatly appreciate, thanks!

Answers

Sign In or Register to comment.