Not RIFF WAVE

I’m trying to add a track to my SD Card, under /tracks.
I ensured the name I’m referencing in the config file is the same as the sound file. But, for some reason, I get no sound at all.
I also ensured the sound file is a .wav with 41KHz, 16-bit, Mono PCM.
When opening the serial monitor, navigating to the font and triggering the track, this appears:

Not RIFF WAVE.

Does anyone know what this means? Is there some special type of WAVE file I need to use? What is RIFF?

I tried vegas pro, audacity and online converters, to convert the source mp3 to a WAV file for Proffie. No success.

if I recall correctly RIFF waves may as well be interchangeable with the term “wav file” since it’s what’s used virtually everywhere. WAV files are capable of holding several formats, which is where that potential issue comes from, but I was under the impression that RIFF was pretty much the standard (and I haven’t seen anything else used in my admittedly limited experience).

EDIT: I have this backwards, WAVE is an implementation using RIFF as a container format, not the other way around. Same deal though, there shouldn’t be an issue with “types” of wavs.

Is it just happening with certain sounds? Would it be a sound you could share so we could take a look at and test? It’s probably not the problem here but have you tried reformatting the SD? (That’s more a question if you have issues with other things, but it sounds like it’s specific to a certain file?)

Thanks for the help. Yes, it’s just certain files.

I was trying a whole song as a track, but now I can’t even replace the font.wav of a font in my SD CARD. The font I’m sending is the one I’m trying to add.

  • When alone, in the font root directory, I hear nothing.
  • When among other font.wav files (font01, font02…), I hear a beep sound.

When I place back the old font.wav (or any sound file I know to work) it works flawlessly.

Getting this in serial monitor. Hope it helps.

unit = 0 vol = 0.50, Playing Masterless/font.wav
Not RIFF WAVE.

The file you posted IS a “RIFF WAVE”, and shouldn’t generate this error.
Either the file it’s playing is a different one than you uploaded, or it appears different to ProffieOS. Are you doing “eject safely” before removing the SD card?

@Alcachofraz Using the “convert audio” feature of my site will make any wav, mp3, or even mp4 video source audio play correctly on your saber:
https://www.soundfontnamingconverter.com/

It was used already, in an above post. It seems like this is an issue with the file on the SD Card, because the posted file is fine, as Fredrik noted.

ah. post was deleted. I see now.

Thank you for all your replies, guys. Really appreciate it.

I got it working now, but I’m not sure how. First, I’ll answer your questions:

  • Yes, I’ve tried the conversion tool as well;
  • Yes, I’m ejecting safely from WIndows directly.

What I did that appears to have fixed it was:

I deleted the whole font folder from the SD Card. I also removed the preset from the config file. Then I added another (different) font to the SD Card, and replaced the font files and track files with my own. Then I created a new preset with that font on the config file.

Suddenly everything works. I would have liked to find the problem, but it was driving me crazy, so I tried this radical font replacement. And it worked :confused:

It may well have just been file corruption and so replacing everything fixed it.

Glad you got it sorted though. The gremlins have been cast out for now… :wink:

1 Like