PDA

View Full Version : Help on Sound Module AppMod



merlin
08-06-2005, 08:37 AM
I have decided to use the Sound Module to my next robotics project.
Today the module is on my hands and I can see the programming documentation is very short, so I am plenty of questions and no answers at all...
Actually· I don't know how to get the value of the internal pointer of Module in order to address the playing of specific message from my BasicStamp. Also I don't know how to get the pointer value in order to record a message next to the messages recorded earlier, without erase the whole memory to record new message, using the SEROUT commands to control the Module.
I really need some help on this, I mean if you sugest some code, examples and advices will be very useful for me at this point. Of course I have read carefully the soundmodule.pdf in Parallax site
Thanks in advance, best regards


merlin

·

Short
08-07-2005, 06:04 AM
You cant record anything except an entire set of sounds. Because the all sounds will have a diffrent time length and the chip records in a line end to end so it cannot let you randomly place a single file and not effect the whole block.
If you use serial out in this manner you can explore what to write


SEROUT pin,baud,[comand or address]

Make a list of commands to start and then try them out but BE SURE NOT TO SEND A RECORD COMMAND UNLESS you want to PROGRAM AN ENTIRE SOUND/VOICE LAYOUT.

TRY SENDING A VOLUME LEVEL THEN A PLAY COMMAND THEN THE ADDRESS TO BE PLAYED.

merlin
08-08-2005, 01:05 AM
Dear Short:

Thanks for your time and explanation.

I can understand (even I don't like it...) the need to record the whole voice layout in one shot. What I trying to do, when all the messages are recorded, and of course each one with differents durations, is to locate via pointer the address of some particular messsage.

I know how to do this adding in the Play Serial Command the correct address parameter , what I don't now is HOW to get the correct value of that pointer for some particular message.

In last page of the text attached with the module, there are a time location table, but I can't understand the variables they are using to setup this table, referred to the example included in the text.

In other words, my question is: how to get the memory address for each message recorded earlier.

Thanks in advance for any help on this



merlin

Jon Williams
08-08-2005, 01:29 AM
I haven't used that module in a VERY long time, so I don't know if this will help....

The module uses the ISD2560 which can record up to 60 seconds and has 600 cells; this makes each cell 0.1 seconds. You can, then, estimate an address based on where the segment is time-wise. After initially estimating you should be close and can fine-tune your starting address from there. It would be very useful for you to create a simple demo that allows you to enter the address from the DEBUG window -- you can do that with DEBUGIN. Remember to use a Word for your address value.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax