Audio recording and wave form drawing on ios
Asked Answered
E

1

7

I'm recording audio using AVAudioRecorder and after recording I want to draw a wave form of the recorded audio. I've found a nice article about wave form drawing, but it first I need the frequencies at a certain sample rate as floats, right?

Do I need to do FFT on the audio and how do I do this? Is *AVAudioRecorder** even the API for this purpose? Or do I need to use some lower API to record the audio? Hope someone can help me.

Entity answered 20/4, 2011 at 9:55 Comment(1)
I want to do exaclty what you describe, did you succeed and in that case how? :)Ross
B
4

AVAudioRecorder doesn't look like it's much use for this (although it may be possible). You need to look at recording with AudioQueue.

The 'waveform' of the audio isn't the frequencies. The waveform is the value of the samples that make up the audio (you can get these when recording with an AudioQueue). FFT converts the audio samples from the time domain to the frequency domain - if you draw the output of the FFT you will have a Spectrograph instead of a waveform.

Blueing answered 20/4, 2011 at 11:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.