VOCP System - VOCP - Install
Note: Read the VOCP upgrade page instead of/in addition to this if you are upgrading VOCP from a previous version.
One of the major functions of the install script is converting all the system sound files (like numbers, days and such) from Portable Voice Format (pvf) to the Raw Modem Data (rmd) file that is appropriate for your modem.
You will be asked for the location of the pvftormd program (installed with vgetty) and the options to pass to it. These options determine how the pvf files are converted to rmd files: if you use the wrong ones, your modem won't be able to play any of them. The possible options are available by doing:
Listed below are the VOCP requirements - you may wish to have a look at the included doc/requirements.txt file for a more info on the 3rd party modules (most of which can be installed automatically) and programs required for various functionality (like Text-to-speech and ogg/mp3 encoding).
Fear not, if anything goes wrong you can either try again or do it manually. The modules you will need are listed above.
Audio::DSP is also required but as we were having lots of trouble with hissing and pops from Audio::DSP, a patch was created and sent to the author but we never got a response so, in the mean time, the patched version is included and will be installed by default.
You can install these modules using CPAN. Here's how you would install the Modem::Vgetty module:
# perl -MCPAN -e 'install Modem::Vgetty'
and so on for Tk, Tk::JPEG etc. (must be run as root)
If you are getting errors because of the 8000Hz sample rate of the sound files, eg
/usr/bin/pvftormd: Unsupported sample speed (8000) /usr/bin/pvftormd: Rockwell modems only support 7200 samples
use the included modify_sample_rate.pl script to modify the sample rate of the files. Do:
perl modify_sample_rate.pl XXXX
where XXXX is the required sample rate (e.g. 7200). Then run
# perl install_vocp.plagain.
When the installer has finished, you will find the main vocp program and configuration files in the /etc/vocp directory. The VOCP support programs and resources, (xVOCP,VOCPhax, etc.), documentation and VOCPweb will all be located under /usr/local/vocp.