Re: Record Message



"William DePalo [MVP VC++]" wrote:
"John Schneider" <johnmsch@xxxxxxxxxxxxxxxxx> wrote in message
news:8CB77FE3-0B4D-4493-B019-A8F85BAA5BAE@xxxxxxxxxxxxxxxx
I'm looking for a way to record a phone call. Specifically, I have a
voicemail that I'd like to record to a wav or mp3 file. I have a V.92
voice
modem. I've seen programs like ModemSpy, but don't need all that
functionality. All I need to do is to route the sound from the modem card
to
my sound card, then I can use something like Audacity to record the sound.

Since there are a few commercial products that provide this functionality,
I
know there is a way to have the sound routed from the modem to the sound
card. I'm guessing this is done via TAPI. I have years of programming
experience, but would prefer to use something dirt-simple like VBScript,
or
at least Visual Basic.

Forget VB.

Answer the call with TAPI. For the line in question call lineGetID() passing
a device class of "wave/in". That will get you the ID of the "microphone"
device which the UNIMODEM TSP synthesizes out of whole cloth. In other
words, the TSP provides a driver that makes telephony software think it's
addressing a locally connected microphone. Armed with the ID, you open the
device, prepare some buffers, and write the digitized audio to a file as the
buffers come back from the driver.

If you get stuck, I suggest you post in the multimedia group

microsoft.public.win32.programmer.mmedia

and ask for help recording from a microphone. Don't tell them about the
modem. It clouds the issue.

Once you've got that done, you can ask for help here on answering a call.
When both pieces are done, you glue them together.

Alternatively, you might want to check if TAPI v3, which provides a COM
interface, will do what you need. I'm not sure there is a similar "divide
and conquer" strategy if you go the v3 route. I don't do COM unless there is
no other viable option.

Regards,
Will
www.ivrforbeginners.com

Thanks Will! I'm reading up more on using TAPI, but your opening statement
has me confused. From my understanding, TAPI is just an API. You have to
use some kind of programming language to make those API calls. Wheter it be
VBScript, VB .NET, C++, C#, or even Java, you need SOMETHING to use the API.
What did you mean by "Forget VB. Answer the call with TAPI."?

BTW, I'm not even looking for something to answer the call. My scenario is
to just record whats on the line. I have a phone line running from the wall
jack to the input on the modem, then a line from the output of the modem to a
phone. I'd pick up the phone, dial my voicemail, go through the prompts,
then as the message starts playing, just start recording whats coming across
the line.

Thanks again for the response!
John
.



Relevant Pages

  • Re: lineGetID returns the same id for wave/in and wave/out
    ... card) and then I implemented playing part (from sound card to phone). ... Microsoft MVP for TAPI / Windows SDK ... The problem occurs when I open mic and speaker of connected modem. ... Send these IDs to Wave Library for recording and playback (fullduplex ...
    (microsoft.public.win32.programmer.tapi)
  • Re: lineGetID returns the same id for wave/in and wave/out
    ... card) and then I implemented playing part (from sound card to phone). ... Microsoft MVP for TAPI / Windows SDK ... The problem occurs when I open mic and speaker of connected modem. ... Send these IDs to Wave Library for recording and playback (fullduplex ...
    (microsoft.public.win32.programmer.tapi)
  • Re: URGENT TAPI PROBLEM
    ... i thought of using MSP cause i wanted to forward SOUND ... stream to MODEM device output line. ... Microsoft MVP for TAPI / Windows SDK ...
    (microsoft.public.win32.programmer.tapi)
  • Re: phoneSetStatusMessages
    ... My PC speakers are connected to the soundcard not the modem. ... but in any case I do not hear any sound coming from ... > Another very usefull TAPI test tool is JulMar's Phone (HowTo: ...
    (microsoft.public.win32.programmer.tapi)
  • RESOLVED: RegisterCallNotifications for Multiple Modems?
    ... Second, As all of the TAPI gurus here pointed out, it is neccessary to ... with modem based TAPI lines as using just Monitor does not result in any ... BSTR* ppName = CXT AC-Link Modem for Intel ...
    (microsoft.public.win32.programmer.tapi)

Quantcast