📜  pydub audiosegment 到 numpy 数组 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:08.609000             🧑  作者: Mango

代码示例1
# credit to the Stack Overflow user in the source link
from pydub import AudioSegment
sound = AudioSegment.from_file("sound.wav")

samples = np.array(sound.get_array_of_samples())