This issue is fixed by moving the <break> before the </voice>.
<p>This fails.</p> </voice> <break time="1s" />
<p>This works.</p> <break time="1s" /> </voice>
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am running into an error when changing voice using the Speech Studio.
If I change voices in the SSML file, the synthesizer outputs an error. Below is a script that generates the error.
<speak xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="http://www.w3.org/2001/mstts" xmlns:emo="http://www.w3.org/2009/10/emotionml" version="1.0" xml:lang="en-US">
<voice name="en-US-GuyNeural">
<p>Those who have experienced severe SNS activation may experience<prosody volume="+10%" rate="-10%">critical incident amnesia</prosody>. Any reports that a person is required to produce should be labelled preliminary, supplementary, and final. Consider this story.</p></voice>
<break time="500ms" />
<voice name="en-US-JacobNeural">
<p>A couple were having marital trouble. After an argument, the man left to go for a walk, and the woman went to bed. The attackers silhouette looked like her husband — muscular and about the same height — both had been in the military.</p></voice>
<break time="1s" />
<voice name="en-US-GuyNeural">
<p>The<prosody volume="+10%" rate="-10%">leading</prosody>question that was, "Did your husband do this to you?", was sufficient to plant the false memory that it was her husband. Without DNA testing, he would still be in prison.</p></voice>
</speak>
This issue is fixed by moving the <break> before the </voice>.
<p>This fails.</p> </voice> <break time="1s" />
<p>This works.</p> <break time="1s" /> </voice>