Skip to content

Commit 2fd4052

Browse files
authored
Improve legibility in XML code samples with proper formatting
Improve legibility in XML code samples with proper formatting.
1 parent fb59694 commit 2fd4052

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

articles/ai-services/speech-service/speech-synthesis-markup-pronunciation.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ The following XML example (not SSML) would be contained in a custom lexicon `.xm
147147
<alias>By the way</alias>
148148
</lexeme>
149149
<lexeme>
150-
<grapheme> Benigni </grapheme>
151-
<phoneme> bɛˈniːnji</phoneme>
150+
<grapheme>Benigni</grapheme>
151+
<phoneme>bɛˈniːnji</phoneme>
152152
</lexeme>
153153
<lexeme>
154154
<grapheme>😀</grapheme>
@@ -303,7 +303,26 @@ The XML syntax doesn't support the MathML entities, so you must use the correspo
303303
The text to speech output for this example is "a squared plus b squared equals c squared".
304304

305305
```xml
306-
<speak version='1.0' xmlns='http://www.w3.org/2001/10/synthesis' xmlns:mstts='http://www.w3.org/2001/mstts' xml:lang='en-US'><voice name='en-US-JennyNeural'><math xmlns='http://www.w3.org/1998/Math/MathML'><msup><mi>a</mi><mn>2</mn></msup><mo>+</mo><msup><mi>b</mi><mn>2</mn></msup><mo>=</mo><msup><mi>c</mi><mn>2</mn></msup></math></voice></speak>
306+
<speak version='1.0' xmlns='http://www.w3.org/2001/10/synthesis' xmlns:mstts='http://www.w3.org/2001/mstts' xml:lang='en-US'>
307+
<voice name='en-US-JennyNeural'>
308+
<math xmlns='http://www.w3.org/1998/Math/MathML'>
309+
<msup>
310+
<mi>a</mi>
311+
<mn>2</mn>
312+
</msup>
313+
<mo>+</mo>
314+
<msup>
315+
<mi>b</mi>
316+
<mn>2</mn>
317+
</msup>
318+
<mo>=</mo>
319+
<msup>
320+
<mi>c</mi>
321+
<mn>2</mn>
322+
</msup>
323+
</math>
324+
</voice>
325+
</speak>
307326
```
308327

309328
## Next steps

0 commit comments

Comments
 (0)