How Can I Localize Prompt Sets?
On this topic
3CX Phone System ships with a set of Prompts Sets for the the major languages. In this article, we explain how to localize the Prompts Set, so as to make them available in a language which is not included with 3CX Phone System.
All prompt sets are located within this folder:
Windows 2008 / 7 / 2012 / 8 / 10 / 2016:
Debian 8 / 9:
Each prompt set has a separate sub-directory. For example, the default English prompt set is located within the “…Sets8210986B-9412-497f-AD77-3A554F4A9BDB” directory. The following table shows the list of all the Prompts sets available by default in 3CX Phone System with their ID / Folder Name.
ID / Folder Name
Bulgarian Prompts Set
Chinese Prompts Set
Czech Prompts Set
Danish Prompts Set
Dutch Prompts Set
French Prompts Set
German Prompts Set
Greek Prompts Set
Italian Prompts Set
Japanese Prompts Set
Polish Prompts Set
Portuguese Prompts Set
Russian Prompts Set
Spanish Prompts Set
Standard English Prompts Set
Swedish Prompts Set
UK English Prompts Set
Ukraine Prompts Set
Each prompts set includes a file called SetInfo.xml, which describes the prompts set, and includes the name of the prompt set, the prompts set’s version and the definition of the prompts.
Prompt Set Number Style
By default, 3CX Phone System pronounces the order of numbers as they are pronounced in English. E.g. 21 is pronounced as “twenty one”. Some languages pronounce this differently – the numbers are inverted to “one and twenty” (as is the case in German).
The number style is determined by the <langopts num_style=”x”> parameter. When num_style is set to “0”, the number style used is English-based; when num_style is set to “1”, the number style used is German-based. E.g. <langopts num_style=”1″ />.
Prompt Set Translation
In order to create a new Prompt Set, you would need to go through the following steps:
- Choose the Base Prompt Set
- Make a Copy of the Prompt Set
- Create New Audio Files
- Replace Audio Files
- Translate Descriptions of Prompts
- Package the new Prompt Set
Let’s go through each of these in more detail.
Step 1. Choose the Base Prompt Set
First, you have to choose a prompt set which you will use as the base. You will use this to create your new prompt set. For example, if you want to create a new variant of the English prompt set (e.g. for use in Australia), you are better off using the English prompt set as your base. You can also download a prompt set in a different language from the “3CX Management Console” → “Settings” → “System Prompts”.
In choosing your Base Prompt Set, keep in mind that you need to cater for the grammar style. If you want to create a new prompt set where the grammar is similar to German, then you should use the German prompt set as your base.
Step 2. Make a Copy of the Prompt Set
After you have chosen the base prompt set to use, you need to create a copy of this prompt set. You cannot change the default English prompt set or prompt sets downloaded from the 3CX Web Site, but you can create and change a copy. All other languages can be edited directly. If you want to create a new language it is recommended to use a copy of the “Standard English Prompts Set”.
In the 3CX Management Console, go to “Settings” → “System Prompts” and create a copy of the “Standard English Prompts Set”:
- Click “Manage Prompt Sets”
- In the “Active Prompt Set” field, ensure “Standard English Prompts Set” is selected.
- Click “Copy Prompt Set”.
- Choose a Name for the new Prompts you are going to create; for example “Hungarian Prompts Set” and the ordering of numbers. The default is UK/US number ordering, alternate is German number ordering (Use alternate Pronunciation).
The 3CX Management Console will create a new directory within the “…Sets” folder and copy all files from the base prompt set to this folder. The name of the new directory corresponds to the ID of the new prompt set. The ID of the prompt set is a random string generated when the new prompt set is created.
Step 3. Create New Audio Files
You can create new audio files (containing translated phrases from the base prompt set) by using a speech synthesizer or by recording audio with a microphone. You can then edit audio using your favorite audio editor.
When you create audio files:
- The supported audio file format is: WAV, PCM, 8 KHz, 16 bit, Mono.
- Try and keep the size of the .wav files as small as possible.
- Remove silence (more than 10-20 ms) at the beginning and at the end of prompts where possible.
- Avoid abrupt clipping of audio at the end of prompts to avoid audio artefacts (clicks) at the end of prompts.
- Try to create prompts with similar audio characteristics, such as volume, pitch, voice timbre – so that combined phrases sound smooth.
Step 4. Replace Audio Files
You can replace audio files using the “Browse” button within the “Settings” → “System Prompts” page in the 3CX Management Console. You should replace all the audio files required to fully translate the prompt set.
Step 5. Translate Descriptions of Prompts
When changing the content of audio files, you should also change the prompt descriptions.
The SetInfo.xml file contains descriptions for all prompts within a prompt set. Descriptions of prompts are displayed in the “Prompts” column of the “System Prompts” window. The descriptions of prompts cannot be changed from the 3CX Management Console, but can be changed manually in the “SetInfo.xml” file using of a text-editor or xml-editor.
Prompt descriptions can contain international (non-Latin) symbols. There are two ways to insert international characters to a prompt description:
- You can use the “&#xHH;” html sequences, where “HH” is hexadecimal code of a Unicode character.
- You should edit the SetInfo.xml file as a UTF-8 file, so you can use any Unicode characters within the prompt description.
Step 6. Package the new Prompt Set
After you have translated a prompt set (changed content of audio files and translated description of prompts), you may want to send this prompt set to 3CX Phone System.
To make a prompt set package, just pack the directory of the prompt set (together with files and subfolders) into a RAR or ZIP file. The prompt set directory must contain all the audio files and the “SetInfo.xml” file.