TrimSilence

From SoftIVR

Jump to: navigation, search

trimSilence

trimSilence(filename) trims silence from the beginning and end of a recorded file.

Parameters

  • filename - the file to trim

Return values

trimSilence() returns 0 on success.

Examples

Record the caller's name, and trim it:

say("Please record your name after the tone.");
playTone(800, 0.5);
record("name.wav");
trimSilence("name.wav");