Installing UK voice prompts for Asterisk

By default the English language voice prompts that Asterisk comes with have an American accent. There are some free UK voice prompts available and below are instructions for downloading and installing those. The instructions below will replace the existing US prompts with the UK ones.

The prompts can be found here – http://www.enicomms.com/cutglassivr/

More details about different language voice prompts can be found here – http://www.voip-info.org/wiki/view/Asterisk+sound+files+international

The commands below download the wav, ulaw, alaw, g729 and g723 codec versions.

First create a folder to download the files to –

cd /usr/src
mkdir uk
cd uk

next grab the files –

wget http://www.enicomms.com/cutglassivr/audiofiles/Alison_Keenan-British-English-44kwav.tar.gz
wget http://www.enicomms.com/cutglassivr/audiofiles/Alison_Keenan-British-English-alaw.tar.gz
wget http://www.enicomms.com/cutglassivr/audiofiles/Alison_Keenan-British-English-g723.tar.gz
wget http://www.enicomms.com/cutglassivr/audiofiles/Alison_Keenan-British-English-g729.tar.gz
wget http://www.enicomms.com/cutglassivr/audiofiles/Alison_Keenan-British-English-ulaw.tar.gz

next extract the files that were downloaded –

find . -name 'Alison_Keenan-British-English-*' -exec tar xvfz {} \;

now we’re going to replace the file extensions on some of the files to match the default Asterisk ones –

find . -exec rename .g711a .alaw {} \;
find . -exec rename .g711u .ulaw {} \;

now remove the original tar files, copy over the new files and tidy up the download folder –

rm -f Alison_Keenan-British-English-*
unalias cp
cp -rf * /var/lib/asterisk/sounds/en
cd ..
rm -rf uk

You can hear an example of these prompts by calling the echo test number here – http://sysadminman.net/livedemo.html

23 thoughts on “Installing UK voice prompts for Asterisk

  1. Joseph

    Hi Matt
    Thank you very much for you tutorials, its very helpful for us.

    1. It seems like gsm type file is missing in http://www.enicomms.com. Do I need them actually or it should work without gsm type file.
    2. I converted wab to gsm using sox, and put them in a2billing sounds/en folder but it did not work. Are those sound files are a2billing as well or its just for asterisk?

    Thank you again
    Joseph

  2. matt Post author

    Hi Joseph

    I think you should be on with the wav files on there. I’m pretty sure Asterisk will play those on any channels it doesn’t have specific files for.

  3. barry

    Hi,
    My asterisk didnt like the wavs. They’re 44k so it mad a moan. This took a lot longer to figure out than it probably should ahve, but I’m an asterisk noob. It was working on one ext but not another. Asterisk was not happy converting the wav from 44k to a format for g722, whereas it alread had the g711. Anyone, the long and shor of it is go to the link above, and extract the SLN format to keep everything happy. incidentally, i stuck them in a dir called uk and didnt overwrite the “en” ones

  4. Pingback: Installing UK voice prompts for Asterisk | VMWare | EMC | Exchange | Windows

  5. UKAndyM

    Correction, they are there but they’re named incorrectly. vm-onefor.* is incorrectly titled vm-pressonefor.*

    All working well now. Unfortunately there are no prompts for wake up calls

  6. Ben Harris

    These instructions worked fine for me on my AsteriskNow installation.

    A couple of the sound files didn’t have the correct names and needed renaming though:

    vm-pressonefor.* should be vm-onefor.* (used for voicemail “Press One For”).
    vm-old.* should be vm-Old.* (not sure where used, but didn’t match existing filename).

  7. Ben Harris

    Sorry – just spotted that that my earlier comment had already been mentioned further up the page!

  8. Julian Church

    Great instructions. Thanks for your help.

    FYI, I found some more mis-named files: vm-reveiw.* should be named vm-review.*

  9. Julian Church

    And a couple more:

    vm-friends.* should be vm-Friends.*
    vm-urgent.* is missing

    btw, vm-Old.* is a the name of the voicemail folder where old messages are retained.

  10. Chris

    When I try the:
    find . -exec rename .g711a .alaw {} \;

    – it reports a large number of errors like this:
    syntax error at (eval 1) line 1, near “.”

    I’ve been really careful to type it correctly (BTW it would have been helpful to allow copy/paste on these commands).

    Any ideas to help me please?

  11. Matt Post author

    Hi Chris

    You should be able to copy and paste the commands above?

    That find command works fine on CentOS but not on my Ubuntu machine.

    Try this if WordPress doesn’t mess up the formatting …

    find . -name "*.g711a" -exec rename -v 's/\.g711a$/\.alaw/i' {} \;
    find . -name "*.g711u" -exec rename -v 's/\.g711u$/\.ulaw/i' {} \;

    Matt

  12. Chris

    Thanks Matt, I found another way around it and so I got all the files renamed. However, it didn’t make any difference – I still get the American lady.

  13. Graham

    Thanks Matt, the only thing is, I can copy & paste anything from this page, except the lines of code. Doh!

  14. Matt Post author

    Handy 🙂

    Are you sure though because I can … but when I highlight the text it highlights in black, so it’s hard to tell.

Comments are closed.