It is currently 06 Feb 2012, 05:05





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
 Speakjet help 
Author Message
Post Speakjet help
I'm using a PIC16F877 programmed in C for rs-232 serial interface with
a Speakjet. When turned on, the Speakjet says "Ready," and I can get
it to say ready again with a printf("V"). But I can't get the thing to
say anything else. Could I get some help with this? Should I be using
putc? printf? Essentially, what kind of syntax does it need?


17 Mar 2008, 14:38
Post Re: Speakjet help
On Jan 19, 5:14 pm, Benz <HLRB...@gmail.com> wrote:
> I'm using a PIC16F877 programmed in C for rs-232 serial interface with
> a Speakjet. When turned on, the Speakjet says "Ready," and I can get
> it to say ready again with a printf("V"). But I can't get the thing to
> say anything else. Could I get some help with this? Should I be using
> putc? printf? Essentially, what kind of syntax does it need?

On Jan 19, 5:10 pm, Benz <HLRB...@gmail.com> wrote:
> I'm working on a project involving a Speakjet and a PIC chip I'm
> programming in C and have run into some trouble. Anyone able to help
> me out?

Let me give some more information:

I am using serial communication to a PIC chip programmed in C. When
the setup is turned on, the Speakjet enunciates "Ready." Using the
following code, I can cause it to enunciate "Ready" an additional
time:

#include <16F877.h>
#include <stdio.h>
#use delay(clock=20000000)
#use rs232(baud=9600, xmit=PIN_D1)

void main()
{
delay_ms(2000);
printf("\\0");
delay_ms(2000);
printf("V");
}

---

However, I have tried a number of methods and I can't get it to say
anything else from the list of sounds in the Speakjet user manual
(http://lib.store.yahoo.net/lib/e-clec-t ... etchip.pdf). I am
wondering if anyone could post a simple sample code in C that would
show me how to make it enunciate a word? I am entirely unfamiliar with
other programming languages and only somewhat familiar with C, so
something as simple and as thoroughly explained as possible would be
very much appreciated.


17 Mar 2008, 14:38
Post Re: Speakjet help
"Benz" <HLRBenz@gmail.com> wrote in message
news:b29b35f6-19ee-4fd2-922a-4738980e9369@d21g2000prf.googlegroups.com...
> I am using serial communication to a PIC chip programmed in C. When
> the setup is turned on, the Speakjet enunciates "Ready." Using the
> following code, I can cause it to enunciate "Ready" an additional
> time:
>
> #include <16F877.h>
> #include <stdio.h>
> #use delay(clock=20000000)
> #use rs232(baud=9600, xmit=PIN_D1)
>
> void main()
> {
> delay_ms(2000);
> printf("\\0");
> delay_ms(2000);
> printf("V");
> }
>
> ---
>
> However, I have tried a number of methods and I can't get it to say
> anything else from the list of sounds in the Speakjet user manual
> (http://lib.store.yahoo.net/lib/e-clec-t ... etchip.pdf). I am
> wondering if anyone could post a simple sample code in C that would
> show me how to make it enunciate a word? I am entirely unfamiliar with
> other programming languages and only somewhat familiar with C, so
> something as simple and as thoroughly explained as possible would be
> very much appreciated.

I have not used the speakjet chip so my reply is only a guess based upon
a quick look at the documentation.

The fact that you can command the speakjet chip to say 'Ready' says that
you have your computer talking to the speakjet chip. That is often the
hardest part.

The next thing that I would try is something like:

void main()
{
delay_ms(2000);
printf("\\0"); /* Enter SCP mode */
delay_ms(2000);
printf("V"); /* Request acknowledgement */
delay_ms(2000);
printf("X"); /* Exit SCP mode */
printf(" \\AX \\EK \\FAST \\RR \\OH \\SE \\SE"); /* Speak "across" */
delay_ms(2000);
}

The sequence for the word 'across' came from an item called
'SpeakJet Dictionary' in the PDFs section on
http://magnevation.com/speakjet.swf

Some other are:

a = \EYIY \IY
able=\FAST \EYIY \BO \UH \LE
about=\UX \OB \AYWW \TT
across= \AX \EK \FAST \RR \OH \SE \SE
act= \AY \EK \TT
acting = \AY \EK \TT \STRESS \IH \NGE
activated= \AY \KE \TT \FAST \IH \VV \FAST \EYIY \TT \IH \ED
add= \AY \AY \ED
address= \SLOW \AY \ED \FAST \RR \EH \SLOW \SE
adorn = \SLOW \AX \DO \FAST \OWRR \NE
afraid= \AX \FF \FAST \RR \EYIY \ED
after= \AY \FF \TT \FAST \AXRR
afternoon= \AY \FF \FAST \TT \FAST \AXRR \FAST \NE \UW \SLOW \NE
again= \AX \GE \SLOW \EY \NE
against= \AX \GE \EY \NE \SE \SLOW \TT
air= \EYRR
airplane= \EYRR \PO \FAST \LE \EYIY \NE
alarm = \SLOW \UX \LE \AWRR \MM
alert= \AX \LE \AXRR \TT
alien=\Fast \EY \Fast \EYIY \LE \IY \Slow \Fast \AX \NE
alive= \UX \LE \FAST \OH \FAST \OHIY \VV
all= \SLOW \AW \SLOW \LO
alligator= \AY \LE \FAST \IH \GE \RELAX \EYIY \TT \FAST \AXRR
almost= \OH \FAST \LO \MM \STRESS \OW \SO \TT
alone= \UX \LO \OW \OW \SLOW \NE
along= \UX \LO \OH \OH \SLOW \NGO
alpha= \AY \LE \FAST \FF \UX
alphabet= \AY \LO \FAST \FF \FAST \AX \STRESS \SOFT \BE \EY \SLOW \TT
already= \AW \LE \FAST \RR \EY \DE \IY
also= \SLOW \AW \SLOW \LO \SLOW \SO \OWWW
although= \FAST \OH \SLOW \LO \DH \SLOW \OWWW
always= \SLOW \AW \LE \WW \EYIY \SLOW \SE
am = \AY \AY \MM
among= \RELAX \UX \MM \UX \NGO
ample = \SLOW \AY \FAST \MM \PO \UX \LO


17 Mar 2008, 14:38
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © phpBB Group, phpBB SEO.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.