Previous Topic

Next Topic

Book Contents

Book Index

Home Page

How to Play a Sound File to the Speakers During a Call

Playing sound files to speaker is useful for implementing "page the operator" type features in Call Trees.

There are two ways to play a sound file to the speakers during a phone call:

  1. Use Windows Script Host to run Windows Media Player. This technique is discussed in detail in the section on Playing a Sound File from a Macro.
  2. Use the ACCTools.GeneralTools COM object. The GeneralTools object has a PlayWaveFile function that can be used to play audio files. Follow the example shown in the sample code below to use this object:
  3. Dim gTools
    ' Create the GeneralTools object
    Set gTools = CreateObject("ACCTools.GeneralTools")
    ' Call the play wave file function.
    ' The function's only parameter is the name of the wave file.
    gTools.PlayWaveFile "C:\My Documents\Sound File.wav"

See Also

Advanced Audio Topics

How to Increase Volume of a Wave File through Scripting

How to Change Recording Silence Detection Levels

How to Enable Fast Forward/Rewind and Other Special Playback Features

How to Obtain Foreign Language and Other Speech Engines

How to Change Pronunciation for Text-to-Speech and Speech Recognition

How to Join Multiple Wave Files into One Wave File

How to Extract Sections of a Wave File

How to Analyze and Compare Recorded Audio Data