The AI-102 exam has been retired
It was retired on June 30, 2026. It was replaced by AI-103 (Microsoft Azure AI Apps and Agents Developer Associate). Go to the AI-103 study guide →
Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.
6.2.3. SSML (Speech Synthesis Markup Language)
SSML gives you fine-grained control over speech synthesis. The following elements are frequently tested.
🔧 SSML Elements:
| Element | Purpose | Key Attributes |
|---|---|---|
<prosody> | Rate, pitch, volume | rate, pitch, volume |
<break> | Pauses | time="500ms", strength="strong" |
<emphasis> | Stress words | level="strong|moderate|reduced" |
<say-as> | Pronunciation hints | interpret-as="date|time|telephone|cardinal" |
<phoneme> | Exact pronunciation | alphabet="ipa", ph="..." |
<mstts:express-as> | Speaking style | style="cheerful|sad|angry" |
SSML Template:
<speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:mstts="https://www.w3.org/2001/mstts" xml:lang="en-US">
<voice name="en-US-JennyNeural">
<mstts:express-as style="cheerful">
Welcome!
</mstts:express-as>
<break time="500ms"/>
<prosody rate="slow" pitch="-5%">
Please listen carefully.
</prosody>
Your code is <say-as interpret-as="characters">ABC123</say-as>.
</voice>
</speak>
Using SSML:
result = synthesizer.speak_ssml_async(ssml_string).get()
Written byAlvin Varughese
Founder•18 professional certifications