Courseiva
AI-102Chapter 6 of 16Objective 2.3

Translation and Speech Services

Translation and Speech Services allow your applications to understand spoken words, convert them into text, translate that text into another language, and then speak the translated text back—all in real time. For the AI-102 exam, this is a critical domain because Azure offers powerful, pre-built APIs that handle everything from transcribing a phone call to powering a chatbot that speaks multiple languages, and you need to know how to configure, secure, and optimise these services.

12 min read
Intermediate
Updated Jul 23, 2026
Reviewed by Johnson Ajibi· Senior Network & Security Engineer · MSc IT Security

A simple way to picture Translation and Speech Services

The Multilingual Tour Guide at a Global Conference Analogy

When attendees arrive at a global tech conference speaking different languages, communication breaks down instantly. This leads to confusion, missed connections, and wasted opportunities because no one shares a common tongue. A multilingual tour guide solves this by first listening to each person's speech—capturing the exact words and tone—then immediately translating that message into the listener's language, all while preserving the original emotion and intent.

In this scenario, you (the organiser) have hired a guide who wears a headset connected to a real-time translation service. When a Spanish-speaking attendee asks a question, the guide hears the speech, converts it to text, translates that text into English, then speaks the English version out loud—all in under a second. If the attendee has a strong accent or uses slang, the guide asks for clarification (using speech recognition language models) before proceeding. The guide also maintains a log of every translation request, showing which languages were most common and where misinterpretations occurred. This maps precisely to Azure's Speech Services and Translator: the speech-to-text engine captures audio, the Translator API converts the text between languages, and text-to-speech delivers the result. The guide's log mirrors Azure's diagnostic logs that track API usage and error rates. Just as the guide cannot translate without first hearing clearly, Azure's services rely on high-quality audio input and customisable language models to deliver accurate, real-time translation.

How It Actually Works

Translation and Speech Services are two tightly integrated parts of Azure's AI platform that let your apps hear, understand, translate, and speak human languages. Think of them as a universal interpreter you can embed into any software without hiring human linguists.

Let's start with Speech Services. This is a collection of APIs (Application Programming Interfaces—rules that let different software talk to each other) that handle anything involving audio of a human voice. The three key components are:

Speech-to-Text (STT): Takes an audio stream (from a microphone, a recorded file, or a phone call) and converts it into written text. It uses deep neural networks trained on millions of hours of speech to recognise words even with background noise or heavy accents. You can customise it with your own business-specific terms—like 'Contoso' or 'supersonic widget'—using a custom speech model.

Text-to-Speech (TTS): Takes written text and generates natural-sounding audio. Microsoft offers dozens of pre-built neural voices in over 140 languages and variants. You can also create a custom neural voice by providing recordings of a specific person, allowing a brand to have a unique, consistent voice across all its applications.

