It is possible but CGI per se has relatively little to do with it. CGI is a stateless protocol whereby a client (web browser) request something from a server. The server delivers the requested data and there the transaction effectively ends.

So starting backwards can a server deliver a sound stream. Yes. This is internet radio type technology and exists.

Could a sever accept multiple inputs, mix them together and stream the result. Once again yes, and this is what you need to have multiple open mics on several clients.

Finally how do you get the input, and this is possibly the major issue. Unfortunately Javascript does not have a openMicStreamToServer() method, but this is effectively what you need. To access the microphone on a client you need client side code - Java or perhaps ActiveX (others?). This code would need to open the mic, make a private socket connection to your server and stream the (compressed) voice data. On the server you would be uncompressing, mixing, recompressing then streaming it out.

So you could do it. There are all sorts of issues and they are far from trivial. There are lots of people offering products that try to work in and around this sort of idea. You may find what you want at http://www.teamspeak.org/

cheers

tachyon


In reply to Re: Voice chat through CGI by tachyon
in thread Voice chat through CGI by sulfericacid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.