Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support formant shifting (in addition to formant preservation) #53

Open
JackismyShephard opened this issue Nov 29, 2024 · 1 comment
Open

Comments

@JackismyShephard
Copy link

I an wondering whether it would be possible (or perhaps already is) to perform formant shifting with this library. I have seen this library used in other projects for the purpose of formant shifting by doing something like

pitchshifter.shiftpitch(
                audio,
                factors=1,
                quefrency=formant_qfrency * 1e-3,
                distortion=formant_timbre,
            )

but that does not really have any effect.

I don't really know that much about formant shifting so apologies in advance if my question is not well phrased.

@jurihock
Copy link
Owner

jurihock commented Dec 5, 2024

stftPitchShiftDemo provides some demos for timbre shifting, without pitch altering.

Depending on your source signal you have to adjust the "quefrency" value, which is the reciprocal of the fundamental frequency of the source signal. See also readme and #52.

This specific algorithm may not work with all possible signal sources. If it doesn't work well for your source signal, please feel free to choose a different tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants