Record Audio

VCS only

This block captures a voice message left by the caller.

Properties

Values

Description

File Name

Filename

The name of the file that holds the recording. This can be either a fully-qualified filename, for example, C:\MyFiles\foo.wav,  or just a filename, for example, foo.wav.

Use a unique or temporarily unique name so the script has time to send the email with the wav file attached before another wav file is recorded with the same name, for example: message$line.lineID$.wav creates a wav file named message23.wav for line 23 on a VCS and is not overwritten until another caller on line 23 of that VCS records a .wav file. See How to use variables.

If it is a fully-qualified name, the file is not automatically deleted.

If it is not a fully-qualified filename, then the file is placed in the directory pointed to by the CosmoDesignerTempDir registry key and is automatically deleted at the end of the call.

All recorded files are in .wav format, 8KHz – 16 bit mono.

If the filename specified does not contain the .wav extension, this extension is automatically appended to the filename.

Max Time

Seconds (integer)

Maximum length of recording. If left blank the default is 300 seconds.

Max Silence

Seconds (integer)

Maximum amount of time (silence) indicating the end of the recording. If left blank the default is 3 seconds.

Termination Digits

0‑9 # and *

Enter digit(s), # or *. These value(s) can be used by the caller to terminate this command.

For example, to allow any touch tone to be a termination digit, set this to 1234567890#*

Clear Digits 

Yes or No

Clear the digit buffer of any digits entered prior to recording. This should be set to No by default.

Beep Type

None

Type of beep to play at start of recording time, or none.

If left blank, the default is 0 (None)

Short, Normal, or Long

The filenames that correspond to the various beep lengths are:

  • beep_short.wav
  • beep.wav
  • beep_long.wav

File Size

String

The name of the variable that holds the resulting file size (in bytes) of the recording.

This can be used to determine if this .wav file should be sent or not. For example, set File Size to VMSize and then compare VMSize to 40000 (2.5 seconds).If recording is < 40000 (2.5 seconds) then do send voicemail (email with .wav file attachment).

Note

The audio format for recording is 8k – 16 bit, so a one-second recording is equal to 16000.

See How to use variables.

Line

Inbound

The function is applied to the original (incoming) call.

Outbound

The function is applied to the outbound call (to where the call is transferred).