I would like to record my voice and visualize the audio live. I use the AudioRecorder on the iMedia library for this. I read in the Apple documentation that you can activate audio metering and extract the data from it.
Unfortunately the AudioRecorder library does not support this, how can I extend the AudioRecorder with objc code?
It is about the following properties:
developer.apple.com
developer.apple.com
developer.apple.com
Thanks
Unfortunately the AudioRecorder library does not support this, how can I extend the AudioRecorder with objc code?
It is about the following properties:
ismeteringenabled

isMeteringEnabled | Apple Developer Documentation
A Boolean value that indicates whether you’ve enabled the recorder to generate audio-level metering data.
updateMeters

updateMeters() | Apple Developer Documentation
Refreshes the average and peak power values for all channels of an audio recorder.
averagePowerForChannel

averagePower(forChannel:) | Apple Developer Documentation
Returns the average power, in decibels full-scale (dBFS), for an audio channel.
Thanks