Hello @Data Juggler , Thanks for using Microsoft Q&A Platform.
I'm glad that you were able to resolve your issue, posting solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.
Issue: To pause for certain number of seconds with Microsoft.CognitiveServices Text to Speech?
Solution:
Yes, you can use the break
element in SSML to pause for a certain amount of time. To specify the duration of the pause, you can use the time
or strength
attribute of the break
element: https://learn.microsoft.com/en-us/azure/ai-services/speech-service/speech-synthesis-markup-structure#add-a-break
Here is the sample code:
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US">
<voice name="en-US-JennyNeural">
Welcome <break /> to text to speech.
Welcome <break strength="medium" /> to text to speech.
Welcome <break time="750ms" /> to text to speech.
</voice>
</speak>
If you have any other questions or are still running into more issues, please let me know.
Thank you again for your time and patience throughout this issue.
Regards,
Vasavi
Please remember to "Accept Answer
" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.