how to monitor audio input on ios using swift - example?

Viewed 7601

I want to write a simple app that 'does something' when the sound level at the mic reaches a certain level, showing the audio input levels for extra credit

cant find any examples in swift that get to this -- dont want to record, just monitor

have been checking out the docs on the AVFoundation classes but cant get off the ground

thanks

2 Answers
Related