Help:Extension:Phonos

The Phonos extension makes it easy to embed text-to-speech audio snippets in wiki pages.

Usage

 * This section describes functionality that is still being developed as of September 2022.

Phonos adds a parser tag that will render a speaker icon and the IPA text. Clicking on these will play the appropriate audio.

The parser tag has the following structure; all parameters are optional but at least one other than lang must be provided:

[optional label]


 * ipa — the IPA notation to render. Some engines may perform better with or without brackets around the string.
 * text — the plain text representation of the string, used by some engines to improve the rendering of the audio. This text will be displayed if there is no ipa given.
 * label — the label that will be displayed, overriding any ipa or text. This can contain wikitext.
 * wikidata — ID of the Wikidata item or lexeme from which to fetch (if ipa is not used) and/or  (if file is not used).
 * file — The filename of an audio file to use instead of any engine-generated or Wikidata-retrieved audio.
 * lang — the language code, used to help the engine have better pronunciation and/or to choose the correct information from Wikidata (via a qualifier on either of the above properties). This defaults to the content language of the page the parser tag is used on.