-
Notifications
You must be signed in to change notification settings - Fork 30
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
ValueError: operands could not be broadcast together with shapes (472000,) (472000,2) #2
Comments
The arrays are not the same shape......... |
I know that but the process you defined will give this structure at
that point
…On Fri, Dec 14, 2018 at 10:58 AM Rudra ***@***.***> wrote:
The arrays are not the same shape.........
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVYJOjGZXdbilkEOyy2gPFUivDq96facks5u4zbugaJpZM4ZQ7rA>
.
|
NewSound = np.zeros_like(array) # or array which has shape (472000, 2)
for i in range(2):
'''If line below gives error, then try doing this - :, i
If the line still gives the error, then move this part [i, :] next to GuassianNoise and
then change the line NewSound = np.zeros_like(array) to NewSound =
np.zeros_like(GuassianNoise)'''
NewSound[i, :] = GuassianNoise + array[i, :] Or something like that |
not working @rudrathegreat |
Same issue can anyone, guide me through this. Please can you give an update if there is any? |
Hi Guys sorry for the late reply. Hmmm.... Can't really say much about this problem. I think you need to either -
|
GuassianNoise shape is (n, ) and array shape is (n, 2) |
ValueError Traceback (most recent call last) ValueError: setting an array element with a sequence. i didn't get that. |
Again, I am just a 13-year old Python Developer, I have still got a lot to learn. I'm sorry but I can't help in this issue. I'm not an expert. |
Hello, I have a question. The code was executed perfectly and the new wav file was created but it refuses to be played. How do I solve this? |
I've experienced similar problems when generating wav files using scipy in general. It's just that the bit rate is way to high, like 18786kbps or something insane like that |
NewSound = GuassianNoise + array
Traceback (most recent call last):
File "", line 1, in
NewSound = GuassianNoise + array
ValueError: operands could not be broadcast together with shapes (472000,) (472000,2)
The text was updated successfully, but these errors were encountered: