Hii giant18,
I wanted to do the same and for that I used following method.
First array of data is X and second array of data is Y. I performed mean square error method on it, as I am working in C++.
double meanSquareError(double *X,double *Y,uint16_t sizeOfArray)
{
double sumOfSquare=0;
for(uint16_t i=0;i<(Tempsamples/2);i++)
{
sumOfSquare = sumOfSquare + pow((X[i]-Y[i]),2);
}
return sqrt(sumOfSquare);
}
I am getting a big number for small difference,
I applied this on FFT results.
If you have any solution better than me then please share it with me.
You can visit this link for more
http://biomedicalsignalandimage.blogspot.com/2016/03/the-method-of-comparing-two-audio-files.html
Thank you