# tf.signal.inverse_stft_window_fn

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/ops/signal/spectral_ops.py#L95-L152) |

Generates a window function that can be used in `inverse_stft`.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.signal.inverse_stft_window_fn`](https://www.tensorflow.org/api_docs/python/tf/signal/inverse_stft_window_fn)

<br />

    tf.signal.inverse_stft_window_fn(
        frame_step,
        forward_window_fn=https://www.tensorflow.org/versions/r2.14/api_docs/python/tf/signal/hann_window,
        name=None
    )

Constructs a window that is equal to the forward window with a further
pointwise amplitude correction. `inverse_stft_window_fn` is equivalent to
`forward_window_fn` in the case where it would produce an exact inverse.

See examples in `inverse_stft` documentation for usage.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `frame_step` | An integer scalar `Tensor`. The number of samples to step. |
| `forward_window_fn` | window_fn used in the forward transform, `stft`. |
| `name` | An optional name for the operation. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A callable that takes a window length and a `dtype` keyword argument and returns a `[window_length]` `Tensor` of samples in the provided datatype. The returned window is suitable for reconstructing original waveform in inverse_stft. ||

<br />