How to write a script to play a wav file?

Questions, problems, and other issues for Ascendis Caller ID that aren't covered by the other forums.
Post Reply
jtsoft
Posts: 10
Joined: Sun Nov 21, 2004 2:10 pm

How to write a script to play a wav file?

Post by jtsoft »

I'm wanting to play a wav file thru my voice modem before I hang up... on callers that unidentified. I know how to and have my script for unidentifed callers, but would like to say a few words before I hang up on them.

How can I do this?

Thanks,
JT
Bill Root
Site Admin
Posts: 1025
Joined: Mon Jan 19, 2004 1:29 pm
Location: Perrysburg, OH
Contact:

Re: How to write a script to play a wav file?

Post by Bill Root »

Hi JT,

To play a sound through the modem, use the PhoneSound command in an advanced script. You will have to use it before the HangUp command, of course. You will probably have to reformat your wave file as PCM 8.000 kHz, 16 Bit, Mono -- you can do this in Sound Recorder, which is included with Windows.

So, for example, your unidentified caller script might look like this:

Code: Select all

//LANGUAGE=DWS
PhoneSound('Disconnect Tones.wav');
Hangup;
I recommend using the latest beta version of Ascendis Caller ID, as we made some improvements in this area recently.

If I misunderstood your question, please clarify.

Finest regards,
Bill Root
Ascendis Software
jtsoft
Posts: 10
Joined: Sun Nov 21, 2004 2:10 pm

Post by jtsoft »

Big Thanks. Exactly what I was looking for.

JT
Post Reply