Soundgin and BS2
Wolfbrother
Posts: 129
Hello all,
I'm completely lost and stuck on interfacing a Soundgin to the BS2 board. I found an example of the code on the web for BS2 and I'm not sure if it worked, because I think the DEBUG statements and the serial port would be in contention for the same pin. Has anyone interfaced a Soundgin board to a BS2 and could they share their code? Right now I have a Stamp PDB and I am using the serial port (tx/rx/DTR/GND pg 28 of ref manual) to connect to the soundgin. I have tried 9600 8bit N inverted, true and 7 bit inverted and true. All to no avail. The unit makes tones however. It appears ( by commenting/uncommenting out lines until no noise was made) that the chip reset command, makes it make a noise that sounds like oh ooooooooo which goes forever. So I think something is working. But I am really at a loss for what. I'm guessing this is a simple mistake I am making. Anyone have an idea?
Thanks in advance,
DaveSoundGincleaned.bs2
I'm completely lost and stuck on interfacing a Soundgin to the BS2 board. I found an example of the code on the web for BS2 and I'm not sure if it worked, because I think the DEBUG statements and the serial port would be in contention for the same pin. Has anyone interfaced a Soundgin board to a BS2 and could they share their code? Right now I have a Stamp PDB and I am using the serial port (tx/rx/DTR/GND pg 28 of ref manual) to connect to the soundgin. I have tried 9600 8bit N inverted, true and 7 bit inverted and true. All to no avail. The unit makes tones however. It appears ( by commenting/uncommenting out lines until no noise was made) that the chip reset command, makes it make a noise that sounds like oh ooooooooo which goes forever. So I think something is working. But I am really at a loss for what. I'm guessing this is a simple mistake I am making. Anyone have an idea?
Thanks in advance,
DaveSoundGincleaned.bs2
Comments
http://tech.groups.yahoo.com/group/speakjet/
http://en.wikipedia.org/wiki/Savage_Innovations
Any idea what happened to them? This may not be good for the future of the SoundGin. As I recall there are two sources for the SpeakJet chip so hopefully that will continue to be offered for years to come.
I did change to the prop. Good idea. I have been over on that forum and missed this suggestion from you, but it's a great one. I am having some troubles with the prop, but those issues are me, not the chip. The soundgin I got seems to be not working at all, I scoped it and the serial port is toggling, but the chip isn't working. That's too bad, but it's ok since the propeller is working.
Thanks,
Dave
http://www.notepad.org/soundgin
The most recent BS2 source to demo the Soundgin is the "BSII-Soundgin-Demo8(with_speech).txt" though there are some other code examples up there (including one for the Thereping devices).
As Savage Innovations seems to have disappeared, I also mirrored the Soundgin setup program (GUI) and a serial port monitor program to "reverse engineer" the codes that are needed to make the Soundgin "do" things. The way to do this is to hook the Soundgin to the PC (make sure you use a level converter like a MAX-232) and then use the Soundgin GUI to cause the Soundgin to play a sound. the serial monitor will show you what data was sent to the Soundgin to make the sound, then you can use the BS2 to send the same codes to get the sound you like. All the programs I used are located in that link above (including the PDF docs and the serial port monitor program).
I only recently updated my BS2 demo code to include the speech synthesis which is pseudo text to speech. By "pseudo" I mean that the phonemes are read out from DATA statements at the top of the source code. To generate the phonemes from plain text, I use a web site created by James Delaney of the Unfocused Brain blog. The link for the "plain text to phonemes for the Soundgin" is available here:
http://www.graner.net/projects/speech
This page has an area where you type in text, then it looks up the phonemes and then presents you with BS2 data tables to paste in to the top of your code to make the Soundgin say phrases.
Hope this helps.
Vern