Last reviewed: 3/23/2024 10:48:13 AM
<audioduration>
The audioduration element sets the duration of the output audio. Use this element to help synchronize the timing of audio output completion. The audio duration can be decreased or increased between 0.5 to 2 times the rate of the original audio. The original audio is the audio without any other rate settings. The speaking rate is slowed down or sped up accordingly based on the set value.
The audio duration setting applies to all input text within its enclosing voice element. To reset or change the audio duration setting again, use a new voice element with either the same voice or a different voice.
<?xml version="1.0"?>
<speak version="1.0"
xmlns:mstts="http://www.w3.org/2001/mstts"
xml:lang="en-US">
<voice name="en-US-JennyNeural">
<mstts:audioduration value="20s" />
If we're home schooling, the best we can do is roll with what each day brings and try to have fun along the way.
A good place to start is by trying out the slew of educational apps that are helping children stay happy and smash their schooling at the same time.
</voice>
</speak>
Attributes
value
The requested duration of the output audio in either seconds, such as 2s, or milliseconds, such as 2000ms.
Children
none
Parents
Source: Microsoft Azure Speech Synthesis Markup Language (SSML)