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 August 2022.

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

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


 * 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 function is used on.