That's accurate.  There is currently no way to check the contents of the file, since it's currently required to be a 16bit slin raw no header.  I think it would be better rewritten to accept only wav audio files, and then use sox to convert it.