【发布时间】:2016-03-01 23:13:00
【问题描述】:
我在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
现在我想使用 'signal' 和 'rate' 创建一个 pydub 段
audio_segment = pydub.AudioSegment()
那么我该如何创建这个音频片段,然后, 如何将信号作为 numpy 数组取回?
【问题讨论】:
标签: python numpy audio scipy pydub