Speech Recognition and Speech Synthesis
30-second answer
Speech recognition (speech to text) turns spoken audio into text, and speech synthesis (text to speech) turns text into natural-sounding audio using neural voices. Azure Speech in Foundry Tools adds speaker diarization (who spoke when), speech translation, SSML to control rate, pitch, pauses and speaking style, and custom speech to improve accuracy on your own vocabulary and accents. Audio-capable multimodal models can also take speech in and give speech back.
Simulate it » No Azure account neededExam objective: 1.3.3 Identify features and capabilities of speech recognition and speech synthesis. (Skills measured as of April 15, 2026)
Simulations
Feel it before you read it. No account needed, nothing leaves this page.
Open <strong>Azure Speech</strong>, upload audio and <strong>transcribe</strong>. Diarization labels who spoke when.
👆 Click the glowing item in the portal to continue
Read the steps as text
- Open Azure Speech, upload audio and transcribe. Diarization labels who spoke when.
- Speech to text returns the words with timestamps (and translation if you ask for it).
- Now the other way: type text, pick a neural voice (Indian English here) and play it.
- SSML controls emphasis, pauses and speed. View code shows the Speech SDK calls.
🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.
🖱️ Drag to rotate · scroll or pinch to zoom
Speech to text
Speech recognition turns spoken audio into text: live captions, call transcripts, voice commands. It can also translate speech into another language as you talk.
🤔 What happens if…
Read this tour as text
- Five workload lanes. Most AI apps fall into a few workloads: generative and agentic AI, text analysis, speech, computer vision and information extraction. Each lane here takes a different kind of input and turns it into something useful.
- Text analysis. A hotel review goes in. Azure Language returns the sentiment (positive, neutral, negative), key phrases, named entities (people, places, dates), PII and a short summary.
- Speech to text. Speech recognition turns spoken audio into text: live captions, call transcripts, voice commands. It can also translate speech into another language as you talk.
- Text to speech. Speech synthesis turns text into natural speech with a neural voice. SSML lets you control speed, pitch and pauses. Think audiobooks, voice assistants and accessibility readers.
- Computer vision. A photo goes in. Vision models return a caption, tags, objects with boxes, and any printed or handwritten text (OCR). A multimodal chat model can also answer questions about the picture.
- Image generation. Image-generation models work the other way round: a text prompt goes in and a brand-new image comes out. Guardrails block harmful requests, and generated images are marked with content credentials.
- Extract from documents. Azure Content Understanding reads an invoice and returns fields you defined (vendor, date, total) with a confidence score for each, so low-confidence values can go to a person.
- Extract from audio and video. The same service handles media: an audio call becomes a transcript with speakers and a summary; a video is split into segments with key frames, descriptions and chapters.
Transcribe a spoken question, answer it with a neural voice, then send the same audio straight to an audio-capable model.
🎓 Education-only simulation. Your lab is saved in this browser, so you can leave and continue later.
😟 THE PROBLEM
Your call centre has 5,000 hours of recordings nobody can search.
😊 THE SOLUTION
Speech to text makes them searchable; text to speech answers back.
- Calls are unsearchable audio✓ Transcribe them
- Videos have no captions✓ Live captions
- Robotic voices annoy callers✓ Natural neural voices
Start with a question
How does a railway enquiry line understand you and talk back?
You call and say “PNR status, please”. The system has to listen and turn your words into text. Then, once it has the answer, it has to speak it back in a voice you can follow, slowly enough that you catch the coach and seat number.
The listening part is speech recognition. The speaking part is speech synthesis. Most voice apps use both.
Explain it like I’m 10
Visual: speech in motion
Follow one support call through transcription, speaker labels, translation and a neural voice.
Read the video script
- A support call comes inA customer calls support. The audio streams in, but on its own an app can't search it, store it, or act on what was said.
- Speech to textSpeech recognition, also called speech to text, turns that audio into text. It can work live as people talk, or on a recording afterwards.
- Who said what: diarizationSpeaker diarization works out who said what, so the transcript shows the agent and the customer as separate speakers.
- Speech translationSpeech translation handles a second language. A Tamil-speaking customer asks where their order is, and the agent reads it in English.
- Text to speechSpeech synthesis, or text to speech, goes the other way. A neural voice, like the Indian English voice Neerja, reads text aloud and sounds close to a real person.
- Shape it with SSMLWith SSML markup you control how it speaks. Here it slows down for the one-time password, then pauses before the last sentence.
- Put both togetherA voice assistant chains the two: speech to text, a model works out the answer, then text to speech replies. Newer audio-capable models can also hear and speak directly.
The technical explanation
Azure Speech in Foundry Tools covers both directions, plus a few extras the exam likes to ask about.
| Feature | Input → output | Example |
|---|---|---|
| Speech to text (recognition) | Audio → text | Live captions in a class, transcripts of recorded calls |
| Speaker diarization | Audio → text with speaker labels | “Agent:” and “Customer:” turns in a call transcript |
| Speech translation | Speech in one language → text or speech in another | A Tamil-speaking customer and an English-speaking agent |
| Text to speech (synthesis) | Text → audio | Reading a delivery update aloud in an app |
| SSML | Marked-up text → controlled audio | Slow down for an OTP, pause before the total |
| Custom speech | Your audio and text → a tuned recognition model | Recognising drug names or a regional accent |
| Custom or personal voice (limited access) | Recordings → a unique synthetic voice | A brand voice for a bank’s helpline |
Speech to text comes in three flavours. Real-time transcribes as someone talks (captions, voice commands). Fast transcription returns a recorded file’s transcript quickly. Batch transcription processes large sets of recordings asynchronously.
For speech synthesis, neural voices sound close to a real person. There are hundreds across languages and locales, including Indian voices such as en-IN-NeerjaNeural and hi-IN-SwaraNeural, and multilingual voices like en-US-AvaMultilingualNeural. SSML lets you shape how they speak:
<speak version="1.0" xml:lang="en-IN">
<voice name="en-IN-NeerjaNeural">
Your one-time password is
<prosody rate="slow">4 7 2 9</prosody>.
<break time="500ms"/> It expires in five minutes.
</voice>
</speak>
-
1 Speech to text
Recognise the spoken question.
-
2 Understand and answer
A language model or app logic works out the reply.
-
3 Text to speech
A neural voice speaks the answer.
That pipeline isn’t the only way any more. Audio-capable multimodal models (such as the gpt-audio family, or gpt-realtime for low-latency conversations) accept speech directly and can reply in speech. The Voice Live API combines recognition, a model and synthesis for live voice agents.
Architect level Picking the right recognition mode
Single-shot recognition in the SDK handles one utterance of up to about 30 seconds, which suits voice commands. For anything longer, use continuous recognition. For a library of recorded calls, batch transcription is cheaper and supports diarization at scale. Phrase lists are the quick fix for a few unusual words; custom speech is the heavier, trained fix when phrase lists aren’t enough. Custom and personal voice are limited-access features because synthetic voices can be misused, and they require consent from the voice talent.
Real-world business scenario
Margie's Travel, a bus booking company in Hyderabad
- The problem
- Its phone line couldn't keep up at festival time. Callers spoke Telugu, Hindi and English, and agents had no record of what was agreed on calls.
- What they used
- Used Azure Speech in Foundry Tools: real-time speech to text for a voice booking bot, neural voices to read back seat numbers with SSML pauses, speech translation for agents, and batch transcription with diarization for recorded calls.
- Why that choice
- Speech services cover listening, speaking and translation in one place, and diarized transcripts give a clear record of who agreed to what.
- The result
- Simple bookings were handled by the voice bot, agents handled the tricky calls, and disputes were settled by checking the transcript.
When to use it and when not to
✓ Use it when…
- Captions, meeting notes and call transcripts (**speech to text**).
- Reading content aloud for accessibility or voice apps (**text to speech**).
- Calls or meetings where you need to know **who spoke when**.
- Specialist vocabulary or strong accents that hurt accuracy (**custom speech**).
✕ Think twice when…
- Don't use single-shot recognition for long recordings; use continuous or batch transcription.
- Don't create a synthetic voice of a real person without their consent. Custom and personal voice are limited access for that reason.
- Don't train custom speech before trying a phrase list for a handful of unusual words.
↔ Alternatives to consider
- **Audio-capable multimodal models** to take spoken prompts and reply in speech directly.
- **Azure Content Understanding** to turn call recordings into transcripts, summaries and fields in one analyzer.
Test yourself with exercises
5 original practice questions in the AI-901 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.
Interview preparation
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between speech recognition and speech synthesis?
Model answer
Recognition is listening: audio in, text out. Synthesis is speaking: text in, audio out. A voice assistant uses both. It recognises your question, works out an answer, then synthesises the reply as speech.
Interviewer follows up
What's another name for each?
You
Speech recognition is also called speech to text. Speech synthesis is also called text to speech.
Intermediate What would you use SSML for?
Model answer
To control how a neural voice says something. I can slow down the reading of an account number, add a short pause before a key point, change pitch, spell out characters, or pick a speaking style such as cheerful or empathetic on voices that support styles.
Experienced developer Transcripts keep getting your product names and medical terms wrong. What would you do?
Model answer
First try a phrase list for a quick fix. If accuracy still isn't good enough, use custom speech: upload sample audio with human transcripts or related text so the model learns the vocabulary and accents, then test it against the base model and deploy a custom endpoint.
Scenario A call centre wants transcripts that show what the agent said and what the customer said. Which feature is that?
Model answer
Speaker diarization. It labels each part of the transcript by speaker, so you get "Speaker 1" and "Speaker 2" turns instead of one block of text. Batch transcription of recorded calls supports it, and so does real-time transcription.
Quick revision
Key points
- Speech to text turns audio into text; text to speech turns text into audio.
- Neural voices sound natural; SSML controls rate, pitch, pauses, pronunciation and style.
- Speaker diarization labels who spoke when.
- Speech translation turns speech in one language into text or speech in another.
- Custom speech improves recognition accuracy on your own vocabulary, accents and audio conditions.
Important terminology
- Speech to text (speech recognition)
- Converts spoken audio into written text, in real time, as fast transcription or as batch transcription of recorded files.
- Text to speech (speech synthesis)
- Converts written text into spoken audio using a synthetic voice.
- Neural voice
- A synthetic voice built with deep neural networks that sounds close to natural human speech, such as en-IN-NeerjaNeural.
- SSML
- Speech Synthesis Markup Language, an XML format that controls how text is spoken, including rate, pitch, pauses, pronunciation and style.
- Speaker diarization
- Labels which speaker said each part of a transcript, answering "who spoke when".
- Speech translation
- Recognises speech in one language and returns text or speech in another language.
- Custom speech
- Trains the speech recognition model with your own audio and text to improve accuracy on specific words, accents or noisy settings.
Common mistakes
- Mixing up recognition (listening) and synthesis (speaking).
- Thinking SSML is a separate voice. It's markup that controls how an existing voice speaks.
- Using custom speech to change how a voice sounds. That's custom voice (limited access).
Exam tips
- "Convert recorded meetings into text" = speech to text.
- "Read notifications aloud in a natural voice" = text to speech with a neural voice.
- "Identify which person said each sentence" = speaker diarization.
- "Improve recognition of industry jargon" = custom speech.
Five quick revision questions
-
1.Which feature answers "who spoke when"?Show
Speaker diarization.
-
2.What does SSML stand for?Show
Speech Synthesis Markup Language.
-
3.Which Foundry Tool handles speech to text and text to speech?Show
Azure Speech in Foundry Tools.
-
4.Which feature turns Hindi speech into English text?Show
Speech translation.
-
5.What is speech synthesis also called?Show
Text to speech.
Official references
Finished this lesson? Tick it off. Your progress is saved in this browser.
Next up: Computer Vision and Image Generation
Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges.