-
Notifications
You must be signed in to change notification settings - Fork 248
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
Using Pitch shift generates empty audio file #267
Comments
Hi @AWAS666! I'm not sure I can help unless you have a code example to reproduce the issue. The
|
I did just use the the tutorial and switch it up with pitchshift
|
Hmm, this does appear to be a more complicated bug than I thought - while the pitch shifter does buffer audio, it should still output something. This might require a bugfix on my end. Thanks for the report! In the meantime, if you're only modifying fairly small audio files that have fixed durations, you can use the with AudioFile('test2.wav') as f:
with AudioFile('test.wav', 'w', f.samplerate, f.num_channels) as o:
o.write(pedalboard.time_stretch(f.read(f.frames), f.samplerate, pitch_shift_in_semitones=7)) |
I set reset to True and that seems to make the example work |
So I have been trying to use this to change the pitch of a tts voice on the fly.
I basically just wanna apply the pitch shift to a wav with with 22050 sample rate.
If I just use any other effect, it works perfectly fine, but if I use the pitch shift I get an empty audio file.
It seems to not write anything do it as the size changes from 5mb to 1kb
Other effects like "Chorus" work just fine though
The text was updated successfully, but these errors were encountered: