How do I compare two sound files in Java using musicg

1,633 views
Skip to first unread message

Abdoullah TAHRI JOUTI

unread,
Aug 3, 2015, 5:08:02 AM8/3/15
to musicg-api
Hello,
I am working on an IVR solution, one of the nightmares we have is to know when an answering machine is answering from when it's a human response.
What we're thinking about is to set a database of the answering machine audios, and then compare the recipients answer with those sounds.
I can't find any function into musicg that can help with that.
Please help.

Lokesh Tiwari

unread,
Jan 18, 2016, 3:37:54 AM1/18/16
to musicg-api

Hi  Abdoullah
This is how I am doing

         String recording = "src/musicG/moiz_sample_1.wav "; // Size is 30 sec
         String beep = "src/musicG/beep_exotel.wav";  // Size is 0.4 Sec
         
         Wave waveRecording = new Wave(recording);
         Wave waveBeep = new Wave(beep);

         FingerprintSimilarity similarity = waveRecording.getFingerprintSimilarity(waveBeep);
         System.out.println("clip is found at "+ similarity.getsetMostSimilarTimePosition());
Reply all
Reply to author
Forward
0 new messages