6

I'm writing an android app that plays an audio file and records what the phone is outputting simultaneously. When the recording is done, it would compare the recording against the original audio played and return whether they match and to what certainty.

I searched a lot and I found some libraries for audio fingerprinting, but they're mostly for music identification purposes.

Is there any libraries out there that I could use for this purpose? Would it make sense to write a custom algorithm for this?

Zack
  • 377
  • 6
  • 16

1 Answers1

2

You could compare the sound waves sample to sample (as numbers), then compute maximal, minimal, average difference, etc..

Anton Malyshev
  • 8,686
  • 2
  • 27
  • 45
  • 1
    Would it be okay if this is done on the user's phone or is it too much processing? If yes, would you recommend doing it on the main thread or separate thread? – Zack Dec 06 '16 at 07:20
  • 1
    It's not too much processing, phone should be ok with that. Separate thread is definitely better option. – Anton Malyshev Dec 06 '16 at 07:24
  • Thank you! Could you recommend any source that is relevant to this? – Zack Dec 06 '16 at 07:26
  • Don't know exactly, but you can look at this http://stackoverflow.com/questions/26236522/audiorecord-records-intermittent-sound-in-android-l-developer-preview – Anton Malyshev Dec 06 '16 at 07:46