Help:Extension:Wikispeech/Lexicon editor

Wikispeech has a pronunciation lexicon that is used when reading text. Every time a sentence is read, the words are looked up in the lexicon. If a word has a pronunciation defined it will be used and if not the pronunciation will be guessed based on the spelling. This means that it's not necessary to have a predefined pronunciation, but it helps, especially in cases where the pronunciation is irregular such as loan words and proper nouns.

This lexicon can be edited through Special:EditLexicon. With this special page you can look up words in the lexicon and change their pronunciations. You can also add new pronunciations for words that don't have any. The pronunciation is entered using IPA.

Edit a word
Select the language, enter the word and click next.

At the next page you will see a field, id, and a at the bottom a list of existing entries matching the word. Select the id of the entry that you want to edit and click next. If the entry you're looking for doesn't exist, instead see "Add a word".

The next page has fields to modify the selected entry. Transcription contains the phonetic transcription in IPA, see "Transcriptions". After entering a transcription you can click preview to have it read out. Note that it may take a few seconds to generate the preview. If there is an error during the preview generation you will see a popup dialogue, see "Transcription preview errors". You can also select whether the entry should be preferred or not. A preferred entry will be prioritised when the lexicon is used. Click save to save the changes to the lexicon.

Add a word
Select the language, enter the word and click next.

At the next page you will see a field, id, and a at the bottom a list of existing entries matching the word. Select the "New" for the id and click next.

The next page has fields for the new entry. Transcription contains the phonetic transcription in IPA, see "Transcriptions". After entering a transcription you can click preview to have it read out. Note that it may take a few seconds to generate preview. If there is an error during the preview generation you will see a popup dialogue, see "Transcription preview errors". You can also select whether the entry should be preferred or not. A preferred entry will be prioritised when the lexicon is used. Click save to save the changes to the lexicon.

Transcriptions
Transcriptions tells Wikispeech how a word should be pronounced. IPA is used when entering the transcription in the lexicon editor.

Entering a transcription can be done using the keyboard if the Universal Language Selector is installed. In that case you will briefly see a keyboard icon next to the text field when you type. Clicking it and selecting "International Phonetic Alphabet - X-SAMPA" or pressing Ctrl will switch the input.

You can also copy a transcription from e.g. an article or a Wiktionar entry.y