Difference between revisions of "Sound files"
Line 80: | Line 80: | ||
You will need these sound files: | You will need these sound files: | ||
* | * GEL_cents (meaning 1/100 of main currency, "cents" for USD/EUR, "tetri" for Georgian GEL) | ||
* | * GEL_many (meaning many of main currency, "dollars" for USD, "euros" for EUR, "lari"? for Georgian GEL) | ||
* | * GEL_one (meaning 1 of main currency, "dollar" for USD, "euro" for EUR, "lari" for Georgian GEL) | ||
They should be placed into /var/lib/asterisk/sounds/mor. | They should be placed into /var/lib/asterisk/sounds/mor/ivr_voices/X. | ||
Where X means your language. | |||
<br><br> | <br><br> | ||
== Remove a default sound file from MOR logic == | == Remove a default sound file from MOR logic == | ||
Revision as of 09:15, 16 November 2010
Sound files used by MOR are located in /var/lib/asterisk/sounds/mor.
Currently supported languages
- English
- Spanish
- Russian
- French
- Brazilian-Portuguese
- Italian
- German
- Hebrew
- Chinese (partly)
- Vietnamese (partly)
Listen to the voices in: MOR IVR Samples
Add another language
Translation/recording
- Translate and record a sound file to your language (example: French (fr)).
Converting
In order to have Asteriskplay files, they should be converted to Bit rate: 8bit, Sample rate: 8000.
This can be done using the sox command:
/usr/bin/sox file1.wav -r 8000 -c 1 -s -w file2.wav resample -ql
... and putting them into /var/lib/asterisk/sounds/mor/ivr_voices/fr.
Also, the script /usr/src/mor/script/convert2astwav.sh can be used to convert many files at once. Just execute it in the folder with .wav files.
Errors
These errors means that a sound file is not Asterisk compatible:
[Dec 22 03:00:46] WARNING[20516]: format_wav.c:148 check_header: Not in mono 2 [Dec 22 03:00:46] WARNING[20516]: file.c:322 fn_wrapper: Unable to open format wav
Digits
Let's say you need digit sounds recorded in French (fr).
Put all digit recordings into /var/lib/asterisk/sounds/digits/fr.
List of sound files for digits
Setting language
- In DID settings, set language = fr.
If you want to set your default language for the whole system, not only for DIDs, then in sip.conf/iax2.conf/etc (they are in /etc/asterisk) set:
language = fr
Where fr is JUST AN EXAMPLE, CHANGE fr TO THE APPROPRIATE LANGUAGE!!!
Reload Asterisk.
Currency
For example, let's take Georgian currency GEL (Georgian lari).
You will need these sound files:
* GEL_cents (meaning 1/100 of main currency, "cents" for USD/EUR, "tetri" for Georgian GEL) * GEL_many (meaning many of main currency, "dollars" for USD, "euros" for EUR, "lari"? for Georgian GEL) * GEL_one (meaning 1 of main currency, "dollar" for USD, "euro" for EUR, "lari" for Georgian GEL)
They should be placed into /var/lib/asterisk/sounds/mor/ivr_voices/X.
Where X means your language.
Remove a default sound file from MOR logic
Just set the appropriate sound file to contain silence.
Remove/Change sound files
Files are stored in /var/lib/asterisk/sounds/mor.
Change the necessary sound file if you want to.
Make sure it is in Asterisk compatible format.