C/C++ Serial Communications (RS232)

psycobreed

Member
Dec 7, 2000
102
0
0
I am doing this little project that requires voice activation. The program uses the Windows XP speech engine to synthesize a sound wave into an actual word as a string inside a C/C++ program. I will use this string as an address to a case and output a particular value to a serial port to be further processed in an FPGA. What i need is a program to output this value to an RS232 Serial Port. This data will be sent to a UART designed in the FPGA and be used as input data in the FPGA.

To clarify:

User Says something in a Mic ----> Speech Engine Converts Spoken word into a string

C/C++ uses a function to synthesize this string

we say

Let X = arbitrary variable

X = string obtained from the speech engine (word that is spoken by the user synthesized by the speech engine)
case (X)

hello : data = 1;
thank: data = 2;
you: data = 3;
etc.

we want to output the value of data to the serial port.

Please Help!
I need a program that can achieve the results needed!

Thanks, David