Shop OBEX P1 Docs P2 Docs Learn Events
question about soundpal in my boebot. — Parallax Forums

question about soundpal in my boebot.

MovieMakerMovieMaker Posts: 502
edited 2009-05-02 16:56 in Robotics
I would like to record and convert to MP3 certain sounds. I know how to do this. Next , I wish to convert the MP3 to work with the soundpal. It may already do this. I was just wondering if I have to do something special to get the MP3 to work with the soundpal.· It looks like you just put it in the list and call it like a subroutine. Is this correct?

Thank You.

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-04-27 04:26
    The SoundPAL plays sound sequences monophonicly based on notes of the scale, alng with additional transitional effects. MP3s, on the other hand, are encodings of actual sound waves that can encompass the full spectrum of polyphonic sound, including such nuances as attack, decay, and timbre, and can even represent speech and background noise — basically anything that can be recorded. This puts MP3s well out of the SoundPAL's reach to reproduce.

    -Phil
  • MovieMakerMovieMaker Posts: 502
    edited 2009-04-28 00:18
    Is there some program to convert an mp3 or wav or anything to a compatible output to soundpal. I wanted to record a sound or speech or things like that and play them back on the soundpal to give the robot emotions. Like:

    Suprise:· OOOhh!
    Anger:· ????
    Sad:· ????
    Happy:· ???
    Thinking, Calculating: ????

    called up by subroutines and situations.

    Make any Sense??

    And, thanks for the reply.

    ·
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-04-28 00:56
    No, I'm afraid not. The SoundPAL cannot reproduce arbitrary waveforms, so it would be incapable mimicing anything as complex as speech.

    That said, you can always experiment with various output frequencies and effects like glissando to blend one frequency into another. But you'll have to write your own program to do that.

    Of course, just as with a pet cat or dog, there's no requirement for a robot's emotions to be similar to our own. Yet we're still able to pick up on them with experience.

    -Phil
  • MovieMakerMovieMaker Posts: 502
    edited 2009-04-28 02:16
    Thanks PII.
  • MovieMakerMovieMaker Posts: 502
    edited 2009-04-29 01:37
    I don't understand why the soundpal won't simply play some of my mp3 sound files if I placed them in the canned sequence folder.· Does soundpal get the MP3 files from there, or are those files a recorded sound from the soundpal that tells us what they sound like? I simply want to play an mp3 sound file.· This should be rather simple. ????
  • iDaveiDave Posts: 252
    edited 2009-04-29 02:29
    Hey moviemaker - let me chime in here. I think Phil has explained quite well and over my pay grade, but I understand your frustation. I have a boatload of audio (mp3,wavs,etc) files that i want to incorporate into my projects. My solution for this has been to eventually use quadravox sound chips to store the files themselves. Sorry, dont have time right now to put the links(maybe later) but if u search "quadravox" in the forum i believe u might find some help. Good uck

    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "THE ONLY TRUE WISDOM IS IN KNOWING YOU KNOW NOTHING." - SOCRATES
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-04-29 02:36
    Again, as much as I wish I could give you more encouragement, no, you can't play MP3 files with the SoundPAL. An MP3 file encodes actual waveforms. A waveform includes voltage levels that are sampled thousands of times per second. The SoundPAL plays monophonic note sequences using square waves. Each note in the sequence requires but a single byte that includes pitch and duration information. There's a huge difference, both in concept and in the amount of memory required.

    Trust me. I designed the SoundPAL, so I should know. smile.gif

    -Phil
  • MovieMakerMovieMaker Posts: 502
    edited 2009-04-30 00:42
    Thanks Dave and Pii. I am impressed by you designing this neat little item. That is a neat little chip.

    Post Edited (MovieMaker) : 4/30/2009 12:57:06 AM GMT
  • MovieMakerMovieMaker Posts: 502
    edited 2009-05-02 16:56
    OK, so this cannot be done. So, my next question is: Does anyone have any sounds that will play on soundpal and represent MOODS, so that I can download them and make my robot laugh when it is happy, etc.
Sign In or Register to comment.