title: Exporting noisereduce data in python
body: <p>I'm struggling to export the noise reduced audio using the noisereduce package in Python. I found the solution for reshaping the data on <a href="https://stackoverflow.com/questions/70730921/noisereduce-algorithm-in-python-not-working">another post</a>. Can anyone help?</p>
  <pre><code>def gate2(filename):
      data, rate = soundfile.read(filename)
      data = np.reshape(data, (2, -1))
      reduced_noise = noisereduce.reduce_noise(y=data, sr=rate)     # perform noise reduction
      soundfile.write('gated.wav', reduced_noise, rate, 'PCM_16')
      return
  </code></pre>