bastibe / pocoder

A vocoder implemented in Python
3 stars 1 forks source link

Is there a limitation in bit rate or any other type of constraint on the wav file? #1

Closed jcopps closed 6 years ago

jcopps commented 6 years ago

I tried to get this file processed. But it throws N number of errors. Can you please help/fix them. https://ufile.io/s2vkw

bastibe commented 6 years ago

Please show me the exact code you are trying to run, the error message you get, and tell me the version of Python or Matlab you are running.

jcopps commented 6 years ago

Traceback (most recent call last): File "pocoder.py", line 123, in out = vocode(data, fs, block_len, overlap, order) File "pocoder.py", line 79, in vocode block = hann(len(block)) gain_correction ValueError: non-broadcastable output operand with shape (353,1) doesn't match the broadcast shape (353,353)

Also had to fix this line: samples = data[int(idxshift_samples):int(idxshift_samples+block_samples)]

PYTHON: 2.7.10

bastibe commented 6 years ago

Try a one-dimensional array instead of a mono array.

jcopps commented 6 years ago

Its a blackbox to me. The file that was given as input is available in the issue description.

bastibe commented 6 years ago

You treat me as if I am a customer service representative paid for helping you. I am not. I do this in my free time, out of kindness. I am not obligated to help you.

The example code you gave me is not sufficient. I do not know what your data is, or your fs, or your block_len, etc. From the error message, which is incomplete as well, I can tell you that the shape of your data is incorrect, and I think you should try some one-dimensional data instead of your two-dimensional mono array.

Now either you try to help me help you, or you are on your own.

jcopps commented 6 years ago

I am sorry I didn't mean to be rude. Sorry if thats how I sounded in the above text. See, I am new to vocoders and am just trying to run some sample codes and came across this one which was quite straight forward to use it. Didn't know the data or got to know that the data has to be in a particular form.

Cheers

jcopps commented 6 years ago

Apologies. That wasn't intentional. I am all new to vocoders, and hence I was just trying to find the most straight forward apps to understand its purpose.