Open Looki2000 opened 4 months ago
Thank you for your report. PSOLA in pytsmod is re-implementation of the MATLAB implementation in the DAFX Digital Audio Effects book.
It isn't easy to improve the algorithm without any references, so if you have any cases with the code, please share them with me.
I cannot promise that it can be fixed in the near future, but I will check it.
I think there is exactly the sample problem as with this implementation: https://dsp.stackexchange.com/questions/61687/problem-using-pitch-shifting-with-td-psola-and-formant-preservation PSOLA should not try to fill gaps for low pitches. It should leave blank spaces. It sounds very unintuitive, but it's just a limitation of the algorithm itself. I don't have any reference code because I haven't found any correct implementation yet lol
Describe the bug When changing pitch of a voice with tsm.tdpsola by low beta factor, pitch stays the same and you can hear clicking artifacts. There are pitch shifting plugins that use TD-PSOLA and allow for even lower pitch changes, so I don't think this is a limitation of the algorithm.
To Reproduce Code to reproduce the behavior:
Desktop: