Teensy 3.2 Playing WAV File

Hello!

I've been trying to use the audio tutorial code "Blink While Playing," and, while the audio samples I downloaded from the PJRC website worked fine, I can't get audio that I make to play. I've been using Audacity and exporting my audio as WAV files and saving them to an SD card. Then, I replace the line

playSdWav1.play("SDTEST1.WAV");
with playSdWav1.play(" -insert audio name here- .WAV");

Is there a specific way we need to format our audio file to have it play from the tutorial code?

Thank you!

It would make more sense to ask on the PJRC forums but if you really are using " -insert audio name here- .WAV" as a name it definitely isn't going to work. The file names have to be 8.3 format. Furthermore, the WAV file must be formatted as 44.1kHz 16-bit signed integer.

Pete

Also convert it to a mono file first and do not add any Meta Data

It doesn't need to be mono. I've just played a stereo file with that sketch on the T3.6
The filename must be in 8.3 format. The library doesn't handle long filenames.
It should be PCM signed 16-bit mono or stereo sampled at 44.1kHz. I have a vague memory that it can actually handle a few types of compression and sample rates but it's best to stick with plain PCM @ 44.1kHz.
It's best to omit meta data too, although another vague memory tells me that the code skips any chunks it doesn't recognize or can't handle.
If the sketch opens the SD card OK but can't find the file or it is the wrong format, it will output this sort of thing:

Start playing
Playing, now at 0 ms
Start playing
Playing, now at 0 ms
Start playing
Playing, now at 0 ms
Start playing
Playing, now at 0 ms
Start playing

Pete

Resolved!

Thank you for the (very) quick replies! I changed my approach a little bit. Instead of using Audacity, I've been using text-to-speech software to produce mp3 files for certain phrases. Then, using an online mp3 to WAV converter, I converted my files to 16-bit, 44.1 kHz format WAV files.

I believe the main issue was naming my file. I first named my audio file You_seem_very_certain_, but after shortening it to certUS and making the corresponding changes in my code, it worked! (i.e. I changed the line playSdWav1.play("SDTEST1.WAV"); into playSdWav1.play("certUS.WAV"); (with the file name on the SD card being certUS)

Thanks once again!