Customizing System Prompts

In keeping with the seemingly limitless flexibility of Asterisk, you can also modify the system prompts. This is very simple to explain, but generally difficult to do well.

With more than 300 system prompts in the main distribution, and an additional 600 in the asterisk-sounds add-on, if you’re contemplating customizing all of them you’d better have either a lot of money or a lot of time on your hands.

An audio engineer is also recommended to ensure that the recordings are normalized to –3 dB and that all prompts start and end at a zero-crossing point (with just the right amount of silence prepended and appended).

Once you have the recordings, the actual implementation is easy—simply replace the files in /var/lib/asterisk/sounds with the ones you have created.

Alternatively, you can opt to record your own prompts and place them in a folder of your choosing. When you refer to sound files with the Playback() or Background() applications, you can refer to the full pathname of the sound file, or to any subdirectory of /var/lib/asterisk/sounds/.

Note that the default sounds that come with Asterisk are delivered in format. We would not normally recommend storing them in this format (unless you have a lot of channels that will be entering the system using the GSM codec). Sure, you save some hard drive space, but the extra load on your CPU when it has to transcode all these files (not to mention the lower overall quality of the sound) makes the use of GSM undesirable, to our thinking. Use uncompressed files (such as .wav, .ulaw or .alaw) and your CPU will not have to work as hard. As an added bonus, your prompts will sound better.



[144] We were going to say “accentless English”, but then we’d have to apologize to folks from the British Isles, Australia, South Africa, and who knows where else. We are not experts in languages, dialects, and such, but our ears tell us that there is a type of accent that in North America is common for professional voices. This is the accent that is common to the Pacific coast from San Diego to Seattle, and most of English-speaking Canada as well. Both June and Allison deliver English prompts in this accent, and we think it sounds great.