Re: Record Message
- From: John Schneider <johnmsch@xxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 13:14:01 -0800
"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
.
- Follow-Ups:
- Re: Record Message
- From: William DePalo [MVP VC++]
- Re: Record Message
- References:
- Re: Record Message
- From: William DePalo [MVP VC++]
- Re: Record Message
- Prev by Date: Re: Record Message
- Next by Date: Re: Record Message
- Previous by thread: Re: Record Message
- Next by thread: Re: Record Message
- Index(es):
Relevant Pages
|