Shop OBEX P1 Docs P2 Docs Learn Events
Wav Files... — Parallax Forums

Wav Files...

ArchiverArchiver Posts: 46,084
edited 2000-09-15 15:03 in General Discussion
Hi all of you!!

I'm interested in that project

First of all, how the @#$@ can we download the wav file to the stamp
byte by byte. Which methods exists for this purpose. (how can I dissasemble
the file)

One method is downloading the file via VBasic but I don't know yet
how to grab files and transmit them, maybe a few more weeks and I'll know
how to do this!!

Does anybody have a better idea??

Carlos...

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-09-12 17:50
    Well, for one, I'm not sure you'd want to use the stamp alone, I mean, you'd
    probably need to use some memory chip attached, or a flash/regular eeprom
    perhaps (32k would be small, but good enough). As far as downloading is
    concerned, it's really the same principal as serial communication via the
    stamp. Serin, serout commands. If you're referring to a checksum check type
    of download protocol (which I believe isn't necessary due to the nature of
    the download (.wav), you can always right your own checksum procedure which
    would involve set packets size being transmitted, with start & stop flags, a
    couple byte header for it's parity or checksum number.

    - Elie

    >
    Original Message
    > From: Carlos F. Rodriguez M. [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=0C3Vf649Ltty1ZT_C_MtZFQUqyGtvcjeYYma2wfnJ6ePDrjeRltXGQjsjHU6eKD5-5lX3eL_zIaaIA]ssjg2@y...[/url
    > Sent: Tuesday, September 12, 2000 12:41 PM
    > To: Basicstamps
    > Subject: [noparse][[/noparse]basicstamps] Wav Files...
    >
    > Hi all of you!!
    >
    > I'm interested in that project
    >
    > First of all, how the @#$@ can we download the wav file to the stamp
    > byte by byte. Which methods exists for this purpose. (how can I
    > dissasemble the file)
    >
    > One method is downloading the file via VBasic but I don't know yet
    > how to grab files and transmit them, maybe a few more weeks and I'll know
    > how to do this!!
    >
    > Does anybody have a better idea??
    >
    > Carlos...
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-12 18:02
    Some of the information I've seen involves taking the WAV file and using
    COOLEDIT to convert it to a 6KHz, 8-bit, mono ASCII text data file. From there
    it would need to be processed with the Stamp.

    "Carlos F. Rodriguez M." wrote:

    > Hi all of you!!
    >
    > I'm interested in that project
    >
    > First of all, how the @#$@ can we download the wav file to the stamp
    > byte by byte. Which methods exists for this purpose. (how can I dissasemble
    > the file)
    >
    > One method is downloading the file via VBasic but I don't know yet
    > how to grab files and transmit them, maybe a few more weeks and I'll know
    > how to do this!!
    >
    > Does anybody have a better idea??
    >
    > Carlos...
    >
    >
    > Name: winmail.dat
    > winmail.dat Type: application/ms-tnef
    > Encoding: base64
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-12 19:09
    Hi,

    You need to remove the header of the .WAV file as well as the end (programs like
    Sound Forge like to add a lot of comments, copyright info etc... at the end).
    You just need the raw data: obviously you will know the sampling rate of the
    file you will use so we can forget about that also.
    So the easiest way is to open your .WAV in an audio shareware program such as
    Cool Edit and save it in 8-bit raw format. You will have just the data. But to
    store this data you will need an extra memory chip, even if you are using low
    sampling rate, because the memory of the Basic Stamp is really too small for
    that.

    Nicolas


    >>> Michael Picco <mpicco@j...> 09/12/00 10:02AM >>>
    Some of the information I've seen involves taking the WAV file and using
    COOLEDIT to convert it to a 6KHz, 8-bit, mono ASCII text data file. From there
    it would need to be processed with the Stamp.

    "Carlos F. Rodriguez M." wrote:

    > Hi all of you!!
    >
    > I'm interested in that project
    >
    > First of all, how the @#$@ can we download the wav file to the stamp
    > byte by byte. Which methods exists for this purpose. (how can I dissasemble
    > the file)
    >
    > One method is downloading the file via VBasic but I don't know yet
    > how to grab files and transmit them, maybe a few more weeks and I'll know
    > how to do this!!
    >
    > Does anybody have a better idea??
    >
    > Carlos...
    >
    >
    > Name: winmail.dat
    > winmail.dat Type: application/ms-tnef
    > Encoding: base64
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-13 10:23
    Hi,

    Would be so much easier to use a sound-storage chip from ISD, you can record
    a lot of different messages and then control de playback via serial link
    from the Stamp.
    The IC is made just for this. Considering time and development costs, unless
    you're retired or have plenty of, warrants use of such devices, rather that
    to play raw audio data from the Stamp.

    All the best,

    Mike

    Mensaje original
    De: Nicolas Fournel [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=N24ZHuCHLq5QPmRNzHbouk48lfyYWORvj_mpyDi85FwRWAxaO3XNocJaW5c9cs2H4-9MPHdfa847pJ_XvfT4kzU5PhQ8]Nicolas.Fournel@f...[/url
    Enviado el: martes, 12 de septiembre de 2000 20:10
    Para: basicstamps@egroups.com
    Asunto: Re: [noparse][[/noparse]basicstamps] Wav Files...


    Hi,

    You need to remove the header of the .WAV file as well as the end (programs
    like Sound Forge like to add a lot of comments, copyright info etc... at the
    end). You just need the raw data: obviously you will know the sampling rate
    of the file you will use so we can forget about that also.
    So the easiest way is to open your .WAV in an audio shareware program such
    as Cool Edit and save it in 8-bit raw format. You will have just the data.
    But to store this data you will need an extra memory chip, even if you are
    using low sampling rate, because the memory of the Basic Stamp is really too
    small for that.

    Nicolas


    >>> Michael Picco <mpicco@j...> 09/12/00 10:02AM >>>
    Some of the information I've seen involves taking the WAV file and using
    COOLEDIT to convert it to a 6KHz, 8-bit, mono ASCII text data file. From
    there
    it would need to be processed with the Stamp.

    "Carlos F. Rodriguez M." wrote:

    > Hi all of you!!
    >
    > I'm interested in that project
    >
    > First of all, how the @#$@ can we download the wav file to the
    stamp
    > byte by byte. Which methods exists for this purpose. (how can I
    dissasemble
    > the file)
    >
    > One method is downloading the file via VBasic but I don't know yet
    > how to grab files and transmit them, maybe a few more weeks and I'll know
    > how to do this!!
    >
    > Does anybody have a better idea??
    >
    > Carlos...
    >
    >
    > Name: winmail.dat
    > winmail.dat Type: application/ms-tnef
    > Encoding: base64
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-13 20:19
    Hi,

    You are right. For a 5 minute song as a .WAV file you will need a lot of memory.
    Of course it always depends on the resolution (8-bit or 16-bit), the sampling
    rate, and the number of channels (mono or stereo).

    Example, for a 5 minutes song in 8-bit mono, at 22050 Hz:
    you need 5*60*22050 bytes, about 6.3 Mb

    Nicolas



    >>> "Chee Sze Keat" <szekeat@h...> 09/13/00 06:54AM >>>
    Hello Mr Nicolas

    Thanks for your reply on MP3.
    I would like to ask anwother question.
    Normally, the size of a .WAV file is big,
    is it possible to store those data in eeprom?
    I think the eeprom must be a least 2,3Mb to keep
    a .WAV(let's say a 4 to 5 minutes song).
    Please correct me if I am wrong.

    Thank you.

    sze keat



    _________________________________________________________________________
    Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

    Share information about yourself, create your own public profile at
    http://profiles.msn.com.
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-13 21:01
    Hi Mike,

    You are totally right. However it seems better suited to record small vocal
    notes.
    From what I read on their FAQ, it seems its a liitle bit difficult to avoid plop
    and clicks in the recordings.

    By the way, are you familiar with these chips?
    Because it seems to me that it's not possible to send data in the ISD without
    recording live with the microphone (at least with the low-cost chips). So you
    can't have exactly the same data in 2 chips. Is that correct ?

    Nicolas




    >>> "Miguel Puchol" <mpuchol@w...> 09/13/00 02:23AM >>>
    Hi,

    Would be so much easier to use a sound-storage chip from ISD, you can record
    a lot of different messages and then control de playback via serial link
    from the Stamp.
    The IC is made just for this. Considering time and development costs, unless
    you're retired or have plenty of, warrants use of such devices, rather that
    to play raw audio data from the Stamp.

    All the best,

    Mike

    Mensaje original
    De: Nicolas Fournel [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=P5DN0T0cdA1e_llVqqu1dNVAofRoIFNUDlnLAf7UGluPQjbzt_xS2LUk0LBz7ZH1Dj_ZALOcOP2jBZCSuKIbLF8E2A]Nicolas.Fournel@f...[/url
    Enviado el: martes, 12 de septiembre de 2000 20:10
    Para: basicstamps@egroups.com
    Asunto: Re: [noparse][[/noparse]basicstamps] Wav Files...


    Hi,

    You need to remove the header of the .WAV file as well as the end (programs
    like Sound Forge like to add a lot of comments, copyright info etc... at the
    end). You just need the raw data: obviously you will know the sampling rate
    of the file you will use so we can forget about that also.
    So the easiest way is to open your .WAV in an audio shareware program such
    as Cool Edit and save it in 8-bit raw format. You will have just the data.
    But to store this data you will need an extra memory chip, even if you are
    using low sampling rate, because the memory of the Basic Stamp is really too
    small for that.

    Nicolas


    >>> Michael Picco <mpicco@j...> 09/12/00 10:02AM >>>
    Some of the information I've seen involves taking the WAV file and using
    COOLEDIT to convert it to a 6KHz, 8-bit, mono ASCII text data file. From
    there
    it would need to be processed with the Stamp.

    "Carlos F. Rodriguez M." wrote:

    > Hi all of you!!
    >
    > I'm interested in that project
    >
    > First of all, how the @#$@ can we download the wav file to the
    stamp
    > byte by byte. Which methods exists for this purpose. (how can I
    dissasemble
    > the file)
    >
    > One method is downloading the file via VBasic but I don't know yet
    > how to grab files and transmit them, maybe a few more weeks and I'll know
    > how to do this!!
    >
    > Does anybody have a better idea??
    >
    > Carlos...
    >
    >
    > Name: winmail.dat
    > winmail.dat Type: application/ms-tnef
    > Encoding: base64
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-13 21:54
    Hello Mr Nicolas

    Thanks for your reply on MP3.
    I would like to ask anwother question.
    Normally, the size of a .WAV file is big,
    is it possible to store those data in eeprom?
    I think the eeprom must be a least 2,3Mb to keep
    a .WAV(let's say a 4 to 5 minutes song).
    Please correct me if I am wrong.

    Thank you.

    sze keat



    _________________________________________________________________________
    Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

    Share information about yourself, create your own public profile at
    http://profiles.msn.com.
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-13 21:54
    Hello Mr Nicolas

    Thanks for your reply on MP3.
    I would like to ask anwother question.
    Normally, the size of a .WAV file is big,
    is it possible to store those data in eeprom?
    I think the eeprom must be a least 2,3Mb to keep
    a .WAV(let's say a 4 to 5 minutes song).
    Please correct me if I am wrong.

    Thank you.

    sze keat



    _________________________________________________________________________
    Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

    Share information about yourself, create your own public profile at
    http://profiles.msn.com.
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-14 03:34
    Hello Mr Nicolas

    I see.Thank you.It means if we can build a
    player, the flash memory won't allows us to
    cost our "hand-made"player cheaper than any other
    MD player or walkman or CD player.
    Thank you.

    sze keat



    >From: "Nicolas Fournel" <Nicolas.Fournel@f...>
    >To: <basicstamps@egroups.com>, <szekeat@h...>
    >Subject: Re: [noparse][[/noparse]basicstamps] Wav Files...
    >Date: Wed, 13 Sep 2000 12:19:35 -0700
    >
    >Hi,
    >
    >You are right. For a 5 minute song as a .WAV file you will need a lot of
    memory.
    >Of course it always depends on the resolution (8-bit or 16-bit), the
    sampling rate, and the number of channels (mono or stereo).
    >
    >Example, for a 5 minutes song in 8-bit mono, at 22050 Hz:
    >you need 5*60*22050 bytes, about 6.3 Mb
    >
    >Nicolas
    >
    >
    >

    _________________________________________________________________________
    Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

    Share information about yourself, create your own public profile at
    http://profiles.msn.com.
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-14 13:36
    Greetings,

    On Wed, 13 Sep 2000, Miguel Puchol wrote:

    > Would be so much easier to use a sound-storage chip from ISD, you can record
    > a lot of different messages and then control de playback via serial link
    > from the Stamp.

    Would you happen to have a URL for 'ISD' ??? I'm interested in
    putting the vocabulary of R2D2 on my robot. Figured about 16 memories
    each playing about 1-5 seconds would be enough to do the job :-)


    > The IC is made just for this. Considering time and development costs, unless
    > you're retired or have plenty of, warrants use of such devices, rather that
    > to play raw audio data from the Stamp.
    >
    > All the best,
    >
    > Mike

    Thanks,
    --- Jay

    /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~\
    | Jay Nugent jjn@n... |____|
    | Nugent Telecommunications www.nuge.com |
    | Web-Pegasus www.webpegasus.com |
    | ISP Monitoring www.ispmonitor.net |
    | LinuxNIC, Inc. www.linuxnic.net |
    | (734)971-1076 (734)971-4529 /Fax |
    | (734)649-0850/cell |
    | |
    | ISP & Modem Performance Monitoring Svcs. |
    | Discount Reseller of 123.Net ISP Services|
    | Internet Consulting / Linux SysAdmin |
    | Web Hosting / DNS Hosting / Shell Accts. |
    | Embedded Controllers / Engr. & Design |
    | Registrar of the .linux TLD |
    /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/ |
    \_________________________________________\__/

    8:00am up 126 days, 14:13, 7 users, load average: 0.04, 0.04, 0.00
  • ArchiverArchiver Posts: 46,084
    edited 2000-09-15 15:03
    >>>>
    Date: Thu, 14 Sep 2000 08:36:02 -0400 (EDT)
    From: Jay Nugent <jjn@n...>
    Would you happen to have a URL for 'ISD' ??? I'm interested in
    putting the vocabulary of R2D2 on my robot. Figured about 16 memories
    each playing about 1-5 seconds would be enough to do the job :-)
    <<<<

    Look at www.quadravox.com - they make a chip that makes addressing
    and storing files on the ISD chips much easier... they sell their
    chip with an ISD chip if you want - up to 2 minutes play time....

    ________________________________________________________________
    YOU'RE PAYING TOO MUCH FOR THE INTERNET!
    Juno now offers FREE Internet Access!
    Try it today - there's no risk! For your FREE software, visit:
    http://dl.www.juno.com/get/tagj.
Sign In or Register to comment.