Forum Moderators: coopster & phranque

Message Too Old, No Replies

CGI Form - Serial Port

html form to serial port program needed

         

midmocelebration

12:39 pm on Feb 26, 2003 (gmt 0)

10+ Year Member



Greetings,
I need a simple CGI / PERL / Shell Script that will take the output from a textbox in an HTML form and throw it at a serial port. (text-from-the-web to speech)

I am unable to find anything that does this.

Thanks

dingman

2:31 pm on Feb 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Text-from-the-web to speech-from-a-synthesizer-miles-away-in-a-data-center? How is this useful? For your user to hear the speech, it needs to go to the *user's* serial port, to which a snythesizer is attached. Even if you know which port that is, you can't do it in a server-side script, because the server doesn't have access to the client's serial port. (Besides, software synthesis is becoming more common than hardware, if I'm not mistaken.)

midmocelebration

3:13 pm on Feb 26, 2003 (gmt 0)

10+ Year Member



The server is in my home, the site runs on a small linux
box. I have a hardware synth plugged into it, and I can
make it talk from the command prompt, but want to make
it talk from a web page.

dingman

5:05 pm on Feb 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you're on a *nix system, you should be able to open the device special file for writing and send the text to it the same way you would write to any other file. Under Linux, you'd probably be looking for /dev/ttyS0 or /dev/ttyS1, depending on which port your synth is attached to.

bcolflesh

9:20 pm on Feb 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Dear Midmocelebration,
Take a look at:

[trios.org...]

Regards,
Brent

marcs

1:26 am on Feb 27, 2003 (gmt 0)

10+ Year Member



I need a simple CGI / PERL / Shell Script that will take the output from a textbox in an HTML form and throw it at a serial port. (text-from-the-web to speech)

The tricky part here seems to be the text to speech conversion.

The easiest way to do this would probably be to take the input from the form, save it to a text file and launch some text-to-speech software (feeding it the text file) from the script in background.

That does away with having to to text to speech conversion yourself (via the script). Not sure if apache runs with sufficient permissions to use the serial device or not.

Or find a text-to-speech converter with a GUI and don't use apache at all.