4.7.3. Silence Compressed Record
The Silence Compressed Record (SCR) feature enables a recording with silent pauses eliminated. This results in smaller size recorded files with no loss of intelligibility. The SCR feature is enabled in the Voice.prm file which is downloaded during initialization. You must edit this file and set appropriate values for the SCR parameters for your working environment before initializing the board(s). You cannot enable this feature through the Intel Dialogic voice API.
The Voice.prm file is downloaded by default to all voice boards during the installation and configuration process. As such, SCR is available to all voice channels in the system.
The SCR parameters specify the silence threshold, the duration of silence at the end of speech before silence compression begins, the duration of a glitch in the line which does not stop silence compression, and more. Details on the parameters are provided in Section , Silence Compressed Record Parameters. After SCR is enabled in the Voice.prm file, SCR is automatically activated through use of voice record functions such as dx_rec( ).
When the audio level is at or falls below the silence threshold for a minimum duration of time, silence compressed record begins. When a short burst of noise (glitch) is detected, the compression does not end unless the glitch is longer than a specified period of time.
Silence Compressed Record Parameters
As distributed, the SCR parameters in the Voice.prm file appear as comments (each line is preceded with #). To enable the silence compressed record feature, edit this file and remove the # from the beginning of each line containing an SCR parameter. Recommended values for the SCR parameters are provided in the file.
# ================================================================ # SILENCE COMPRESSED RECORD Parameters # To turn on SCR uncomment all of the lines in the block below. # Recommended values are given. # ================================================================ # --- For Silence Compressed Record, uncomment the block below --- #PARAM 134 : 100 # SCR_T = 1 second SCR trailing silence #PARAM 135 : 100 # SCR_PC = 100 bytes of pre-compensation #PARAM 136 : 43 # SCR_THRES = -43dB silence threshold #PARAM 137 : 4 # SCR_DG = 40ms of non-silence deglitch #PARAM 138 : 1 # SCR_ON = SCR is on # ---- End of SCR block ---- #Figure 13 and Table 3 illustrate and describe the use of the SCR parameters.
Encoding Algorithms
The following encoding algorithms and sampling rates are supported in silence compressed record:
- 6 kHz and 8 kHz OKI ADPCM
- 8 kHz and 11 kHz linear PCM
- 8 kHz and 11 kHz A-law PCM
- 8 kHz and 11 kHz m-law PCM
Enabling Silence Compressed Record on Only One Board
The silence compressed record feature is enabled in the Voice.prm file. When this file is downloaded during initialization, SCR is enabled on all boards in your system.
To enable SCR on only one board in a multi-board system configuration, perform the following steps:
- Disable the SCR parameters in the Voice.prm file.
- Create a new parameter file that contains the SCR parameters, for example, by copying and renaming Voice.prm to Voicescr.prm, and then edit the SCR parameters in the new parameter file.
- Download this new parameter file to the desired board by specifying it in DCM with the ParameterFile parameter. See Section 4.9, Modifying Other DCM Property Sheet Parameters for information about setting parameters in DCM.
Click here to contact Telecom Support Resources
Copyright 2002, Intel Corporation