powered by
Compute the powerspectrum of the input signal. Basically output a power spectrogram using a Hamming window.
powspec(x, sr = 8000, wintime = 0.025, steptime = 0.01, dither = FALSE)
Matrix, where each column represents a power spectrum for a given frame and each row represents a frequency.
Vector of samples.
Sampling rate of the signal.
Window length in sec.
Step between successive windows in sec.
Add offset to spectrum as if dither noise.
Sebastian Krey krey@statistik.tu-dortmund.de
Daniel P. W. Ellis: https://www.ee.columbia.edu/~dpwe/resources/matlab/rastamat/
specgram
testsound <- normalize(sine(400) + sine(1000) + square(250), "16") pspectrum <- powspec(testsound@left, testsound@samp.rate)
Run the code above in your browser using DataLab