Re: How to sense mic input while getting modem input

From: Mujtaba (tomujtaba_at_hotmail.com)
Date: 03/17/04


Date: 16 Mar 2004 23:52:28 -0800


"Chris P. [MVP]" <msdn@chrisnet.net> wrote in message news:<uTYHTuqCEHA.2576@TK2MSFTNGP11.phx.gbl>...
> Mujtaba wrote:
> > hi
> > i am working on internet telephony. i have to get the audio input from
> > modem as well as from mic. So if i am getting input from modem then
> > how to sense input comming from mic so that i can change settings.
> >
> > Could anybody plz tell me about this problem...
> > Thanx
>
> Are you capturing each one seperately? Process the sample data and apply a
> threshold detection algorithm (should be able to find on the net or
> resonably easy to create from scratch).

Thans a lot

actually i have to simulate full duplex by opening up for phone device
for wave/input and alwasy pipe that audio over to the speaker of the
sound
card. You open up your mic on your sound card and look for voice
within
each buffer of audio. If you see voice, then stop wave/in on the tapi
device, start wave/out on tapi device and play the voice until the
user
stops speaking into the mic and then flip back by stop wave/out and
start
wave/in again.

i have one buffer for recording and one for playback.I am using
DirectSound where i have same buffers for modem or mic (only i am
doing is change input device).

Now could you plz tell how to tackle this situation????

Thanx



Relevant Pages

  • Re: Put your BBS back online with MagicJack?
    ... The real "modem" (modulates digital data into an audio signal) lives ... but voice quality is about equal to POTS most of the time. ... I haven't tried hanging a modem off of it, ... be doable...maybe even 9600 bps or 14.4 kbps, but all of that is just ...
    (comp.sys.apple2)
  • Re: how to record in an audio stream and be compitable with avi32 dll
    ... 1- provide voice calls from PC tp PC over Internet using SIP server, ... put this voice in an audio beuffer then resend it to the SIP server, ... I also can open a file, put it in a amemory buffer and send it to the ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: problem executing ITBasicCallControl::connect
    ... my modem supports does audio because when i QueryMediaType for audio, ... and i am able to make a voice call using the AT commands from ...
    (microsoft.public.win32.programmer.tapi)
  • Re: problem executing ITBasicCallControl::connect
    ... > my modem supports does audio because when i QueryMediaType for audio, ... > and i am able to make a voice call using the AT commands from ... See my TAPI and TSPI FAQ: ...
    (microsoft.public.win32.programmer.tapi)
  • Help with DirectSound - audio meter; recording from modem
    ... developing a windows that records audio off my machine. ... CaptureBuffer - my question is how do I convert the data in the buffer ... yet if you have a pointer to some sample code I'd be overjoyed! ... modem - anyone have any ideas on this? ...
    (microsoft.public.win32.programmer.directx.audio)

Loading