example Element PLS (Microsoft.Speech)

Contains an example sentence that illustrates an occurrence of a lexeme.


Syntax

<example>string</example>

Attributes

None.

Remarks

One or more example elements may be provided for a single lexeme element. The example element must contain one or more letters, numbers, or characters, and cannot contain other elements.

Example

The example below shows the use of the example element to provide a sample usage for alternate pronunciations of the word “lead”. It is acceptable to include comments with example elements, as well as elsewhere within the lexicon element, using the syntax shown in the example.

<?xml version="1.0" encoding="UTF-8"?>
<lexicon version="1.0" 
      xmlns="http://www.w3.org/2005/01/pronunciation-lexicon"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      xsi:schemaLocation="http://www.w3.org/2005/01/pronunciation-lexicon 
        http://www.w3.org/TR/2007/CR-pronunciation-lexicon-20071212/pls.xsd"
      alphabet="ipa" xml:lang="en-US">

  <lexeme>
    <grapheme> lead </grapheme>
    <phoneme> led </phoneme>
    <example> My feet were as heavy as lead. <!-- possible comment --> </example>
  </lexeme>

  <lexeme>
    <grapheme> lead </grapheme>
    <phoneme> liːd </phoneme>
    <example> The guide once again took the lead. </example>
  </lexeme>

</lexicon>

Show: