Shop OBEX P1 Docs P2 Docs Learn Events
Playing .wav files — Parallax Forums

Playing .wav files

Dan TaylorDan Taylor Posts: 207
edited 2010-01-20 20:46 in BASIC Stamp
Is there a way to simply play .wav files from a SD card with the BASIC Stamp? Any sample programs?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dan Taylor

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-01-20 17:03
    No

    The BASIC Stamps are simply too slow to play .wav files and they can't handle SD cards by themselves (mostly the FAT file system).

    There are a variety of .mp3 players, including some that can play .wav files as well, that can be attached to a Stamp which is used as the controller. The VMusic2 from Vinculum (www.vinculum.com) can play .mp3 files on a USB memory stick or an SD card plugged into a USB card reader. It's functionally similar to Parallax's Memory Stick Datalogger, uses the same USB host chip from Vinculum, and the sample code for the Datalogger can be used with minor changes to make it play a file.

    The Propeller can play .wav files from an SD card. There is sample code (and objects) in the Propeller Object Exchange for this.
  • Dan TaylorDan Taylor Posts: 207
    edited 2010-01-20 17:33
    Wow. That's really cool. Have you tried this? Do you think its a little big for attaching to a robot?

    Thanks!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dan Taylor
  • Mike GreenMike Green Posts: 23,101
    edited 2010-01-20 17:55
    The VMusic2 is very light. You could take off the case and just mount the board on something like a BoeBot. Keep in mind that you'd need a simple amplifier if you're going to drive a speaker. There are smaller devices that do the same sort of thing. Rogue Robotics has a music player that plays .mp3 files off an SD card for example.

    If you're playing short .wav files (like 8-32KByte), you could use a Propeller Backpack and just record the .wav information in the EEPROM.
  • Dan TaylorDan Taylor Posts: 207
    edited 2010-01-20 18:02
    Is there a good text to mp3 converter?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dan Taylor
  • Mike GreenMike Green Posts: 23,101
    edited 2010-01-20 18:04
    No

    There is speech synthesis software for the Propeller though (in the Object Exchange).
  • Dan TaylorDan Taylor Posts: 207
    edited 2010-01-20 18:57
    No, I mean a program that will convert any text I want into a mp3 file that I can then upload to a USB stick and from there to the VMUSIC2 or a substitue.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dan Taylor
  • FranklinFranklin Posts: 4,747
    edited 2010-01-20 19:18
    Try Google, it comes up with all sorts of things like that.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • iDaveiDave Posts: 252
    edited 2010-01-20 20:25
    Some links I've kept that could hep out.

    www.spokentext.net/


    www.codeplex.com/Wikipage?ProjectName=clipspeak

    letsmakerobots.com/node/13210

    www.adafruit.com/index.php?main_page=product_info&cPath=17_21&products_id=94

    www.rcsys.com/index.htm

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "A complex design is the sign of an inferior designer."
  • Dan TaylorDan Taylor Posts: 207
    edited 2010-01-20 20:46
    coolness... thanks!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dan Taylor
Sign In or Register to comment.