Answers for "pydub audiosegment to numpy array"

0

pydub audiosegment to numpy array

# 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())
Posted by: Guest on January-12-2022

Python Answers by Framework

Browse Popular Code Answers by Language