Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Lesson 12 of 30
❮Prev Next❯

Speech Recognition and Speech Synthesis

Module 1: AI Concepts ⏱ 8 min read Updated

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    All my bookmarks and notes

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    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 needed

    Exam 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.

    Azure portal: Speech to text and text to speech Transcribe audio, then pick a neural voice.
    </> Embed

    Embed this simulation

    Free for trainers, teachers and bloggers. Paste this into your page:

    Loading the portal…

    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
    1. Open Azure Speech, upload audio and transcribe. Diarization labels who spoke when.
    2. Speech to text returns the words with timestamps (and translation if you ask for it).
    3. Now the other way: type text, pick a neural voice (Indian English here) and play it.
    4. 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.

    😟 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
    🛠️ Solved with: Azure Speech

    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.

    ▶ Explainer video See it in motion 7 steps · 1 min 17 sec

    An animation of a support call: speech is transcribed to text, speaker diarization labels the agent and the customer, a Tamil sentence is translated to English, a neural voice reads a reply aloud, SSML slows down a one-time password and adds a pause, and the voice assistant pipeline is compared with audio-capable multimodal models.
    Read the video script
    1. 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.
    2. 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.
    3. Who said what: diarizationSpeaker diarization works out who said what, so the transcript shows the agent and the customer as separate speakers.
    4. Speech translationSpeech translation handles a second language. A Tamil-speaking customer asks where their order is, and the agent reads it in English.
    5. 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.
    6. 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.
    7. 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.

    FeatureInput → outputExample
    Speech to text (recognition)Audio → textLive captions in a class, transcripts of recorded calls
    Speaker diarizationAudio → text with speaker labels“Agent:” and “Customer:” turns in a call transcript
    Speech translationSpeech in one language → text or speech in anotherA Tamil-speaking customer and an English-speaking agent
    Text to speech (synthesis)Text → audioReading a delivery update aloud in an app
    SSMLMarked-up text → controlled audioSlow down for an OTP, pause before the total
    Custom speechYour audio and text → a tuned recognition modelRecognising drug names or a regional accent
    Custom or personal voice (limited access)Recordings → a unique synthetic voiceA 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. 1 Speech to text

      Recognise the spoken question.

    2. 2 Understand and answer

      A language model or app logic works out the reply.

    3. 3 Text to speech

      A neural voice speaks the answer.

    A simple voice assistant uses both directions

    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

    Travel

    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.
    Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

    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.

    Question 1

    Question 1 of 5

    A university wants to display live captions while lecturers speak in classrooms. Which capability of Azure Speech in Foundry Tools should the university use?

    Question 2

    Question 2 of 5

    A bank records customer support calls. Compliance officers need transcripts that show which statements were made by the support agent and which were made by the customer.

    Which feature should the bank use?

    Question 3

    Question 3 of 5 · Select 2

    A developer uses a neural voice to read one-time passwords aloud. Which TWO adjustments can the developer make by using Speech Synthesis Markup Language (SSML)?

    Question 4

    Question 4 of 5

    A pharmaceutical company finds that speech-to-text transcripts frequently misrecognize drug names used by its staff. A phrase list has not improved accuracy sufficiently. What should the company use?

    Question 5

    Question 5 of 5

    A travel app must listen to a traveler speaking Hindi and display the words in English text. Which capability should the app use?

    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. 1.Which feature answers "who spoke when"?Show

      Speaker diarization.

    2. 2.What does SSML stand for?Show

      Speech Synthesis Markup Language.

    3. 3.Which Foundry Tool handles speech to text and text to speech?Show

      Azure Speech in Foundry Tools.

    4. 4.Which feature turns Hindi speech into English text?Show

      Speech translation.

    5. 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

    Studying with a friend? Send them this lesson

    It's free and needs no sign-up. Their progress saves in their own browser.

    Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

    Install MSDEVBUILD Azure

    Free · no account · works offline

    Save the whole course for offline ›

    Hi, I’m your Nimbus

    Your study buddy. Pick what we do next.

    MSDEVBUILD · Multi-Stack Dev Build

    Sign in to MSDEVBUILD

    One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.