I have the following code in python
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
Now I want to create an pydub segment using 'signal' and 'rate'
audio_segment = pydub.AudioSegment()
So how can I create this audio segment, and after that, how can I get back my signal as an numpy array?