Play a wave file through the telephony line device


The etPlay control is used to play wave files over any available Windows Wave audio device (see Play a wave file). To play through a telephony line device you first need to select the correct wave audio device. The etLine.WavePlay.Available property indicates if the select telephony device has an audio device associated with it. The etLine.WavePlay.ID indicates which wave play audio device is associated with the TAPI line device. Set the etPlay.Device.ID property to the value of the etLine.WavePlay.ID.

 

Using TeleScope

1.    Make a Call or Answer a call.

2.    Select the menu option "TeleScope | Synchronize | by etLine"

3.    Display the etPlay TeleScope. For an example see Display the etLine TeleScope.

4.    Click the Source tab.

5.    Enter a file name with full path in the etPlay.Source.FileName edit box.

6.    Select the menu option "Device | Active"
     -or-
Click the first VCR style button adjacent to the Device list box

 

Using TeleTools

1.    Make a Call or Answer a call.

2.    Set the etPlay.Device.ID property to the value in etLine.WavePlay.ID
     Example:
           etPlay1.Device.ID = etLine1.WavePlay.ID

3.    Set the etPlay.Source.FileName property to the file name with full path.
     Example:
           etPlay1.Source.FileName := 'C:\Program Files\ExceleTel\TeleTools\3.7\Wav\et';

4.    Set the etPlay.Device.Active property to True.
     Example:
           etPlay1.Device.Active := True;

 

Note: When playing through the audio device associates to a TAPI line device you must first have a call in the connected state (see Check the current Call State).