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

IndexError: index 40 is out of bounds for axis 1 with size 40 #1

Open
zsn900503 opened this issue Jul 20, 2018 · 1 comment
Open

IndexError: index 40 is out of bounds for axis 1 with size 40 #1

zsn900503 opened this issue Jul 20, 2018 · 1 comment

Comments

@zsn900503
Copy link

First of all, thanks for sharing the code, it really helps a lot

One small mistake: When I tried to implement pncc on my wav file, i received this arror:

File "", line 99, in mean_power_normalization
myu[m] = lam_myu * myu[m - 1] + (1.0 - lam_myu) / L * sum([transfer_function[m, s] for s in range(0, L - 1)])

IndexError: index 40 is out of bounds for axis 1 with size 40

It's because the default of L = 80 while our size of transfer_function is (n * 40)

I'm new to PNCC, my question is shouldn't the result of pncc = (No. of frames * n_pncc = 13 in our case)? Also in pncc function, though we defined n_pncc = 13, seems that we never use it?

@mhmdghazal
Copy link

hello
how to run this code in command line pls?

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