Languages

Menu
Sites
Language
How can i get the frequncy of the recorderd audio file?

 

 

I want to know the frequency of audio file. I had a little bit idea that it can be done using FFT, but I am not sure how to do it.

 

i m using AudioRecorder class to record file. There are not much function provided in this class. Please help.

 

 

 

 

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 Replies
muditha murthy
After the recording is completed and recorded file is saved. You can use Tizen::Content::AudioMetadata class to get frequency, duration , bitrate and all other attributes of the recorded clip.
Sergei Epatov
Tizen::Content::AudioMetadata will tell you absolutely wrong(!!!) frequency, which would be file sampling rate. Topicstarter asked about playing note frequency of musical instrument. You should use either peaks of self-correlation function, or peaks of power spectrum density function (FFT multiplied by complex conjugate of itself, or FFT amplitude).
Sunny Shah
@serje thanks.. I've looked at a couple of open source (http://www.fftw.org/) libraries but I really don't know how to use these for my problem.Any help would be greatly appreciated.