How to create a pydub AudioSegment using an numpy array?
<p>I have the following code in python</p>

<pre><code>from scipy.io.wavfile import read
rate, signal = read('./data/input.wav')
# get only one channel
signal = signal[:,0] 
# do a bunch of processing here
</code></pre>

<p>Now I want to create an pydub segment using 'signal' and 'rate'</p>

<pre><code>audio_segment = pydub.AudioSegment()
</code></pre>

<p>So how can I create this audio segment, and after that, 
how can I get back my signal as an numpy array?</p>