what is amplitudes of a wav signal...
3 ビュー (過去 30 日間)
古いコメントを表示
i need to find amplitudes of a wav file. so how can i approach for it.. i have an idea, just tell me weather it is right or wrong. if it is so, please guide me in correct way...
abs(fft(wavefile))
is this can give amplitudes????
0 件のコメント
回答 (2 件)
Daniel Shub
2011 年 11 月 21 日
Assuming that wavefile is an array and not a string with the file name, then what you have will give you the amplitude as a function of frequency. It may make more sense to do:
20*log10(abs(fft(wavefile)))
0 件のコメント
Wayne King
2011 年 11 月 21 日
Are you trying to relate the values of the wav file to some physical variable, like volts? If that is the case, then you need to rely on information about how the wave file was recorded.
Just looking at the .wav file in MATLAB is not going to give you that information in the absence of knowing exactly how it was recorded.
2 件のコメント
Walter Roberson
2011 年 11 月 21 日
Are you looking for amplitude in terms of the voltage passed by the microphone to the "line in" connector? Or are you looking for the sound pressure level? Or the sound intensity level?
If you are looking for voltage, then there is a fairly simple linear relationship that can be calculated, but if you are looking for sound intensity level or sound pressure level, then a fair bit of work has to be done in order to calibrate your microphone response against known volumes or pressures.
参考
カテゴリ
Help Center および File Exchange で Speech Recognition についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!