- Home /
2 Audio Comparison
Hello everyone, Good morning.
I am trying to compare 2 voices of alphabets, 1 is saved in my app, and other one is getting record by an app, to compare it with previous one that is already save in my app.
I have found one method to do that, and that is to compare each sample of both audios by,
First to get the samples of both audios by this command: audio.GetOutputData(samples, 0); then get the sum of the deltas of each sample divided by no. of samples and take out percentage.
but the issue is, user's recorded voice could have greater volume either he is pronouncing the same or not but delta would be greater. secondly the pitch of the user, and 3rd the duration of the recorded voice i mean if user click the record button but speak after few seconds so again the calculations will be wrong.
Questions: 1. How to normalise the volume, 2. How to take out just a speech from recorded audio.
Thanks in advance, and it will be appreciable if anyone could help with the code.