Need help reducing/ compressing audio file using swift

Hi all!


I posted this qustion to Stack Overflow in the past 24 hours. Really trying to get an answer to this as my current solution appears to be missing something. Here is the post;

https://stackoverflow.com/questions/51854299/audio-file-will-not-play-after-reducing-it-using-avassetreader-avassetwriter


If anyone is able to help and provide an answer, I would highly appreciate it. 🙏