({{, (RefLink[InverseSpectrogram, paclet:ref/InverseSpectrogram])[data]
reconstructs the signal from the magnitude spectrogram data.}, {, (RefLink[InverseSpectrogram, paclet:ref/InverseSpectrogram])[img]
reconstructs the signal, assuming that the image img is the magnitude spectrogram.}, {, (RefLink[InverseSpectrogram, paclet:ref/InverseSpectrogram])[input,n]
assumes the spectrogram data was computed with partitions of length n.}, {, (RefLink[InverseSpectrogram, paclet:ref/InverseSpectrogram])[input,n,d]
assumes partitions with offset d.}, {, (RefLink[InverseSpectrogram, paclet:ref/InverseSpectrogram])[input,n,d,wfun]
assumes a smoothing window wfun was applied to each partition.}})

OpenersNotesSection(Spacer1)Details and Options

(RefLink[InverseSpectrogram, paclet:ref/InverseSpectrogram]) approximates an inverse of the magnitude spectrogram.

To compute the short-time Fourier transform of lists and audio signals, use (RefLink[ShortTimeFourier, paclet:ref/ShortTimeFourier]).

(RefLink[InverseSpectrogram, paclet:ref/InverseSpectrogram]) assumes that real matrix input is a magnitude spectrogram without the redundant part. This means that the window size used was 2(size-1), where size is the second dimension of the input matrix.

The inverse spectrogram can be computed from the spectrogram if the offset d is smaller than half the size of the partition length n.

The following options can be given:

Possible method settings include:

The "Hybrid" method is used by default.

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Reconstruct a signal from its magnitude spectrum:

InverseSpectrogram[]

Spectrogram[%]

Construct an (RefLink[Audio, paclet:ref/Audio]) object from an (RefLink[Image, paclet:ref/Image]):

InverseSpectrogram[]//Audio

Compute the spectrogram of the resulting signal:

Spectrogram[%,PlotRange->All,AspectRatio->1]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[InverseShortTimeFourier, paclet:ref/InverseShortTimeFourier])  ▪  (RefLink[ShortTimeFourier, paclet:ref/ShortTimeFourier])  ▪  (RefLink[SpectrogramArray, paclet:ref/SpectrogramArray])  ▪  (RefLink[Spectrogram, paclet:ref/Spectrogram])  ▪  (RefLink[Audio, paclet:ref/Audio])  ▪  (RefLink[PeriodogramArray, paclet:ref/PeriodogramArray])  ▪  (RefLink[Fourier, paclet:ref/Fourier])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Fourier Analysis, paclet:guide/FourierAnalysis])}, {▪(RefLinkPlain[Signal Processing, paclet:guide/SignalProcessing])}, {▪(RefLinkPlain[Audio Representation, paclet:guide/AudioRepresentation])}})}})