SERINP$ and Text-to-Speech module in my project...???
Posted: Sat Jul 13, 2013 4:40 pm
Greetings All,
For a project I'm working on I purchased an Emic 2 Text-to-Speech module that takes a 9600 baud serial text string and converts it to speech, very nicely i might add. ((( Listen ))) ( Manual )
My problem is I don't understand how to use SERINP$ to get a response from the text-to-speech module.
What i would like to have is a small routine that would allow me to enter a text string and get a response back from the module using control basic.
According to what i read in the manual this shoud work, but it doesn't.
Any help is greatly appreciated...
Robert
.
For a project I'm working on I purchased an Emic 2 Text-to-Speech module that takes a 9600 baud serial text string and converts it to speech, very nicely i might add. ((( Listen ))) ( Manual )
My problem is I don't understand how to use SERINP$ to get a response from the text-to-speech module.
What i would like to have is a small routine that would allow me to enter a text string and get a response back from the module using control basic.
According to what i read in the manual this shoud work, but it doesn't.
Any help is greatly appreciated...
Code: Select all
'talk test
PINMODE 36, OUT
PINMODE 37, IN
SERINIT 1,9600,8,1,0 ' port 1, 9600 bps, 8 data bits, 1 stop bit, no parity
CRLF$ = CHR$(13) + CHR$(10) ' for CR & LF
TXtalk$ = "testing."
SOUT$ = "s" + TXtalk$ + CRLF$ ' combine "s", text & CRLF
x = SEROUT(1, SOUT$) ' Sends SOUT$ to serial port 1 (pin 36)
END
Robert
.