Simplest way to play short audio clips without SD-card?

albnys

Member
I want to play short audio files (~1 seconds each) on the teensy 3.2.
Audio quality is not very important, but memory efficiency is, since teensy 3.2 has
quite limited flash memory and I want to store as many sounds as possible.

I have seen the "playMem" in the audio tools, but it requires Wav2sketch.exe which I can't seem to download anywhere.

Any ideas?
 
Thank you so much!
I now successfully converted a couple wav files into .cpp and .h files.

However, I get this error when I'm trying to compile my sketch:
C:\Users\alber\OneDrive\Dokument\Arduino\Teensy_audio_play\Teensy_audio_play.ino:14:30: fatal error: AudioSampleBloop.h: No such file or directory

I'm not sure where to put the files once they are converted.
I tried to put them in the same folder as the arduino sketch (just like the SamplePlayer example) but I still get the same error.
 
In Arduino, click File > Examples > Audio > SamplePlayer to see how it's supposed to be used.

Also, recommend having your code on your local drive. Sometimes people have reported OneDrive causes issues.
 
Back
Top