We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
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,wfun]
assumes a smoothing window wfun was applied to each partition.
Details and OptionsGenerate an audio signal, assuming a cellular automaton evolution to be the magnitude spectrum:
Reconstruct a signal from a magnitude spectrum:
Construct an Audio object from an Image:
Compute the spectrogram of the resulting signal:
Scope (3)The partition size must match the value inferred from the input data:
The inferred partition size is 2×(size-1), where size is the second dimension of the input matrix:
By default, the partition offset is of the inferred partition size:
Specify a different partition offset:
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)Reconstruct an Audio object from its magnitude spectrum:
Construct an Audio object from image data:
Convert the image to grayscale and rotate appropriately:
Reconstruct the signal with the assumption that the image was its spectrogram:
Compute the spectrogram of the resulting signal:
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:
Possible Issues (1)The partition size must match the value inferred for the input data:
The inferred partition size is 2×(size-1), where size is the second dimension of the input matrix:
Signal reconstruction cannot be done with other partition sizes:
Wolfram Research (2019), InverseSpectrogram, Wolfram Language function, https://reference.wolfram.com/language/ref/InverseSpectrogram.html. TextWolfram Research (2019), InverseSpectrogram, Wolfram Language function, https://reference.wolfram.com/language/ref/InverseSpectrogram.html.
CMSWolfram Language. 2019. "InverseSpectrogram." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/InverseSpectrogram.html.
APAWolfram Language. (2019). InverseSpectrogram. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/InverseSpectrogram.html
BibTeX@misc{reference.wolfram_2025_inversespectrogram, author="Wolfram Research", title="{InverseSpectrogram}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/InverseSpectrogram.html}", note=[Accessed: 12-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_inversespectrogram, organization={Wolfram Research}, title={InverseSpectrogram}, year={2019}, url={https://reference.wolfram.com/language/ref/InverseSpectrogram.html}, note=[Accessed: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4