Try to see if this helps. It is in C#, but the basic idea is the same.
http://www.thescripts.com/forum/forum166.html
(Look for How to play a wave file on the phone (C#) - PART I, II, and III)...
User Profile
Collapse
-
How to play a wave file on the phone (C#) - PART III
PART III: Putting things together
In part I we examined the modem to verify that it supported voice. If so, we took a note about the voice data format that we would use. In the second part, we prepared a wave file and implemented a piece of code in C# to be used by HomeZIX to read the wave file into a buffer. Now, it’s time to put things together to send out that buffer as an audio stream over the phone line to a designated phone... -
How to play a wave file on the phone (C#) - PART II
Part II: Wave file - How to read to a buffer
Wave (or Wav) is the standard format for storing audio data on the PC. As software developers, we are interested in the internal structure of the file so that we can open and read data correctly before transmitting it over the phone line.
Fortunately, there are plenty of good articles on the internet addressing the wave file format. Here is one of them: http://www.sonics... -
Let's try this to see if it helps
...Code:try { using (StreamReader sr = new StreamReader("your file name here")) { while ((line = sr.ReadLine()) != null) { if (line != "") { TreeNode insert = new TreeNode(); insert.Text = line; trv_Root.Nodes.Add(insert);Leave a comment:
-
How to play a wave file on the phone (C#) - PART I
Our goal here: We want the PC to call a designated phone number when something happens, and report it in easy-to-understand spoken audio snippets which are saved in the form of pre-recorded wave files.
PART I: Find out about your modem's capability.
Most modems can be classified with these characteristics :
Data/fax
Data/fax/voice
Data/fax/voice/speakerphone
In our case here,...
No activity results to display
Show More
Leave a comment: