Giter Club home page Giter Club logo

Comments (11)

rudrathegreat avatar rudrathegreat commented on July 21, 2024

The arrays are not the same shape.........

from audio-signal-processing.

saurabhbidwai avatar saurabhbidwai commented on July 21, 2024

from audio-signal-processing.

rudrathegreat avatar rudrathegreat commented on July 21, 2024
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

from audio-signal-processing.

rakky18 avatar rakky18 commented on July 21, 2024

not working @rudrathegreat

from audio-signal-processing.

shreyask724 avatar shreyask724 commented on July 21, 2024

Same issue can anyone, guide me through this. Please can you give an update if there is any?

from audio-signal-processing.

rudrathegreat avatar rudrathegreat commented on July 21, 2024

Hi Guys sorry for the late reply.

Hmmm.... Can't really say much about this problem. I think you need to either -

  1. Read the NumPy documentation
  2. Find a similar problem and see how they solved it
  3. Debug your code in some IDE that allows you to see the shape and content of the array

from audio-signal-processing.

JinSolChoi avatar JinSolChoi commented on July 21, 2024

GuassianNoise shape is (n, ) and array shape is (n, 2)
Change array shape (n,2) to (n, )
so just change
-> NewSound = GuassianNoise + array[:, 1]
not NewSound = GuassianNoise + array

from audio-signal-processing.

UrsTrulyMahesh84 avatar UrsTrulyMahesh84 commented on July 21, 2024

ValueError Traceback (most recent call last)
in
45
46
---> 47 plt.stem(scale[0:5000], np.abs(FourierTransformation[0:5000]), 'r') # The size of our diagram
48 plt.title('Signal spectrum after FFT')
49 plt.xlabel('Frequency(Hz)')

ValueError: setting an array element with a sequence.

i didn't get that.
can i anyone suggest me to solve this error? @saurabhbidwai @rudrathegreat @rakky18 @shreyask724 @JinSolChoi @davidpraise45

from audio-signal-processing.

rudrathegreat avatar rudrathegreat commented on July 21, 2024

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.

from audio-signal-processing.

manarelbagoury avatar manarelbagoury commented on July 21, 2024

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?

from audio-signal-processing.

rudrathegreat avatar rudrathegreat commented on July 21, 2024

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

from audio-signal-processing.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.