Very basic Basic Stamp code to drive the RC Systems V-Stamp Voice Synth
xanatos
Posts: 1,120
I've seen several requests on here for some Basic Stamp code to drive the V-Stamp voice synth from RC Systems - but I never saw any code posted, so here's the most minimal bare-bones code to get someone started with using the V-Stamp, which I love for it's versatility and quality of speech. Not cheap, but worth it if you have an application that really calls out for speech... $75.00 from http://www.rcsys.com/order.htm
Code attached is for a BS2SX (which is the only one I ever buy since I love those slots so much) but it will work on any BS2. Watch your baud con if you use it on another stamp, and your file extension.
Also attached a photo showing the way I use to plug the V-Stamp into my breadboard since it has non-standard pin row width.
Happy talking!
Dave
Code attached is for a BS2SX (which is the only one I ever buy since I love those slots so much) but it will work on any BS2. Watch your baud con if you use it on another stamp, and your file extension.
Also attached a photo showing the way I use to plug the V-Stamp into my breadboard since it has non-standard pin row width.
Happy talking!
Dave
bsx
2K
Comments
Also note the comment line in the initialization section - it contains references to how to change the voice parameters in the initialization routine.
This system will eventually be for a voice activated and voice-feedback home automation system, but for now, the phrases reveal me to be a trekkie geek... no apologies however!
I hope the code is useful to someone out there.
Dave
PS., Again, code written for BS2sx, so watch your Baud CON statement and file extensions if you use it on other chips.
I was impressed enough with your application of the V-Stamp that I bought one to use for my Home Monitor system. RC Systems owes you a big thanks.
Right now I have it on a breadboard using your VTalker2 code as a first step but Im not sure how to actually get it to speak. Should it speak with this code with no other input?
I have it wired as follows:
Pin
2 to V-Stamp pin 10
11 Speaker +
12 Speaker
15 +5VDC (from BOE)
16 +5VDC (from BOE)
17 +5VDC (from BOE)
18 +5VDC (from BOE)
19 BS2px-pin 1
20 BS2px-pin 0
21 BS2px-pin 2
22 +5VDC (from BOE)
23 +5VDC (from BOE)
24 GND (from BOE)
I have changed the Baud to 396 to accommodate the BS2px.
As written (with the FOR cmd = 20 TO 24 statement) shouldnt the VS begin speaking Phrases 20 to 24 as soon as the code is loaded and the Initialization is completed? That does not happen in my case.
I would like to load all of my phrases during initialization with the READ command as you have. I will then place code snippets throughout the rest of my code where necessary to speak the phrase. What is the minimum code that can be used at these various locations to have the VS speak? Is the Lookup command required if I reference a specific Phrase symbol?
Thanks,
falcon
I have also attached my copy of the 8660 manual for convenience, but you should grab the one from rcsys.com to be sure you are getting the latest info.
Sorry for the delays, I've had more work and less time for my speech gen/recognition projects the past few months.
Dave