Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: gamefreak on September 27, 2008, 05:50:37 PM

Title: Sound playback
Post by: gamefreak on September 27, 2008, 05:50:37 PM
So working on a TSA project, I do them a lot, I need a way to play sound. I want to be able to take prerecorded sounds off of a computer and then have the almighty AXON trigger the playback of one of them. So does anyone know of something that will allow me to store multiple sound files and then select a specific one to playback?
Title: Re: Sound playback
Post by: Admin on September 27, 2008, 10:31:13 PM
What kind of sounds? A simple midi (http://www.societyofrobots.com/robotforum/index.php?action=search2;params=YWR2YW5jZWR8J3wwfCJ8YnJkfCd8MiwzLDQsNSw2fCJ8c2hvd19jb21wbGV0ZXwnfHwifHN1YmplY3Rfb25seXwnfHwifHNvcnR8J3xyZWxldmFuY2V8Inxzb3J0X2RpcnwnfGRlc2N8InxzZWFyY2h8J3xtaWRp)? or wav file?

A speaker? Or piezo buzzer (http://www.societyofrobots.com/robotforum/index.php?action=search2;params=YWR2YW5jZWR8J3wwfCJ8YnJkfCd8MiwzLDQsNSw2fCJ8c2hvd19jb21wbGV0ZXwnfHwifHN1YmplY3Rfb25seXwnfHwifHNvcnR8J3xyZWxldmFuY2V8Inxzb3J0X2RpcnwnfGRlc2N8InxzZWFyY2h8J3xwaWV6bw==)?
Title: Re: Sound playback
Post by: TrickyNekro on September 28, 2008, 05:12:54 AM
mmmmm
google Winbond...
Here an example:
http://www.biltek.tubitak.gov.tr/gelisim/elektronik/dosyalar/6/ISD2560.pdf (http://www.biltek.tubitak.gov.tr/gelisim/elektronik/dosyalar/6/ISD2560.pdf)
Title: Re: Sound playback
Post by: gamefreak on September 28, 2008, 08:37:18 AM
Im not very well versed in the field of audio equipment, so im not very sure. Since I intend to have the thing "talk" i would think that a speaker would be best. Also, I am unsure as to the file format, I want to make recordings on the computer and then transfer it to the robot, by a SD card or something as simple, and then have the robot choose which file to play. I would think the format depends on the chip im using, correct?

Im not all that skilled when it comes to schematics and microcontrollers, I could tell you what most symbols are but when it comes to telling you how they work or how to properly wire it, im lost. So something simple would be great.

Tricky, I cant seem to locate the link you gave on the NuvoTon website, nor do I know where I would order it.

Title: Re: Sound playback
Post by: airman00 on September 28, 2008, 03:56:45 PM
why not hack an MP3 players  Play and Next button. Then just keep track of which audio file is playing and which number the other files are.
Title: Re: Sound playback
Post by: gamefreak on September 28, 2008, 07:11:23 PM
I suppose thats an option, but I would have to go out and buy one, then hack a speaker since I dont think MP3 players have enough output to power one.....
Title: Re: Sound playback
Post by: TrickyNekro on September 29, 2008, 02:03:08 PM
Tricky, I cant seem to locate the link you gave on the NuvoTon website, nor do I know where I would order it.



The link is just the pdf of a voice recording IC... Since you are from America, I guess, I don't really can tell were to buy it....
I just buy from local stores.....

The IC is the ISD2560
Google it if you want......


Reagards, Lefteris
Greece
Title: Re: Sound playback
Post by: ArcMan on September 29, 2008, 02:20:12 PM
A buddy of mine at work is doing the same thing.  I can't give you all the details, but a little research should reveal them.

He is playing MP3 files stored on an SD card.  There is a chip that manages the FAT file system on the SD card.  His micro is reading the MP3 file and spitting it out to an MP3 decoder chip via SPI.  The decoder chip output is then amplified and output to a speaker.
Title: Re: Sound playback
Post by: TrickyNekro on September 30, 2008, 04:00:18 AM
A buddy of mine at work is doing the same thing.  I can't give you all the details, but a little research should reveal them.

He is playing MP3 files stored on an SD card.  There is a chip that manages the FAT file system on the SD card.  His micro is reading the MP3 file and spitting it out to an MP3 decoder chip via SPI.  The decoder chip output is then amplified and output to a speaker.


Hehehehe

Take a look at VS1053!!!!
Title: Re: Sound playback
Post by: gamefreak on September 30, 2008, 08:11:50 AM
I think it may just be easier to hack a cheap MP3 player and buy some battery powered speakers. thanks for the help
Title: Re: Sound playback
Post by: MaltiK on September 30, 2008, 01:18:38 PM
http://www.radioshack.com/product/index.jsp?productId=2102855, and instead of the record button, solder on a 3.5mm audio jack.
Title: Re: Sound playback
Post by: gamefreak on October 01, 2008, 07:29:43 PM
Have you tested that theory? It seems to me if the device is built to record 20 seconds of audio and play it back later, then replacing the record button will do... well jack squat.
Title: Re: Sound playback
Post by: MaltiK on October 02, 2008, 04:18:19 AM
Yes I have, in fact theres a video on it, here :
http://www.instructables.com/id/Sexy-Secret-Safe
towards the end he replaces the record button with a jack.

Its the microphone he replaces I think.
Title: Re: Sound playback
Post by: gamefreak on October 05, 2008, 09:32:29 PM
I dont see how I could have multiple sound files on that, it allows a total of 20 seconds, no more and it plays the whole thing from the beginning. So any other suggestions?
Title: Re: Sound playback
Post by: Admin on October 08, 2008, 11:44:18 PM
just search the forum for mp3 (http://www.societyofrobots.com/robotforum/index.php?action=search2;params=YWR2YW5jZWR8J3wwfCJ8YnJkfCd8MiwzLDQsNSw2fCJ8c2hvd19jb21wbGV0ZXwnfHwifHN1YmplY3Rfb25seXwnfHwifHNvcnR8J3xyZWxldmFuY2V8Inxzb3J0X2RpcnwnfGRlc2N8InxzZWFyY2h8J3xtcDM=) and you'll find tons of info, for example:
http://www.societyofrobots.com/robotforum/index.php?topic=3365.0