Spectrogram

Spectrogram[list]

plots the spectrogram of list.

Spectrogram[list,n]

uses partitions of length n.

Spectrogram[list,n,d]

uses partitions with offset d.

Spectrogram[list,n,d,wfun]

applies a smoothing window wfun to each partition.

Spectrogram[list,n,d,wfun,m]

pads partitions with zeros to length m prior to the computation of the transform.

Spectrogram[audio,]

plots the spectrogram of audio.

Spectrogram[video]

plots the spectrogram of the first audio track in video.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Spectrogram of a chirp signal:

Spectrogram of an audio signal:

Scope  (2)

Use a specific window size and offset:

By default, a suitable window size and offset is chosen:

Use smaller window size to reduce the frequency resolution:

Use larger window size to improve the frequency resolution:

Specify the smoothing window function:

No smoothing:

Spectrogram of the audio track of a video:

Options  (7)

ColorFunction  (1)

Use a built-in color gradient as the color function:

Use an arbitrary color function:

Method  (1)

By default, frequency is shown using linear scaling:

Use mel frequency scaling:

PlotRange  (4)

PlotRange->Automatic automatically computes the frequency range to display:

This is equivalent to PlotRange->{All,Automatic,All}:

Show the full spectrogram:

Zoom into a specific part of the spectrogram:

Use PlotRange->{min,max} to control the frequency range of the spectrogram:

Specify range of frequencies:

Specify maximum frequency:

SampleRate  (1)

Specify the sampling rate of the data:

Applications  (3)

Spectrogram of a sound signal:

Spectrogram of an impulsive sound:

Spectrogram of an image:

Properties & Relations  (1)

Create a spectrogram from the SpectrogramArray:

Comparison with the default Spectrogram output:

Neat Examples  (1)

Sound and spectrogram of dual-tone for Wolfram Research customer service number:

Wolfram Research (2012), Spectrogram, Wolfram Language function, https://reference.wolfram.com/language/ref/Spectrogram.html (updated 2024).

Text

Wolfram Research (2012), Spectrogram, Wolfram Language function, https://reference.wolfram.com/language/ref/Spectrogram.html (updated 2024).

CMS

Wolfram Language. 2012. "Spectrogram." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/Spectrogram.html.

APA

Wolfram Language. (2012). Spectrogram. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Spectrogram.html

BibTeX

@misc{reference.wolfram_2024_spectrogram, author="Wolfram Research", title="{Spectrogram}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/Spectrogram.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_spectrogram, organization={Wolfram Research}, title={Spectrogram}, year={2024}, url={https://reference.wolfram.com/language/ref/Spectrogram.html}, note=[Accessed: 21-November-2024 ]}