Speaker Recognition: Identifies who is speaking based on their unique vocal characteristics. This is used for personalisation (e.g., 'Welcome back, John') or security (e.g., verifying a user's identity over the phone).

Now, Translation Services. Azure Translator is a cloud-based neural machine translation service that can translate text between more than 100 languages in milliseconds. It uses deep learning models trained on billions of parallel sentences (sentences in language A and their exact translation into language B). There are two main ways to use it:

Text Translation: You send a string of text and specify the target language. The API returns the translated string. You can also detect the source language automatically if you do not know what language the input is.

Document Translation: You send an entire document (Word, PDF, PowerPoint, etc.) and receive a translated document, preserving the original formatting. This is asynchronous—you submit a job, and Azure processes it in the background.

The magic happens when you combine Speech Services with Translator. This is called real-time speech translation. Here is the flow:

Step 1: The user speaks into a microphone. The audio is streamed to Azure Speech Services.

Step 2: Speech Services performs Speech-to-Text, producing a text transcript in the original language (e.g., Spanish: '¿Dónde está la biblioteca?').

Step 3: That text is passed to Translator, which translates it into the target language (e.g., English: 'Where is the library?').

Step 4: The English text is sent to Text-to-Speech, which generates spoken audio.

Step 5: The spoken audio is played back to the user or to a different listener.

All of this happens in under a second, which is why it is called 'streaming' or 'real-time' translation.

Why do these services exist? Before cloud AI, building speech recognition or translation required massive data sets, specialised machine learning teams, and expensive hardware. Small companies simply could not afford it. Azure provides these as managed services—meaning Microsoft handles the infrastructure, security, and updates—so any developer can add multilingual voice capabilities to their app with a few lines of code.

For the AI-102 exam, you need to understand the resource types you create in Azure. You create a Speech resource (which gives you an endpoint and key for Speech-to-Text, Text-to-Speech, and Speaker Recognition) and a Translator resource (which gives you an endpoint and key for text and document translation). These are separate but can be linked in your code. You also need to know about the customisation options: custom speech models for specialised vocabulary, custom neural voices for branded audio, and custom translation models for industry-specific terminology (e.g., legal or medical).

The services replace traditional approaches like hiring human translators for real-time conversations (expensive and slow) or building your own speech recogniser from scratch (prohibitively complex). They enable scenarios like live captioning, multilingual customer support chatbots, language learning apps, and meeting transcription that automatically translates every participant's speech into their preferred language.

This diagram shows the five-stage pipeline for real-time speech translation, from capturing audio to producing translated speech.

Walk-Through

1

Create Azure Resources

In the Azure portal, create a Speech resource and a Translator resource. Each will provide a unique endpoint URL and subscription key. This is the foundation—without these resources, your application cannot call the APIs.

2

Configure Speech-to-Text Recognition

Set up the Speech SDK in your code to capture audio from a microphone or file. Configure the language to recognise (e.g., en-US for American English). For better accuracy with domain terms, create a Custom Speech model and link it to the recognition request.

3

Perform Text Translation

Pass the transcribed text to the Translator API with the target language specified. The API returns the translated text. You can also send multiple target languages in one call. If the source language is unknown, enable auto-detection in the request.

4

Convert Translated Text to Speech

Send the translated text to the Text-to-Speech API (part of the Speech resource) to generate an audio stream. Choose a neural voice that matches the target language and desired tone (e.g., 'en-US-JennyNeural' for a natural female voice). The audio can be played through speakers or saved to a file.

5

Implement Streaming Pipeline

For real-time interaction, combine the three steps into a continuous stream. Use the Speech SDK's translation recogniser, which handles all three stages (STT, translation, TTS) in a single object. This minimises latency and allows partial results to flow to the user as they speak.

6

Test and Monitor

Run test scenarios with various accents, noise levels, and languages. Check Azure Monitor logs for errors (e.g., authentication failures, timeouts) and track usage costs. Adjust custom models based on accuracy results—if a particular acronym is consistently misrecognised, add it to the custom speech model.

What This Looks Like on the Job

Imagine you work at a global customer support centre for a company called 'GloboTravel', which sells flight tickets to customers all over the world. Your support agents speak only English, but your customers speak Spanish, Mandarin, and Arabic. Instead of hiring human translators for every shift, you decide to implement Azure Speech Services and Translator. Here is exactly what an IT professional would do, step by step.

First, you would create two Azure resources in the Azure portal: a Speech resource and a Translator resource. You would place them in the same region (e.g., West Europe) to minimise latency. You note down their endpoints and subscription keys—these are like passwords that authorise your application to use the services.

Second, you integrate these services into your existing customer support application. You write code (likely in C# or Python) that uses the Azure SDK (Software Development Kit—a package of pre-built code libraries). When a customer calls in, your app uses Speech-to-Text to transcribe the customer's speech in real time. The transcription is sent to Translator, which detects the language automatically (e.g., Spanish) and translates it into English for the agent. The agent's English reply is then translated into Spanish using Translator, and the translated text is spoken back to the customer using Text-to-Speech with a neural voice that sounds natural and friendly.

But real-world deployments are never that simple. You would need to handle several practical challenges:

Handling accents and background noise: You upload a set of recorded sample calls to create a custom speech model that improves recognition for the specific accents and noise patterns your customers have (e.g., a call centre with constant keyboard clicking).

Language auto-detection: You configure Translator to automatically detect the source language so the agent does not have to ask 'Which language?' every time.

Security: You store the subscription keys in Azure Key Vault (a secure storage service) instead of hard-coding them in your app, because if a hacker gets the key, they could use your services for free.

Monitoring: You set up diagnostic logging to track how many translations are performed per hour, which languages are most common, and whether any requests fail (e.g., because the audio quality was too poor).

You would also need to think about compliance. For example, if you handle customer data from Europe, you must ensure the services are deployed in an Azure region within the EU to meet GDPR (General Data Protection Regulation) requirements. You might enable 'custom speech endpoint' encryption to protect sensitive audio data.

Finally, you would test the system thoroughly. You would simulate calls with different accents, background noises, and languages to ensure the translation accuracy is acceptable (typically above 90% for the Azure pre-built models). You would also set up a fallback—if the confidence score from Speech-to-Text is too low (Azure returns a confidence value between 0 and 1), the system routes the call to a human supervisor instead of relying on a potentially incorrect translation.

As an IT professional, you are not writing the AI models from scratch; you are assembling, configuring, and securing these pre-built services to solve a specific business problem. Your day-to-day work involves tuning the custom models, monitoring usage costs, and updating the integration code when Azure releases new API versions.

How AI-102 Actually Tests This

The AI-102 exam tests Translation and Speech Services in a very practical, configuration-heavy way. You will not be asked to write complex speech recognition algorithms. Instead, expect scenario-based questions where you must choose the correct Azure resource, API, or configuration option for a given business requirement.

Here are the exact concepts they love to test:

Differences between the customisation options: Questions will ask when to use a 'Custom Speech model' versus 'Custom Neural Voice'. The key distinction: Custom Speech improves speech-to-text accuracy for specialised vocabulary (e.g., medical terms). Custom Neural Voice creates a unique synthetic voice for text-to-speech output (e.g., a branded voice for a virtual assistant). A common trap is confusing the two.

Real-time speech translation vs. batch translation: The exam tests your understanding of the two Translation API modes. Real-time (streaming) is used when latency matters, like live captions during a video call. Batch (synchronous or asynchronous) is used for processing pre-recorded audio or documents where a few seconds delay is acceptable.

Supported languages and regional availability: You need to know that not all features are available in every region. For example, Custom Neural Voice has limited availability compared to pre-built speech-to-text. The exam may present a scenario where the customer is in a specific region (e.g., 'South India') and you must choose a feature that is available there.

Speaker Recognition modes: There are two modes—Identification (matching a voice to one of a set of known speakers) and Verification (confirming that a voice matches a specific claimed identity). The exam loves to test when to use each. For example, when opening a bank account over the phone, you would use Verification to confirm the caller is who they claim to be. For a meeting transcription that labels each speaker, you would use Identification.

Endpoint security: Questions often ask how to secure your Speech and Translator resources. The correct answers involve using managed identities, Azure Key Vault for keys, and network service endpoints (restricting access to a specific virtual network). A trap is to suggest storing the key in the application code, which is insecure.

Custom Translator vs. Custom Speech: Both allow customisation, but for different modalities. Custom Translator improves translation accuracy for a specific domain (e.g., legal documents) by training on parallel sentences. Custom Speech improves recognition of spoken words in that same domain. The exam may ask which service to use if you have text-only training data (use Custom Translator) versus audio training data (use Custom Speech).

Exam question patterns:

Multiple-choice with 'select all that apply': You might be asked which Azure services are needed to build a live translation captioning system. The correct answer is Speech Services (for STT and TTS) and Translator (for text translation). A distractor might be 'Language Understanding (LUIS)' or 'QnA Maker', which are not required for pure translation.

Drag-and-drop ordering: You may be asked to put the steps of a speech translation pipeline in the correct order: 1) Capture audio, 2) Convert audio to text, 3) Translate text, 4) Convert translated text to speech, 5) Output audio.

Case study: A detailed business scenario (e.g., a multinational retailer with stores in 10 countries) asking you to recommend the most cost-effective and accurate solution. The answer usually involves using pre-built models (which are cheaper) combined with custom models only for the most critical or domain-specific content.

Trap patterns to watch for:

Assuming all speech features are available in all regions. They are not. Always check regional availability in the scenario.

Confusing 'text-to-speech' with 'speech-to-text' in a question that mentions 'speech'. Read carefully: is the input audio or text?

Choosing 'Bing Speech API' (a deprecated older service) instead of the current Azure Speech Services. The exam uses only up-to-date service names.

Selecting 'Translator Text API' when the requirement involves translating documents with formatting intact. The correct service is 'Document Translation' (a feature of the Translator resource).

Forgetting that you need either a Speech resource, a Translator resource, or both—not a single resource that does everything. They are separate resources in Azure.

Key Takeaways

Speech Services and Translator are two separate Azure resources—you must create both in the portal to build a complete speech translation solution.

Custom Speech improves speech-to-text accuracy for niche vocabulary, while Custom Neural Voice creates a new synthetic voice for text-to-speech output.

Real-time speech translation uses a pipeline: audio to text (STT), then text to translated text (Translator), then translated text to audio (TTS)—all streaming simultaneously.

Language identification in Speech Services requires you to enable the feature and provide a list of candidate languages—it is not automatic.

Speaker Recognition has two distinct modes: Verification (is this person who they claim?) and Identification (which person from a group is speaking?).

Document Translation preserves formatting (headings, tables, images) when translating entire documents like Word or PDF files.

You must secure your service keys using Azure Key Vault or managed identities—never harcode keys in application code.

Not all Speech features are available in every Azure region—always check regional support when planning a deployment.

Easy to Mix Up

These come up on the exam all the time. Here's how to tell them apart.

Custom Speech (STT Customisation)

Improves accuracy of speech-to-text for domain-specific terms

Requires audio recordings with correct transcriptions to train

Output is still text—does not change the voice that speaks

Custom Neural Voice (TTS Customisation)

Creates a unique synthetic voice for text-to-speech output

Requires recordings of a specific person's voice to train

Output is audio in a new voice—does not improve recognition accuracy

Speech-to-Text (STT)

Input is audio, output is text

Used to transcribe conversations or create captions

Latency is measured from speech end to text display

Text-to-Speech (TTS)

Input is text, output is audio

Used to read aloud notifications or power voice assistants

Latency is measured from text submission to audio start

Speaker Identification

Determines which person from a known group is speaking

Compares speech against multiple enrolled speaker profiles

Useful for meeting transcription with labels like 'Speaker 1: John'

Speaker Verification

Confirms or denies a claimed identity based on speech

Compares speech against a single enrolled speaker profile

Useful for security authentication over phone (e.g., bank verification)

Real-time Translation (Streaming)

Processes audio or text as it arrives with low latency

Requires maintaining a persistent connection to the API

Ideal for live captions or real-time conversation translation

Batch Translation (Document or File)

Processes entire documents or audio files asynchronously

Submitted as a job; result is retrieved later via a status endpoint

Ideal for translating recorded meetings or PDF documents

Watch Out for These

Mistake

Azure Speech Services can automatically identify the language spoken in audio without any configuration.

Correct

The service can auto-detect the language, but you must enable 'Language Identification' feature in the Speech API call and specify a list of candidate languages. It does not work automatically with zero setup.

Beginners expect AI to be 'magically smart' out of the box, but Azure requires explicit configuration even for basic features like language identification.

Mistake

Custom Neural Voice and Custom Speech are the same thing because both create customised models.

Correct

They are totally different. Custom Neural Voice creates a unique synthetic voice for text-to-speech (output). Custom Speech improves the accuracy of speech-to-text (input) for specialised jargon.

The word 'custom' in both names leads people to lump them together, but one deals with output voice and the other with input recognition.

Mistake

You can use the same subscription key for both Speech Services and Translator because they are both part of Azure AI.

Correct

They are separate Azure resources with distinct endpoints and subscription keys. You must create both a Speech resource and a Translator resource in the Azure portal.

Azure organises services into separate resources even when they are used together. People assume a single key works for all AI services, which is incorrect.

Mistake

Real-time speech translation requires you to wait for the entire audio to finish before translation starts.

Correct

Azure supports streaming or 'real-time' translation where translated text begins appearing as the person is still speaking, with only a short latency (fraction of a second).

People think translation requires the complete input, but streaming APIs process audio in chunks to deliver translated output almost instantly.

Mistake

You can only translate text into one language at a time using the Translator API.

Correct

The Translator API supports translating text into multiple target languages in a single API call by specifying multiple 'to' parameters. This is more efficient than making separate calls.

Beginners assume a single API call handles one language pair, but Azure allows batch multi-language translation in one request to reduce latency and cost.

Do You Actually Know This?

Reveal each answer, then mark whether you got it right. Score 60%+ to unlock the next chapter.

Frequently Asked Questions

Do I need to train my own speech model from scratch to use Azure Speech Services?

No. Azure provides pre-built neural models that work well for general speech recognition and synthesis. You only need to create a custom model if your application uses highly specialised jargon (e.g., medical terminology) or requires a unique brand voice.

Can Azure Speech Services translate between more than two languages in one conversation?

Yes. The Speech Translation API can translate input speech into multiple target languages simultaneously. You specify an array of target languages in the API request, and it returns translated text for each language in the same response.

How much does Azure Speech Services and Translator cost?

Both services use a pay-as-you-go pricing model. You pay per character for translation and per audio second for speech processing. There are free tiers (e.g., 1 million characters free per month for Translator, 5 hours free per month for speech) for limited usage.

Can I use Speech Services offline without an internet connection?

No, Azure Speech Services and Translator are cloud-based APIs and require a stable internet connection. For offline scenarios, you would need to download and deploy on-premises containers (Azure Cognitive Services containers), which are available but more expensive and complex to manage.

What languages does Azure Translator support?

Azure Translator supports over 100 languages, including major ones like English, Spanish, French, Chinese, Arabic, and many regional languages like Hindi, Swahili, and Welsh. The exact list is updated regularly—check Microsoft's official documentation for the latest set.

How do I improve accuracy for speech recognition of people with heavy accents?

Create a Custom Speech model by uploading audio recordings of the specific accents you need to recognise (with their transcriptions). Azure will train the model to adapt to those acoustic patterns. This can significantly improve accuracy for non-standard accents.

Is real-time speech translation accurate enough for a professional meeting?

Accuracy typically ranges between 80-95% for standard speech with good audio quality. For critical meetings, consider using it as an aid alongside a human interpreter, or implement a confidence threshold that flags low-confidence translations for human review.

Terms Worth Knowing

Keep going

You've finished Translation and Speech Services. Continue through the AI-102 study guide to build a complete picture of the exam.

Done with this chapter?