Microsoft - AI-102 Study Guide

    5: Implement natural language processing solutions

    This chapter ships natural language processing workloads on Microsoft Foundry by mapping each text task to the right Language service feature, wiring speech in and out of agents, and operationalizing custom language understanding, custom question answering, and custom translation. It pairs every concept with a runnable SDK or REST snippet, calls out SKU and quota traps, and walks through the design choices that distinguish the prebuilt Language API surface from the project-based custom paths.

    Learning Objectives

    By the end of this chapter, you will be able to:

    • Extract key phrases and entities from text, and integrate Custom Speech with question answering import flows
    • Determine sentiment of text, and build intent and keyword recognition with Speech alongside a trained knowledge base
    • Detect the language used in text, and orchestrate multi-turn speech translation conversations
    • Detect personally identifiable information (PII) in text, and define intents, entities, utterances, alternate phrasing, and chit-chat
    • Translate text and documents by using the Translator service, and train, evaluate, deploy, test, and export language understanding artifacts
    • Integrate generative AI speaking capabilities in an application, optimize and recover language models, and build multi-language question answering
    • Implement text-to-speech and speech-to-text using Speech, consume a language model from a client, and build a custom translation model
    • Improve text-to-speech by using Speech Synthesis Markup Language (SSML), and create a custom question answering project

    Executive Summary

    • The Language service in Foundry surfaces prebuilt skills (key phrase extraction, entity recognition, sentiment, language detection, PII redaction, summarization) through a single endpoint and SDK, while project-based features (CLU, custom NER, custom text classification, custom question answering) share a separate authoring path.
    • Speech in Foundry separates real-time, batch, and fast transcription for speech-to-text and pairs them with Neural Voice and Custom Neural Voice for text-to-speech; SSML is the contract layer that controls prosody, pronunciation, and voice switching.
    • Custom Translator and Custom Question Answering are project artifacts that move through training, evaluation, deployment, and export stages governed by the same Language resource that hosts CLU.
    • Generative speaking capabilities sit on top of the GPT-4o realtime model and the Speech Realtime API, with SSML, Neural Voice selection, and Foundry content safety controls applied at the boundary.

    Assumptions

    • Foundry account, Language resource, Speech resource, and Translator resource are already provisioned per the patterns established earlier in the course; only feature-specific configuration is shown here.
    • All identity-based calls use DefaultAzureCredential and Microsoft Entra ID; key auth appears only where the SDK still requires AzureKeyCredential.
    • Region naming is generic; deployment region and data zone choices follow the residency framework defined for the Foundry account.

    Sections in this chapter

    1. Free
    2. Free with account
    3. Free with account
    4. Free with account
    5. Free with account
    6. Free with account
    7. Free with account
    8. Free with account
    9. Free with account