Code covered by the BSD License  

Highlights from
Speech Spectrogram

4.0

4.0 | 1 rating Rate this file 39 Downloads (last 30 days) File Size: 2.8 MB File ID: #29596
image thumbnail

Speech Spectrogram

by Kamil Wojcicki

 

01 Dec 2010

High quality speech spectrogram plot generation routine

| Watch this File

File Information
Description

Takes a vector containing audio data samples as an input, computes short-time Fourier transform (STFT) and plots the STFT power spectrum trajectories across time.

MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
01 Apr 2011 Alecsander Eitan

Very nice and works well.
I'll appreciate if it could support color spectrogram.

10 Apr 2011 Kamil Wojcicki

Hi Alecsander, you can pass color map as one of the inputs to the myspectrogram method. In the test_myspectrogram.m try, f.e.,

myspectrogram( speech.(method), fs, [22 1], @hamming, 2048, [-59 -1], false, 'hot', false, 'per' );

Alternatively you can specify color map for the current figure after calling the myspectrogram method, e.g.,

myspectrogram( speech.(method), fs );
colormap hot;
%colormap jet;

See also http://www.mathworks.com/help/techdoc/ref/colormap.html

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
spectrogram Kamil Wojcicki 09 Dec 2010 08:40:34
plot Kamil Wojcicki 09 Dec 2010 08:40:34
image Kamil Wojcicki 09 Dec 2010 08:40:34
power spectrum Kamil Wojcicki 09 Dec 2010 08:40:34
image processing Kamil Wojcicki 09 Dec 2010 08:40:34
signal processing Kamil Wojcicki 09 Dec 2010 08:40:34
speech Kamil Wojcicki 09 Dec 2010 08:40:34
image yushan su 24 May 2011 02:45:31
spectrogram yushan su 24 May 2011 02:45:39

Contact us at files@mathworks.com