How to gender recognition with fft
97 次查看(过去 30 天)
显示 更早的评论
Hello everyone!
I'm new to Matlab and for a project I need to do a "simple" exercise.
I need to record a voice and decide if it's a male or female voice.
How?
Simple:
- record a wave
- use fft on wave
- use statistics that counts the frequencies
- if there're more lower frequencies then the voice is from male
- if there're more upper frequencies then the voice is from female
(I know it's not very accurate, but this is my task)
I searched the internet for content and I was able to:
- record voice from microphone
- convert audiorecorder file to wav
- use fft on wav file
- but I don't know how to count the frequencies and decide the gender
I put a link here to the .m file where I'm at right now:
Advices, tips, codes are welcome.
Thanks!
ps: I found out that the MatLab FFT function only returns on vector of amplitudes. Is this a problem?
3 个评论
Umr Nawaz
2022-6-10
@kalsoom fatima thanks for the consideration. My email address is rumarnawaz@gmail.com
回答(3 个)
Star Strider
2014-11-24
Interesting problem!
A free online article ‘Phonetic differences between male and female speech’ goes into significant detail. Also ‘The frequency range of the voice fundamental in the speech of male and female adults’ will give you some general guidance. I would certainly do a PubMed search for more information.
See the documentation for fft to understand how to calculate a frequency vector for your fft. You have to know your sampling frequency ‘Fs’, and the rest is straightforward.
If this was my project, my initial approach would use two appropriately-designed bandpass filters (Signal Processing Toolbox), and then compare the RMS values of the outputs of the respective filters to determine the gender. Your final design will depend on how robust you want your classification scheme to be.
19 个评论
Akshat Dashore
2018-5-17
please replace file name present inside wav.read and read with other downloaded audio file
Richard Tony
2020-5-22
Hi, can you please tell me in your code, why do you use the value of 0.14 to compare with the meanfreq?? how did you deduce the value?
Brian Hemmat
2019-4-12
The Audio Toolbox includes an example on gender identification using LSTM networks:
The example requires Audio Toolbox and Deep Learning Toolbox.
0 个评论
kalsoom fatima
2021-12-20
hi.can i get the complete source code of your project please.
thankyou
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!