私は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
「シグナル」と「レート」を使用してpydubセグメントを作成したい
audio_segment = pydub.AudioSegment()
では、このオーディオ セグメントを作成するにはどうすればよいでしょうか。その後、信号を numpy 配列として戻すにはどうすればよいでしょうか?