Skip to content

Commit 3a63d28

Browse files
Merge pull request #230380 from sally-baolian/patch-106
Update speech-synthesis-markup-structure.md
2 parents ea5aab5 + d7aeffe commit 3a63d28

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,21 @@ This example uses the `en-US-JennyNeural` voice. For more examples, see [voice e
113113
</speak>
114114
```
115115

116-
## Add or prevent a break
116+
## Add a break
117117

118-
Use the `break` element to override the default behavior of breaks or pauses between words. You can use it to add or prevent pauses that are otherwise automatically inserted by the Speech service.
118+
Use the `break` element to override the default behavior of breaks or pauses between words. You can use it to add pauses that are otherwise automatically inserted by the Speech service.
119119

120120
Usage of the `break` element's attributes are described in the following table.
121121

122122
| Attribute | Description | Required or optional |
123123
| ---------- | ---------- | ---------- |
124-
| `strength` | The relative duration of a pause by using one of the following values:<br/><ul><li>none</li><li>x-weak</li><li>weak</li><li>medium (default)</li><li>strong</li><li>x-strong</li></ul><br/><br/>Set `strength` to `none` to prevent automatic insertion of a prosodic break. | Optional |
124+
| `strength` | The relative duration of a pause by using one of the following values:<br/><ul><li>x-weak</li><li>weak</li><li>medium (default)</li><li>strong</li><li>x-strong</li></ul>| Optional |
125125
| `time` | The absolute duration of a pause in seconds (such as `2s`) or milliseconds (such as `500ms`). Valid values range from 0 to 5000 milliseconds. If you set a value greater than the supported maximum, the service will use `5000ms`. If the `time` attribute is set, the `strength` attribute is ignored.| Optional |
126126

127127
Here are more details about the `strength` attribute.
128128

129129
| Strength | Relative duration |
130130
| ---------- | ---------- |
131-
| None, or if no value provided | 0 ms |
132131
| X-weak | 250 ms |
133132
| Weak | 500 ms |
134133
| Medium | 750 ms |
@@ -137,14 +136,14 @@ Here are more details about the `strength` attribute.
137136

138137
### Break examples
139138

140-
The supported values for attributes of the `break` element were [described previously](#add-or-prevent-a-break).
139+
The supported values for attributes of the `break` element were [described previously](#add-a-break). The following three ways all add 750 ms breaks.
141140

142141
```xml
143142
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">
144143
<voice name="en-US-JennyNeural">
145144
Welcome <break /> to text-to-speech.
146145
Welcome <break strength="medium" /> to text-to-speech.
147-
Welcome <break time="250ms" /> to text-to-speech.
146+
Welcome <break time="750ms" /> to text-to-speech.
148147
</voice>
149148
</speak>
150149
```

0 commit comments

Comments
 (0)