Previous Topic

Next Topic

Book Contents

Book Index

Home Page

How to Increase Volume of a Wave File through Scripting

Active Call Center includes a COM component that can be used to boost wave file volume from a macro. This feature is particularly useful for amplifying audio that was recorded from a previous call, or for implementing volume control features on message playback.

The COM component is created by calling CreateObject("ACCTools.AudioBooster") and its use is shown below:

' Define a variable for the Booster
Dim Booster
' Create the AudioBooster
Set Booster = _
CreateObject("ACCTools.AudioBooster")
' Amplify the wave file and save it as a new file.
Booster.Amplify _
"C\InputFile.wav", _
2.5, _
"C:\OutputFile.wav"

Note that the object has only one method, Amplify. Parameters for the Amplify method are input file, amplification level, and output file (respectively). The amplification is a positive numeric value with 0.5 being half as loud, 1 being no amplification, 2 being twice as loud, etc. The example above shows 2.5x audio amplification.

See Also

Advanced Audio Topics

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

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