To reconstruct an original waveform, a complementary window function should
be used with inverse_stft. Such a window function can be constructed with
tf.signal.inverse_stft_window_fn.
Example:
Implemented with TPU/GPU-compatible ops and supports gradients.
Args
stfts
A complex64/complex128[..., frames, fft_unique_bins]Tensor of STFT bins representing a batch of fft_length-point STFTs
where fft_unique_bins is fft_length // 2 + 1
frame_length
An integer scalar Tensor. The window length in samples.
frame_step
An integer scalar Tensor. The number of samples to step.
fft_length
An integer scalar Tensor. The size of the FFT that produced
stfts. If not provided, uses the smallest power of 2 enclosing
frame_length.
window_fn
A callable that takes a window length and a dtype keyword
argument and returns a [window_length]Tensor of samples in the
provided datatype. If set to None, no windowing is used.
name
An optional name for the operation.
Returns
A [..., samples]Tensor of float32/float64 signals representing
the inverse STFT for each input STFT in stfts.
Raises
ValueError
If stfts is not at least rank 2, frame_length is not scalar,
frame_step is not scalar, or fft_length is not scalar.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-23 UTC."],[],[]]