I am writing some code to dial a phone number to notify a user when some sensor data falls out of range.
I would like to play a prerecorded WAV file when the phone is answered. Can this be done
I make the call using:
' Dial a number via an attached modem on COM1. Using com3 As IO.Ports.SerialPort = _ My.Computer.Ports.OpenSerialPort("COM3", 9600)com3.DtrEnable =
Truecom3.Write(
"ATM2" & vbCrLf)com3.Write(
"ATDT XXXXXXXXXXXXX" & vbCrLf) ' This is where I would like to play a WAV file once the phone is answered End Using
Thnx for any help you can give me.

Playing a WAV file once modem dials a number?
Castro
That occured to me as well....I tried the following code after the dial (also inserted some delay just in case)...it would play it through the speakers but not to the phone:
My.Computer.Audio.Play("C:\moonstep.wav", _AudioPlayMode.WaitToComplete)
Perhaps I have to redirect the output somehow....I better check that this modem supports voice as well. But if anyone has done this, would love to see the code.
Thnx
Jason Sacks - MSFT
I've used it in a RSView Scada alarm program to dial out both wav messages to phones and DTMF to pagers when a sensor goes into alarm.
Denvas
Enes Kabacaoglu
You might want to check out the new Speech Server. I know it supports automated phone answering. I would imagine it could support phone calling as well.
Jim Wooley
http://devauthority.com/blogs/jwooley
Vaish
I've used it in a RSView Scada alarm program to dial out both wav messages to phones and DTMF to pagers when a tag goes into alarm.