Can you help me tweak the window of this code, so that it only captures the high peaks of the speech signal?

1 view (last 30 days)
Hey guys, I'm working on a pitch extraction code and I was wondering if anyone who knows matlab could help me tweak it a little bit.
The idea is that I am searching for the highest energy peaks of the speech signal, and determining the frequency of those peaks. The problem with the code, is that the window captures the peak, but the window also catches some of the consonant (the small part of the signal) as well, which screws up the outcome of the data. I need it to spread the window out only over the peak, and ignore the consonants. The Following is my code. I realize that you don't have access to my sound file, but any wav file of someone talking should work for this code.
This contains my code.

Answers (0)

Categories

Find more on Simulation, Tuning, and Visualization in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!