-
Notifications
You must be signed in to change notification settings - Fork 122
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
Some audio files result in NAN values in aperiodicity #50
Comments
Hi, @Kal213 , thank you for reporting this issue. I tested it out and found it really strange. It seems that casting the For now, I can only suggest that you load the wav file using If you have other solutions, or find this workaround not working, please share your findings with us. Thanks. |
I guess it's because librosa.load will read and interpolate points to the specified sample rate. |
I also just discovered this problem, and yes, I found the solution to be the same as jerry-cj-chang's. So your float has to be recast to 16bit and then to 64bit before passing it to world. Hope there's a proper fix soon. |
When using wav2world (or DIO and D4C), I've noticed that sometimes the aperiodicity returns with nan values in it. This causes me issues when I try to synthesize the audio back.
I've been unable to find exactly what causes it, but I've found that taking the absolute value of the audio data before inputting it will "fix" the issue.
I've attached a short python script and an audio file that causes the problem on my build. If you have any ideas what's causing this or how to fix it please let me know!
As a final note, some audio samples with negative values work well with this. It's very odd, and maybe just an issue with WORLD itself.
example.zip
The text was updated successfully, but these errors were encountered: