Quantcast
Channel: The Echo Nest Developer Forum
Viewing all articles
Browse latest Browse all 1582

Do LocalAudioFile objects contain PCM data?

$
0
0

Yep!

from echonest.remix.audio import LocalAudioFile
path = 'path/to/some/mp3.mp3'
test = LocalAudioFile(path)
test.data # PCM data as a NumPy Array

You can also look at test.convertedfile to get the path to the temporary .wav file.

Hope that helps! Thor


Viewing all articles
Browse latest Browse all 1582

Trending Articles