span class="p">,</span> <span class="mi">1</span><span class="p">)</span>

    <span class="c1"># Pad the audio to center the windows and to avoid problems at the end</span>
    <span class="n">x_padded</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">vstack</span><span class="p">((</span><span class="n">np</span><span class="o">.</span><span class="n">zeros</span><span class="p">((</span><span class="n">win_len_half</span><span class="p">,</span> <span class=