bjbschmitt / AMFM_decompy

Package containing the tools necessary for decomposing a speech signal into its modulated components (also known as AM-FM decomposition). Includes the algorithms of the QHM family and the YAAPT pitch tracker.
MIT License
85 stars 18 forks source link

Error when using pYAAPT for pitch tracking #12

Closed ahmed-fau closed 1 year ago

ahmed-fau commented 2 years ago

Hi,

I am using pYAAPT to process multiple speech files, each has 16320 samples at sampling rate = 16kHz with the following config: pitch = pYAAPT.yaapt(signal, **{'f0_min' : 50.0, 'frame_length' : 20.0, 'tda_frame_length' : 20.0} )

However, I get the following error about the time domain frame length:

AssertionError: ERROR: Negative index in the cross correlation calculation of the pYAAPT time domain analysis. Please try to increase the value of the "tda_frame_length" parameter.

I don't want to increase the time domain frame length to keep the time resolution high enough (e.g. 20ms). Is there any workaround I can do instead?

Thanks in advance!

bjbschmitt commented 2 years ago

Hi @ahmed-fau, thank you for your feedback.

Could you please send one of the wav files that are causing the issue? I want to check if there is something that must fixed in the code, or, as you mentioned, just a matter of finding a workaround to solve your problem.

bjbschmitt commented 1 year ago

Since I received no feedback from this topic, I will close it.