Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

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

  1. #1
    Junior Member
    Join Date
    Dec 2021
    Posts
    16

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

    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?

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    26,223
    Compiled a copy for you, just now from wav2sketch.c.

    Here it is...
    Attached Files Attached Files

  3. #3
    Junior Member
    Join Date
    Dec 2021
    Posts
    16
    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_au dio_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.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    26,223
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •