class="sd">    filt_len : int</span>
<span class="sd">        Median filter length</span>
<span class="sd">    dim : int</span>
<span class="sd">        Dimension in which median filter should be applied</span>

<span class="sd">    Returns</span>
<span class="sd">    -------</span>
<span class="sd">    Y : np.ndarray</span>
<span class="sd">        Median-filtered spectrogram</span>

<span class="sd">    &quot;&quot;&quot;</span>
    <span class="n">s</span> <span class="o">=</span> <span class="n">X</span