Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,
I trying to find a way to capture, using a microphone, the voice of a user answering a few questions on a web page, like asking a question and getting back a simple YES or NO, and use the YES or NO to do some other stuff or advance to another question.
Any help or application in Perl that would help me?
Thanks a lot!

Replies are listed 'Best First'.
Re: Voice Capture
by graff (Chancellor) on Sep 13, 2005 at 04:28 UTC
    In order to record audio on a web client, and send that back to a cgi script on a web server, you'll need javascript, I think, to actually control the client's sound card and to use client-local disk space or memory to hold the audio data long enough for transmission back to the server.

    As for what you do with the audio data once it's back on the server, you'll need some speech recognition software, which is not written in perl (though there are a couple of CPAN modules that provide wrappers for working with speech recognition software -- assuming you can get such software to run on a web server, and don't count on that).

    In other words, this is not a perl question, per se.

    (Trust me, just using buttons on a form will work a lot better.)

Re: Voice Capture
by chanio (Priest) on Sep 13, 2005 at 05:32 UTC
    You could use (after several tunnings) the Java Sound API to build an applet. You should also, convince the users to install that extension of the JDK before using your site. And, later, find a way to sync the users voice with the moment when it starts recording it. (for example, displaying some awesome photograph on the screen :) ) . Search at SourceForge's Projects for some JAVA soft to adapt as an applet.- Or just, use some VOIP system that everybody has...

Re: Voice Capture
by zentara (Cardinal) on Sep 13, 2005 at 10:05 UTC
      Nice, but it will not help the OP as it does not work "through" the web. You will have to install it on the user's computer and it seems a lot of trouble to go through for capturing a simple "YES" or "NO" answer.

      CountZero

      "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law