Help Input of Wav File on Android

154 views
Skip to first unread message

Calvin Me

unread,
Aug 31, 2014, 4:56:11 PM8/31/14
to music...@googlegroups.com
Hi guys, so I was hoping to compare two wav files on android,
I can place them anywhere you like but I just don't know how to compare it. So far i have:

String filename = "audio.wav";

        // create a wave object
        Wave wave = new Wave(filename);
        Wave wave2 = new Wave(filename);

        FingerprintSimilarity test = wave.getFingerprintSimilarity(wave2);
        float fs = test.getSimilarity();


But I just keep getting FC's, I'm assuming it has something to do with the string filename part, but any help would be hugely appreciated.
Message has been deleted

Béla Moqs

unread,
Oct 13, 2014, 7:25:02 AM10/13/14
to music...@googlegroups.com
It works when you add it /res/raw/your_audio.wav . Call it like this:

 Wave your_audio= new Wave(getResources().openRawResource(R.raw.your_audio));
Reply all
Reply to author
Forward
0 new messages