Skip to content

Commit 82639e5

Browse files
committed
example
1 parent 92a080d commit 82639e5

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

articles/cognitive-services/Speech-Service/speech-synthesis-markup-structure.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,17 @@ The Speech service automatically handles punctuation as appropriate, such as pau
7777

7878
## Special characters
7979

80-
You must use the entity format for the characters `&`, `<`, and `>`. Specifically you must use `&amp;` in place of `&`, `&lt;` in place of `<`, and `&gt;` in place of `>`. Otherwise the SSML will not be parsed correctly.
80+
To use the characters `&`, `<`, and `>` within the SSML text, you must use the entity format. Specifically you must use `&amp;` in place of `&`, `&lt;` in place of `<`, and `&gt;` in place of `>`. Otherwise the SSML will not be parsed correctly.
81+
82+
For example, specify `green &amp; yellow` instead of `green & yellow`. The following SSML will be parsed as expected:
83+
84+
```xml
85+
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">
86+
<voice name="en-US-JennyNeural">
87+
My favorite colors are green &amp; yellow.
88+
</voice>
89+
</speak>
90+
```
8191

8292
Special characters such as quotation marks, apostrophes, and brackets, must be escaped. For more information, see [Extensible Markup Language (XML) 1.0: Appendix D](https://www.w3.org/TR/xml/#sec-entexpand).
8393

0 commit comments

Comments
 (0)