Can you tell us how you are doing this? Do you have an own database with which you compare the music to ?
Before this can be done however, the placement of each song within the audio track as a whole needs to be determined, which is done with a combination of ffmpeg and C. Currently this process is quite slow and inaccurate - I'm trying to learn some ML theory at the moment with the hope of improving it!