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

Thread: Audio tutorial kit and wav files

  1. #1
    Junior Member
    Join Date
    Sep 2016
    Posts
    1

    Audio tutorial kit and wav files

    I recently purchased one of your audio tutorial kits and have been impressed with all of the work that you have put into it and all of the things it will do. After listening to the provided wav files multiple times as I played with various parts of the system, I decided to try to replace the provided wav files with some other ones just for variety and so I would not have to listen to so many "beeps and bongs".

    I found a wav file of a dog barking - I know not a ton better but is it a little different - and then made the following changes to the "Part_1_05_Do_More_While_Playing" file:
    .
    .
    const char * filelist[4] = {
    "Dog-barking-sound-big-dog.wav",
    // "SDTEST1.WAV"
    "SDTEST1.WAV",
    "SDTEST2.WAV",
    "SDTEST3.WAV",
    "SDTEST4.WAV"
    };
    .
    .

    I then copied the "Dog-barking-sound-big-dog.wav" to my SD card and tried to run the system. Everything seemed to work just fine except that my new wav file is completely skipped.


    I have tried to play the new wav vile on my PC and on some other devices and it plays just fine except that it won't play on the teensy audio tutorial setup. I have tried several wav files (from places other than the ones that came with the tutorial ) and none of them work.

    Any hints or suggestions would be appreciated.

    Thanks,

    JLL


    PS I have attempted to attach a copy of the "Dog-barking-sound-big-dog.wav" file I have tried to use (along with several others)
    Last edited by kb0zxx; 09-13-2016 at 01:57 AM. Reason: attach wav file

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,081
    The filenames on the SD card must be the short 8.3 format. Rename the file to be "Dogbark.wav" or something similar.

    Pete

  3. #3
    const char * filelist[4] = {
    "Dog-barking-sound-big-dog.wav",
    // "SDTEST1.WAV"
    "SDTEST1.WAV",
    "SDTEST2.WAV",
    "SDTEST3.WAV",
    "SDTEST4.WAV"
    };

    item one - It appears you define the filelist array to be of size 4 -- filelist[4] -- and then place 5 filenames in the list.

    item two - as previously mentioned - the filenames need to be in 8.3 format like dog_bark.wav

    item three - I believe the wav file data must be encoded as 16bit samples at 44,100 samples per second.

Posting Permissions

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