![wavesurfer get formant values wavesurfer get formant values](https://www.ee.columbia.edu/~dpwe/classes/e6820-2001-01/xlx/project/waveform/costa-wav.png)
![wavesurfer get formant values wavesurfer get formant values](https://home.cc.umanitoba.ca/~krussll/138/sec4/f1f1-2.gif)
In an ideal world the spectrogram plugin could determine the original sampling rate and so something with that information (such as create an audioContext with the same sampling rate) so that it doesn't resample and create that empty space, but I guess in the case of compressed audio this might be trickier. Does anybody know why it was originally set to something other than 1? The issue appears not to be with the FFT/spectrogram but with that heightFactor. Notice that the original demo.wav file has a sample rate of 22050hz and yet the demo implies there is frequency content above nyquist. This proved important when displaying waveforms with more frequency content if their sampleRate was low since the default audioContext seems to resample things pretty high (44.1 or 48kHz) and this results in a lot of black space at the top of the spectrogram. Using the DP approach, six formant estimation methods were first compared. I also specified an audioContext with "audioContext: new AudioContext()". Formant tracking is investigated in this study by using trackers based on dynamic programming (DP) and deep neural nets (DNNs). Changing the heightFactor = 1 fixed things. Notice that the fundamental frequency is incorrectly labeled at 8kHz. To demonstrate what I was seeing, we replaced the demo.wav file with a file that contains a 4kHz square wav (wav file with 16kHz sampling rate) and this is what I saw: My coworker came across this bug report when he searched around after we discovered that the spectrogram frequency content was mislabeled and half of what we expected it to be.