CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
Dragon Naturally Speaking dictating into Perl program?


New User

Sep 8, 2008, 9:56 AM

Post #1 of 1 (2192 views)
Dragon Naturally Speaking dictating into Perl program? Can't Post

I need to get the text output from Dragon Naturally Speaking (9.10) into a running Perl script. I can do a hash lookup to see if the current word is one of a few dozen commands or if it is just raw data.

I tried opening STDIN and reading it, but nothing is there and the words just show up on my dumb dos window.

What am I doing wrong here?

sub speak() {
open(SI, "-") || die("Can't open stdin!\n");
while(<SI>) {
printf("Got word \"%s\".\n", $_);

Is there another way to do this? I can send the text to OpenOffice Writer and set the autosave to a 1 minute interval and poll the file, but that would be like trying to engage in an intelligent conversation with Homer (or Jessica) Simpson.

Any ideas?

Thank you,


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives