Applies to VoipNow 3.5!
Starting with VoipNow 3.5, it is possible to use sounds at higher quality. Before this latest version, all the sounds from Asterisk were encoded at 8KHz. From now on, all sounds files are updated to higher quality 16 KHz. Such sounds are already available for download here.
Getting the sounds
Let's say we want to install a 16KHz French sounds pack recorded by June Wallack, on VoipNow 3.5. For that we need to download the proper archive.
frfolder that you need to create.
mv *.sln16 fr
frfolder, there must be a
frfolder with all the sounds from that folder. Basically, every other folder must include a
frsub-folder containing all the sounds. For instance, all the sounds from the
dictatefolder must go under the
frfolder that must be created under
dictate. In the end, the directory structure must be the following:
In all the folders, except the newly created
fr, there must be a fr sub-folder where all the sounds must go. For instance, all the sounds from the
dictate folder must go in the
fr sub-folder that must be created under
dictate. At the end, the directory structure must have the following structure:
Converting to the required format
In order to convert from the
slin16 format to
wave, we can use
sox. The following command converts a sound to the proper format used by Asterisk:
sox -t raw -r 16k -e signed-integer -b 16 -c 1 <input>.sln16 output.wav
Once the sounds are converted, you need to move them to the folder used by Asterisk to store sounds and set the correct owner for those files:
cp -Rap * /var/lib/asterisk/sounds/
chown -R asterisk: /var/lib/asterisk/sounds/
Down-sampling files the required format
If sounds are recorded in a professional way or with a professional recorder that is not able to record uncompressed wave at 16KHz, you may use the following command to down-sample those files:
sox sound.wav -e signed-integer -c 1 -b 16 -r 16k sound-down.wav
/root/soundsfolder (assuming they are stored there) to the required format used by Asterisk:
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.