Click here to Skip to main content
Click here to Skip to main content
Go to top

A simple prototype for demonstration of Voice Communication via Network/Internet

, 14 Jun 2000
Rate this:
Please Sign up or sign in to vote.
Voice communication
<!-- Link to demo file download -->
  • Download demo project - 253 Kb
  • <!-- Add the rest of your HTML here -->

    Introduction

    This is the simplest prototype to demonstrate how to realize a basic Voice Communication via Internet/Network on PC platform. The technique in this demo can be applied to develop the PC internet voice communication software, such as Internet Phone.

    To save development time, I borrowed the idea of Client/Server design in Microsoft MSDN sample "GlabolChat". 

    This sample has been tested in a intranet consisted of NT4.0 Server/Workstation and a LAN consisted of Win2000 Professional. The CPUs in the testing PC are at least  Intel P2 266 or faster, and SoundCard, Mic, Speaker are must.

    In the tests, it can work smoothly in bi-directions voice talk with the a acceptable sound quality.

    The basic system design

    This sample contain two modules, Talkserver and Talkclient.

    The basic system diagram is like:

    System diagram

    Server Module

    Server module has two type sockets, server sockets and client sockets. One server socket supports a certain network protocol and listens the incoming connection with such protocol. When a client connection request comes, the server socket create a client socket to build the link with the client. The client socket works to receive the messages from its client, transit the message to peer client socket, then the peer client socket send the messages to the target client. The client socket also get the messages from the peer   socket and send these message to its client.  

    Client Module

    The user can use the client modules to communicate in voice with each other. The socket in the client is implemented as sending/receiving messages to/from the server.

    The method to capture and transit sound data in client module is  building and runing a wave input device, when this wave input device records enough to size of the data buffer in its wave header structure, it notifies client instance. When the client receives the wave input device message, client retrieves the sound data in the wave input device buffer, then encodes the sound data into the voice communication message and sends to the peer (or target) client.

    To play a voice message is similar. The client has a wave out device. After the client receive voice message from other client, it decodes the sound data from the message, put the sound data to the wave output device and drives it to play the sound. 

    Change sound quality

    By changing the wave device buffer and wave format type defined in vtDef.h, you can change the sound quality in some kind of levels. 

    History

    Date Posted: Jun 14, 2000

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    Share

    About the Author

    Zhaohui Xing

    United States United States
    No Biography provided

    Comments and Discussions

     
    General[Message Deleted] Pinmemberit.ragester2-Apr-09 21:50 
    Generalwnat to setup an vc++ project Pinmembery_naga_malleswararao10-Apr-06 1:51 
    GeneralGood Job ! Pinmembercarlmalden14-Mar-06 15:22 
    GeneralClient crashes when voice talk is clicked Pinmemberdoctorrie1-Oct-05 20:06 
    Generalencryption Pinmembervalroft12-May-05 10:11 
    i would like to add some encryption (DES encryption) to this voice application,
    can i locate my encryption source code to this voice application source code?
    where?
     
    thanks
    best regards

    GeneralRe: encryption Pinmembersuendisra15-Apr-12 17:56 
    QuestionHow to configure the protocol and talk server Pinmemberwenfoo16-May-04 17:53 
    Generalbetter code then this Pinmemberdharani26-Sep-03 1:58 
    QuestionHow support a microphone in C# PinsussCaoNan22-Aug-03 21:00 
    AnswerRe: How support a microphone in C# PinsussAnonymous5-Oct-05 18:23 
    Generalerror in preparing buffer when reseting PinsussMaria Calvo1-Jul-03 6:20 
    Generalrepeated strange noises with talk option activated PinsussMarcos Martinez1-Jul-03 0:39 
    Generalfirst Pinmembermannu200320-Apr-03 7:03 
    GeneralRe: Making it for WinCE Pinmemberdharani26-Sep-03 2:00 
    Questionhow can i modify it to work over Internet Pinmemberkeen22-Dec-02 20:01 
    AnswerRe: how can i modify it to work over Internet PinmemberJoey24-Dec-02 6:18 
    GeneralRe: how can i modify it to work over Internet Pinmembermesut_pak12-Mar-05 6:32 
    GeneralEcho problem PinsussSaad Maqsood5-Nov-02 21:46 
    GeneralRe: Echo problem PinsussAnonymous7-Jan-03 17:26 
    Generalcool! PinsussAnonymous12-Aug-02 11:34 
    GeneralThis is not working in LAN PinsussAnonymous4-Aug-02 22:14 
    GeneralRe: This is not working in LAN PinmemberAlejandroDG13-Mar-05 3:34 
    GeneralThis is not working in LAN PinsussAnonymous4-Aug-02 22:13 
    GeneralVery nice but a lot of echos PinmemberAnonymous24-Apr-02 21:12 
    GeneralVoice communication in windows ce platform Pinmembermazlin25-Feb-02 18:46 
    GeneralRe: Voice communication in windows ce platform Pinmembercops11-Apr-02 4:54 
    GeneralVery Good Application PinmemberAnonymous8-Feb-02 23:46 
    Generalgood project Pinmemberhemskie20-Jun-01 6:06 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    | Advertise | Privacy | Mobile
    Web03 | 2.8.140921.1 | Last Updated 15 Jun 2000
    Article Copyright 2000 by Zhaohui Xing
    Everything else Copyright © CodeProject, 1999-2014
    Terms of Service
    Layout: fixed | fluid