How to find the frequency of a sound file using fft on matlab?

6 次查看(过去 30 天)
Hello i have multiple sound recording which I need to find the frequency of, how can i do this using fft and matlab, how do i get the frequency by uploading the file?
Please help! Thank you!
  5 个评论
Walter Roberson
Walter Roberson 2017-11-23
There is no possible solution to this. When all that is available is the data, then it is absolutely impossible to tell the difference between a 10 Hz sine wave recorded at 20 samples per second, compared to a 20000 Hz sine wave recorded at 40000 Hz.
Now, if you happened to know that the data represented human speech, then it would be potentially possible to estimate the sampling frequency. But this gets into the category of having a component of (approximately) known frequency, which you indicated earlier is not your situation.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2017-11-20
Sorry, unless you have something known about the data, then it is not possible to determine the frequency. For example, the data for a 10 Hz tone for 5 seconds is exactly the same as the data for a 5 Hz tone sampled for 10 seconds.
If the data is in the form of an audio file such as an mp3 file, then those have a sampling frequency recorded in them that can be used to analyze the data. However, if you just have raw data there is nothing you can do.
  6 个评论
Hamza Ashraf
Hamza Ashraf 2020-1-29
编辑:Hamza Ashraf 2020-1-29
oki thank you i understand that. can you tell me how to measure dopler of the sound from the mic? i want to do comparison between siren of ambulances at different distances from mic(sound capturing device).

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Audio I/O and Waveform Generation 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by