Android mp3 analysis [closed]
-
13-12-2019 - |
Question
I'm making a music player for android and I would like to get the average BPM (maybe also frequencies or tones) of a song BEFORE playing it, so I can show the user some info about the song, I know I probably have to open a stream and apply some maths to it to get the data I need, but I don't know how to act, can anyone help me?
Solution
I finally found the solution! I'm using the Minim java audio library, which can performs offline analysis on the audio buffer :) http://code.compartmental.net/tools/minim/manual-minim/
OTHER TIPS
You can use the FFT
This example may be helpful:
Android audio FFT to retrieve specific frequency magnitude using audiorecord
another one:
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow