You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/Speech-Service/speech-synthesis-markup-structure.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,9 +182,9 @@ A good place to start is by trying out the slew of educational apps that are hel
182
182
183
183
## Control audio duration
184
184
185
-
Use the `mstts:audioduration` element to set the length of output audio. Before using this element, we recommend that you first estimate the length of the original audio based on your script text. To do this, you can refer to the [voice list](rest-text-to-speech.md#get-a-list-of-voices) and check the "WordsPerMinute" attribute of the voice being used. The expected audio length should be within 0.5 to 2 times the original audio. If the expected length exceeds the limit, the `mstts:audioduration` element will not control the length of the output audio as you expect. In such a case, to enable this element effectively, it would be best to adjust your script text to meet the limit before using this element. For example, if the length of your original audio is around 10s and your expected length is 30s, you should first adjust your script to ensure that your original audio is no less than 15s.
185
+
Use the `mstts:audioduration` element to set the length of the output audio. The audio duration setting is applied to all input textwithin its enclosing `voice` element. To reset or change the duration setting again, you must use a new `voice`element with either the same voice or a different voice.
186
186
187
-
The audio duration setting is applied to all input text within its enclosing `voice` element. To reset or change the duration setting again, you must use a new `voice` element with either the same voice or a different voice.
187
+
The expected audio length should be within 0.5 to 2 times the original audio. If the expected length exceeds the limit, the `mstts:audioduration` element will not control the length of the output audio as you expect. So before using this element, we recommend that you first estimate the length of the original audio based on your script text. To do this, you can refer to the [voice list](rest-text-to-speech.md#get-a-list-of-voices) and check the "WordsPerMinute" attribute of the voice being used. If the estimated length of the original audio exceeds the limit, it's best to adjust your script text to meet the limit before using this element. For example, if the estimated length of your original audio is around 10s and your expected length is 30s, you should first adjust your script to ensure that your original audio is no less than 15s and no more than 60s.
188
188
189
189
Usage of the `mstts:audioduration` element's attributes are described in the following table.
190
190
@@ -196,12 +196,12 @@ Usage of the `mstts:audioduration` element's attributes are described in the fol
196
196
197
197
The supported values for attributes of the `mstts:audioduration` element were [described previously](#control-audio-duration).
198
198
199
-
In this example, `mstts:audioduration` is used to set the audio duration to 30s.
199
+
In this example, the original audio is around 15s. The `mstts:audioduration`element is used to set the audio duration to 20s.
0 commit comments