Comments (1)
To give some more context I have tried out the following:
from pyAudioAnalysis import audioBasicIO as io, audioFeatureExtraction as aF, audioSegmentation
[Fs, x] = io.readAudioFile("test_data/1992_10_28_06_10.wav") #read in a sample file
signal = io.stereo2mono(x)
mtWin = 2.4 #also WIDTH_SEC
mtStep = 1.0
mtWin2 = int(mtWin * Fs)
mtStep2 = int(mtStep * Fs)
stWin = 0.020
stStep = 0.015
curPos = 0
N1 = curPos
N2 = curPos + mtWin2 + stStep*Fs
N = len(signal)
if N2 > N:
N2 = N
xtemp = signal[int(N1):int(N2)] #let is just look at the first 2.4 seconds
specgram, TimeAxis, FreqAxis = aF.stSpectogram(xtemp, Fs, 882.0, 662.0, False)
print(specgram.shape)
print(Fs)
print(N)
which prints out the following
>>> print(specgram.shape)
(160, 441)
>>> print(Fs)
44100
>>> print(N)
216970240
And already here the specgram shapes are not the same.
Removing the break solves the problem, but lowers performance (as one could imagine)
Hopefully this helps a bit,
again thanks in advance
from cnns-speech-music-discrimination.
Related Issues (8)
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 cnns-speech-music-discrimination.