InverseSpectrogram
InverseSpectrogram[data]
reconstructs the signal from the magnitude spectrogram data.
InverseSpectrogram[img]
reconstructs the signal, assuming that the image img is the magnitude spectrogram.
InverseSpectrogram[input,n]
assumes the spectrogram data was computed with partitions of length n.
InverseSpectrogram[input,n,d]
assumes partitions with offset d.
InverseSpectrogram[input,n,d,wfun]
assumes a smoothing window wfun was applied to each partition.
Details and Options
- InverseSpectrogram approximates an inverse of the magnitude spectrogram.
- To compute the short-time Fourier transform of lists and audio signals, use ShortTimeFourier.
- 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:
-
FourierParameters {1,-1} Fourier parameters to be used MaxIterations Automatic maximum number of iterations Method Automatic the method to use - Possible method settings include:
-
Automatic uses automatic method "GriffinLim" iteratively approximates the phase "SPSI" uses single-pass spectrogram inversion "Hybrid" uses the SPSI as the inital phase for Griffin–Lim - The "Hybrid" method is used by default.
Examples
open allclose allBasic Examples (3)
Scope (3)
Options (2)
MaxIterations (1)
Use the MaxIterations option to control the quality of the result and the speed of the operation:
Method (1)
The "Griffin-Lim" method uses an iterative algorithm to approximate the original signal:
The "SPSI" method approximates the signal in a non-iterative way, which is relatively fast:
The "Hybrid" method uses the result of the "SPSI" method as the starting guess for iterative method "Griffin-Lim", which may converge faster:
Applications (2)
Properties & Relations (1)
Compute the spectrogram of a signal and its approximate inverse:
Compute the short-time Fourier transform:
Discard the redundant part and take the absolute value to get the magnitude spectrogram:
Use InverseSpectrogram to compute the approximated inverse of the spectrogram:
Text
Wolfram Research (2019), InverseSpectrogram, Wolfram Language function, https://reference.wolfram.com/language/ref/InverseSpectrogram.html.
CMS
Wolfram Language. 2019. "InverseSpectrogram." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/InverseSpectrogram.html.
APA
Wolfram Language. (2019). InverseSpectrogram. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/InverseSpectrogram.html