Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pydub #audiosegment #numpy #array
ADD COMMENT
Topic
Name
8+6 =