The Chromaprint library only works for larger files, I think the files should have at least 10 seconds to fingerprint.
Maybe you should look for alternatives like Python and Ruby who have libraries to fingerprint small audio files (if you search a bit).
You can use the gem that I made for wav files: