Difference between revisions of "Sound files"

From Kolmisoft Wiki
Jump to navigationJump to search
 
(31 intermediate revisions by 5 users not shown)
Line 1: Line 1:
==Description==
[[File:all_flags.png|right|100px]]Sound files used by MOR  are located in /var/lib/asterisk/sounds/mor.
[[File:all_flags.png|right|100px]]Sound files used by MOR  are located in /var/lib/asterisk/sounds/mor.
To see sound files go to '''SETTINGS''' -> '''Setup''' -> '''Voices''' (SETTINGS -> Billing -> DIDs -> IVR -> Voices for MOR X4 and older versions) and click the ''Sound files'' link:
[[File:Ivr soundfiles.png]]


<br><br>
<br><br>
Line 15: Line 23:
* Chinese (partly)
* Chinese (partly)
* Vietnamese (partly)
* Vietnamese (partly)
Listen to the voices in: [[MOR IVR Samples]]


<br><br>
<br><br>


==Add another language==
==Add another language==
<br>
=== Necessary files ===
<table border=1>
<tr><th>File name</th><th>What it says</th></tr>
<tr> <td> and </td> <td> ...and...  </td></tr>
<tr> <td> ani_end_ivr_1 </td> <td> Press one to dial new number. Press two to redial same number. Press three to check your balance.  </td></tr>
<tr> <td> ani_end_ivr_2 </td> <td> Press one to dial new number. Press two to redial same number. Press three to check your balance. Press four to use voucher.  </td></tr>
<tr> <td> auth_failed</td> <td>  Authorization failed. </td></tr>
<tr> <td> balance_empty</td> <td> Your balance is empty. </td></tr>
<tr> <td> callerid_activated</td> <td> CallerID number is activated. </td></tr>
<tr> <td> callerid_deactivated</td> <td> CallerID number is deactivated. </td></tr>
<tr> <td> call_forward_activated</td> <td> Call forward activated. </td></tr>
<tr> <td> call_forward_cancelled</td> <td> Call forward cancelled. </td></tr>
<tr> <td>cc_busy</td> <td>  The number is busy. </td></tr>
<tr> <td> cc_callingcard_choices</td> <td> Press one to enter new number. Press two to redial same number. Press three to check your balance. Press four to use new card. Press five to increase your calling card balance by using another card. </td></tr>
<tr> <td> cc_card_expired</td> <td>  Card expired. </td></tr>
<tr> <td> cc_card_is_empty</td> <td>  Card is empty. </td></tr>
<tr> <td> cc_card_is_not_sold_yet</td> <td> Card is not sold yet.  </td></tr>
<tr> <td> cc_card_not_found</td> <td> Card not found.  </td></tr>
<tr> <td> cc_dialing_previous_number</td> <td>  Dialing previous number... </td></tr>
<tr> <td> cc_end_ivr_1 </td> <td>  Press one to dial new number. Press two to redial same number. Press three to check your balance. Press four to use new card. Press five to increase your Calling Card balance by using another card.  </td></tr>
<tr> <td> cc_end_ivr_2 </td> <td>  Please enter the number you wish to call followed by the hash (#) key.  </td></tr>
<tr> <td> cc_end_ivr_4 </td> <td>  Press one to dial new number. Press two to redial same number. Press three to use new card. Press four to increase your Calling Card balance by using another card.  </td></tr>
<tr> <td> cc_end_ivr_5 </td> <td>  Press one to dial new number. Press two to redial same number. Press three to use new card. Press four to increase your Calling Card balance by using another card.  </td></tr>
<tr> <td> cc_end_ivr_6 </td> <td>  Press one to dial new number. Press two to redial same number. Press three to check your balance. Press four to use new card. Press five to increase your Calling Card balance by using another card.  </td></tr>
<tr> <td> cc_end_ivr_7 </td> <td>  Press one to save your PIN number. Press two to clear your PIN number. Press three to redial. Press four to make new call.  </td></tr>
<tr> <td> cc_end_ivr_8 </td> <td>  Press one to dial new number. Press two to redial same number. Press two to clear saved PIN number. Press four to use new card. </td></tr>
<tr> <td> cc_end_ivr_9 </td> <td> Press one to dial new number. Press two to redial same number. Press three to use new card. Press four to increase your Calling Card balance by using another card. </td></tr>
<tr> <td> cc_end_ivr_10 </td> <td>  Press one to dial new number. Press two to redial same number. Press three to check your balance. Press four to use new card. </td></tr>
<tr> <td> cc_enter_card_number</td> <td> Please enter your card number:  </td></tr>
<tr> <td> cc_enter_card_number_pin</td> <td> Please enter your card and pin number:  </td></tr>
<tr> <td> cc_enter_pin</td> <td>  Please enter your pin number: </td></tr>
<tr> <td> cc_goodbye</td> <td>  Goodbye. </td></tr>
<tr> <td> cc_please_enter_callerid_number</td> <td>  Please enter your callerID number </td></tr>
<tr> <td> cc_you_have_entered_nothing</td> <td> You have entered nothing.  </td></tr>
<tr> <td> cc_please_enter_number</td> <td> Please enter the number you wish to call followed by the hash (#) key. If making an international call include the international code.  </td></tr>
<tr> <td> cc_unreachable</td> <td> The number is unreachable.  </td></tr>
<tr> <td> enter_pin</td> <td> Please enter your PIN number.  </td></tr>
<tr> <td> enter_voucher_number</td> <td> Please enter voucher number.  </td></tr>
<tr> <td> ent_target_attendant</td> <td> Please enter number of extension to use for your target attendant then press # </td></tr>
<tr> <td> EUR_cents</td> <td> ...cents.  </td></tr>
<tr> <td> EUR_many</td> <td> ...euros...  </td></tr>
<tr> <td> EUR_one</td> <td> ...euro...  </td></tr>
<tr> <td> GBP_cents</td> <td>  ...pence. </td></tr>
<tr> <td> GBP_many</td> <td>  ...pounds... </td></tr>
<tr> <td> GBP_one</td> <td>  ...pound... </td></tr>
<tr> <td> hour</td> <td>  ...hour... </td></tr>
<tr> <td> hours</td> <td>  ...hours... </td></tr>
<tr> <td> you_have</td> <td> You have...  </td></tr>
<tr> <td> your_balance_was_increased_by</td> <td>  Your balance was increased by... </td></tr>
<tr> <td> minus</td> <td> minus...  </td></tr>
<tr> <td> minute</td> <td> ...minute  </td></tr>
<tr> <td> minutes</td> <td> ...minutes  </td></tr>
<tr> <td> mor_callingcard_choices</td> <td> Press one to enter new destination. Press two to redial same destination. Press three to check your balance.  </td></tr>
<tr> <td> seconds</td> <td>  ...seconds. </td></tr>
<tr> <td> unlimited_minutes</td> <td> ...unlimited minutes.  </td></tr>
<tr> <td> USD_cents</td> <td> ...cents.  </td></tr>
<tr> <td> USD_many</td> <td> ...dollars...  </td></tr>
<tr> <td>USD_one</td> <td>  ...dollar... </td></tr>
<tr> <td>voucher_not_found </td> <td> Voucher not found.  </td></tr>
<tr> <td>thank_you </td> <td> Thank you.  </td></tr>
<tr> <td> your_balance_was_increased_by </td> <td> Your balance was increased by...  </td></tr>
</table>


<br><br>
<br><br>
=== Translation/recording ===
+ all digit files for your language.
 
* [[Digits sound files]]
 
Digit files need to be uploaded to /var/lib/asterisk/sounds/digits/<your_language>/ directory.


* Translate and record a sound file to your language (example: French ('''fr''')).
Example files: http://www.kolmisoft.com/packets/mor9_sounds.tgz


<br><br>


=== Translation/recording ===


These are the necessary files with a transcription of what they say:
* Translate and record a sound file to your language (example: French ('''fr''')).


* enter_dest.wav    - "Please enter the number you wish to call, followed by the hash key. If making an international call, include international codes."
* euro.wav    - "euro".
* euros.wav  - "euros".
* hang-on-a-second.wav    - "Hang on a second."
* you_have.wav    - "You have".
* minus.wav    - "minus".
* minute.wav    - "minute".
* minutes.wav    - "minutes".
* mor_enter_dest.wav <-> enter_dest.wav (the same).
* mor_enter_pin_number.wav - "Please enter the pin number."
* mor_your_balance_was_increased_by.wav - "Your balance was increased by."
* mor_please_enter_voucher_number.wav - "Please enter voucher number."
* mor_pls_entr_num_uwish2_call.wav - "Please enter the number you wish to call."
* mor_pls_wait_connect_call.wav - "Please wait while I connect call."
* mor_thank_you.wav    - "Thank you".
* mor_voucher_not_found.wav - "Voucher not found."
* morcc_and.wav    - "and".
* morcc_auth_failed.wav - "Authorization failed."
* morcc_busy.wav  - "The number is busy".
* morcc_credit_low.wav - "your credit is low."
* morcc_enter_card_num.wav - "Please enter your card and pin number."
* morcc_enter_dest.wav - <-> enter_dest.gsm (the same).
* morcc_EUR_cents.wav - "cents".
* morcc_EUR_many.wav  - "euros".
* morcc_EUR_one.wav  - "euro".
* morcc_GBP_cents.wav - "pences".
* morcc_GBP_many.wav  - "pounds".
* morcc_GBP_one.wav  - "pound".
* morcc_invalid_digits.wav - "invalid digits".
* morcc_you_have.wav  - "You have".
* morcc_minute.wav    - "minute".
* morcc_minutes.wav    - "minutes".
* morcc_pence.wav      - "pences".
* morcc_pounds.wav    - "pounds".
* morcc_unreachable.wav - "The number is unreachable."
* morcc_USD_cents.wav  - "cents".
* morcc_USD_many.wav    - "dollars".
* morcc_USD_one.wav    - "dollar".
* prepaid-enter-dest.wav - "Please enter destination and press # key after that"
* seconds.wav - "seconds".
* unlimited_minutes.wav - "unlimited minutes".
* mor_callingcard_choices.wav - "Press 1 to enter new destination, press 2 to dial same destination, press 3 to check your balance."
* mor_card_balance_is_empty.wav - "Card balance is empty."
* mor_card_not_found.wav - "Card not found."
* mor_dialing_previous_destination.wav - "Dialing previous destination."
* mor_goodbye.wav - "Goodbye."
* mor_the_card_expired.wav - "The card expired."
* mor_the_card_is_not_sold_yet.wav - "The card is not sold yet."
* mor_you_have_entered_nothing.wav - "You have entered nothing."


<br><br>
<br><br>
=== Converting ===
=== Converting ===


In order to have Asteriskplay files, they should be converted to Bit rate: 8bit, Sample rate: 8000.
In order to have Asteriskplay files, they should be converted to Bit rate: 16-bit, Sample rate: 8000Hz, MONO.


This can be done using the [[Convert WAV file to Asterisk playable format | sox command]]:
This can be done using the [[Convert WAV file to Asterisk playable format | sox command]]:
Line 90: Line 119:
  /usr/bin/sox file1.wav -r 8000 -c 1 -s -w file2.wav resample -ql  
  /usr/bin/sox file1.wav -r 8000 -c 1 -s -w file2.wav resample -ql  


... and putting them into /var/lib/asterisk/sounds/mor/'''fr'''.
... 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.
Also, the script /usr/src/mor/sh_scripts/convert2astwav.sh can be used to convert many files at once. Just execute it in the folder with .wav files.


<br><br>
<br><br>
Line 103: Line 132:


<br><br>
<br><br>
=== Digits ===
=== Digits ===


Line 111: Line 141:
[[List of sound files for digits]]
[[List of sound files for digits]]


Different languages have different constructions to tell numbers. Currently supported languages for numbers:
da - Danish
de - German
en - English (US)
en_GB - English (British)
es - Spanish, Mexican
fr - French
he - Hebrew
it - Italian
nl - Dutch
no - Norwegian
pl - Polish
pt - Portuguese
pt_BR - Portuguese (Brazil)
se - Swedish
zh - Taiwanese / Chinese
ru - Russian
ka - Georgian
hu - Hungarian
Source: http://doxygen.asterisk.org/trunk/Def_syntaxlang.html
<br><br>
<br><br>
== Setting language ==
== Setting language ==


Line 131: Line 184:
You will need these sound files:
You will need these sound files:


     * morcc_GEL_cents (meaning 1/100 of main currency, "cents" for USD/EUR, "tetri" for Georgian GEL)
     * GEL_cents (meaning 1/100 of main currency, "cents" for USD/EUR, "tetri" for Georgian GEL)
     * morcc_GEL_many (meaning many of main currency, "dollars" for USD, "euros"  for EUR, "lari"? for Georgian GEL)
     * GEL_many (meaning many of main currency, "dollars" for USD, "euros"  for EUR, "lari"? for Georgian GEL)
     * morcc_GEL_one (meaning 1 of main currency, "dollar" for USD, "euro" 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.


They should be placed into /var/lib/asterisk/sounds/mor.
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 ==


Line 145: Line 201:
== Remove/Change sound files ==
== Remove/Change sound files ==


Files are stored in /var/lib/asterisk/sounds/mor.
Files are stored in /var/lib/asterisk/sounds/mor/ivr_voices/.


Change the necessary sound file if you want to.
Change the necessary sound file if you want to.


Make sure it is in Asterisk compatible format.
Make sure it is in Asterisk-compatible format.
 
<br><br>
= See also =
* [[Asterisk Languages]]

Latest revision as of 13:23, 29 December 2022

Description

All flags.png

Sound files used by MOR are located in /var/lib/asterisk/sounds/mor.

To see sound files go to SETTINGS -> Setup -> Voices (SETTINGS -> Billing -> DIDs -> IVR -> Voices for MOR X4 and older versions) and click the Sound files link:


Ivr soundfiles.png




Currently supported languages

  • English
  • Spanish
  • Russian
  • French
  • Brazilian-Portuguese
  • Italian
  • German
  • Hebrew
  • Chinese (partly)
  • Vietnamese (partly)



Add another language


Necessary files

File nameWhat it says
and ...and...
ani_end_ivr_1 Press one to dial new number. Press two to redial same number. Press three to check your balance.
ani_end_ivr_2 Press one to dial new number. Press two to redial same number. Press three to check your balance. Press four to use voucher.
auth_failed Authorization failed.
balance_empty Your balance is empty.
callerid_activated CallerID number is activated.
callerid_deactivated CallerID number is deactivated.
call_forward_activated Call forward activated.
call_forward_cancelled Call forward cancelled.
cc_busy The number is busy.
cc_callingcard_choices Press one to enter new number. Press two to redial same number. Press three to check your balance. Press four to use new card. Press five to increase your calling card balance by using another card.
cc_card_expired Card expired.
cc_card_is_empty Card is empty.
cc_card_is_not_sold_yet Card is not sold yet.
cc_card_not_found Card not found.
cc_dialing_previous_number Dialing previous number...
cc_end_ivr_1 Press one to dial new number. Press two to redial same number. Press three to check your balance. Press four to use new card. Press five to increase your Calling Card balance by using another card.
cc_end_ivr_2 Please enter the number you wish to call followed by the hash (#) key.
cc_end_ivr_4 Press one to dial new number. Press two to redial same number. Press three to use new card. Press four to increase your Calling Card balance by using another card.
cc_end_ivr_5 Press one to dial new number. Press two to redial same number. Press three to use new card. Press four to increase your Calling Card balance by using another card.
cc_end_ivr_6 Press one to dial new number. Press two to redial same number. Press three to check your balance. Press four to use new card. Press five to increase your Calling Card balance by using another card.
cc_end_ivr_7 Press one to save your PIN number. Press two to clear your PIN number. Press three to redial. Press four to make new call.
cc_end_ivr_8 Press one to dial new number. Press two to redial same number. Press two to clear saved PIN number. Press four to use new card.
cc_end_ivr_9 Press one to dial new number. Press two to redial same number. Press three to use new card. Press four to increase your Calling Card balance by using another card.
cc_end_ivr_10 Press one to dial new number. Press two to redial same number. Press three to check your balance. Press four to use new card.
cc_enter_card_number Please enter your card number:
cc_enter_card_number_pin Please enter your card and pin number:
cc_enter_pin Please enter your pin number:
cc_goodbye Goodbye.
cc_please_enter_callerid_number Please enter your callerID number
cc_you_have_entered_nothing You have entered nothing.
cc_please_enter_number Please enter the number you wish to call followed by the hash (#) key. If making an international call include the international code.
cc_unreachable The number is unreachable.
enter_pin Please enter your PIN number.
enter_voucher_number Please enter voucher number.
ent_target_attendant Please enter number of extension to use for your target attendant then press #
EUR_cents ...cents.
EUR_many ...euros...
EUR_one ...euro...
GBP_cents ...pence.
GBP_many ...pounds...
GBP_one ...pound...
hour ...hour...
hours ...hours...
you_have You have...
your_balance_was_increased_by Your balance was increased by...
minus minus...
minute ...minute
minutes ...minutes
mor_callingcard_choices Press one to enter new destination. Press two to redial same destination. Press three to check your balance.
seconds ...seconds.
unlimited_minutes ...unlimited minutes.
USD_cents ...cents.
USD_many ...dollars...
USD_one ...dollar...
voucher_not_found Voucher not found.
thank_you Thank you.
your_balance_was_increased_by Your balance was increased by...



+ all digit files for your language.

Digit files need to be uploaded to /var/lib/asterisk/sounds/digits/<your_language>/ directory.

Example files: http://www.kolmisoft.com/packets/mor9_sounds.tgz



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: 16-bit, Sample rate: 8000Hz, MONO.

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/sh_scripts/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

Different languages have different constructions to tell numbers. Currently supported languages for numbers:

da - Danish
de - German
en - English (US)
en_GB - English (British)
es - Spanish, Mexican
fr - French
he - Hebrew
it - Italian
nl - Dutch
no - Norwegian
pl - Polish
pt - Portuguese
pt_BR - Portuguese (Brazil)
se - Swedish
zh - Taiwanese / Chinese
ru - Russian
ka - Georgian
hu - Hungarian

Source: http://doxygen.asterisk.org/trunk/Def_syntaxlang.html

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/ivr_voices/.

Change the necessary sound file if you want to.

Make sure it is in Asterisk-compatible format.



See also