Comments (11)
The arrays are not the same shape.........
from audio-signal-processing.
from audio-signal-processing.
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.
not working @rudrathegreat
from audio-signal-processing.
Same issue can anyone, guide me through this. Please can you give an update if there is any?
from audio-signal-processing.
Hi Guys sorry for the late reply.
Hmmm.... Can't really say much about this problem. I think you need to either -
- Read the NumPy documentation
- Find a similar problem and see how they solved it
- Debug your code in some IDE that allows you to see the shape and content of the array
from audio-signal-processing.
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.
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.
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.
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.
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)
- No Module Named scipy.fft HOT 12
- TypeError HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audio-signal-processing.