On this page
Audio & Video AI
The Big Picture First
The previous explanation covered how AI systems work with static images. This one extends that same multimodal idea into two more dimensions: sound and time. Audio adds a new kind of data, a continuous waveform rather than a fixed grid of pixels. Video combines images and time together. It is essentially a sequence of images changing over time, often paired with audio too.
Together, these capabilities let AI systems listen, speak, watch, and understand the kind of rich, dynamic content that makes up so much of real human communication: phone calls, meetings, videos, and podcasts. They are no longer limited to text and still images alone.
1. Speech-to-Text
Speech-to-text is the foundational capability of converting spoken audio into written text. You may recognize it as the audio equivalent of the OCR concept from the previous explanation. Both are about converting one kind of raw signal (sound waves, or pixels) into usable text that a language model can work with.
Here is the underlying process. An audio recording is a continuous waveform, a signal representing air pressure changing over time. A speech-to-text system breaks this waveform into small time segments. It learns to recognize the acoustic patterns that correspond to particular sounds, words, and phrases. It draws on the same kind of transformer architecture covered in the Vision Transformers section of the previous explanation, applied to audio segments instead of image patches.
Speech-to-text matters enormously for AI engineering, because it is the essential first step that lets an AI system work with anything spoken. For example, a voice-based customer support system (connecting to the customer support agents category from the Week 16 enterprise applications material) needs speech-to-text as its very first step, converting a caller’s spoken words into text the language model can process. Modern speech-to-text systems also have to handle practical challenges: background noise, different accents, overlapping speakers, and poor audio quality. Their accuracy in these harder, real-world conditions matters enormously for how reliably useful the whole downstream application ends up being.
2. Text-to-Speech
Text-to-speech is the reverse of what we just covered. It converts written text into natural-sounding spoken audio.
Here is the core underlying challenge. It’s not enough to produce audio that is merely intelligible. Good text-to-speech needs to sound natural, with proper intonation, appropriate pauses, and emotional expressiveness that matches the content. A sentence ending in a question mark needs to rise in pitch the way a human voice naturally would. An exciting sentence needs to carry some real energy. Modern text-to-speech systems have become remarkably good at this, to the point where telling AI-generated speech from a real human voice is much harder than it used to be.
This capability powers many applications already touched on in this course:
- Voice assistants.
- Accessibility tools for people with visual impairments (connecting back to the image captioning discussion in the previous explanation, which serves a similar accessibility purpose for images).
- Increasingly, real-time voice interfaces for AI agents and copilots (connecting to the AI copilots category from the Week 16 enterprise applications material).
Text-to-speech quality is now good enough that it raises real concerns worth being aware of, which connects directly into the voice cloning topic covered below.
3. Speaker Recognition
Speaker recognition is the capability of identifying who is speaking in a piece of audio. It is distinct from speech-to-text, which is concerned with what was said.
Here is why this distinction matters in practice. Imagine a recorded business meeting with several different people speaking. Speech-to-text alone gives you a complete transcript of everything said, but no way of knowing which parts were spoken by which person. Speaker recognition solves this by analyzing the unique acoustic characteristics of each person’s voice, much like a vocal fingerprint. It uses these to separate and label a transcript by speaker, or to verify that a voice belongs to a specific, known individual.
This capability serves two different purposes:
- Speaker diarization means separating a multi-person recording into distinct segments attributed to each speaker. It is valuable for accurately transcribing meetings or customer support calls.
- Speaker verification means confirming whether a voice belongs to a specific claimed individual. Connecting back to the authentication concepts from the Week 5 security material, this is used in some voice-based security and identity-verification systems. It’s worth knowing that voice-based verification has become less reliable as voice cloning (covered next) has improved, so it is best used alongside other verification methods rather than alone.
4. Voice Cloning
Voice cloning is the more sensitive capability of training a text-to-speech system to reproduce one particular individual’s voice, typically using only a comparatively small sample of that person’s real recorded speech.
Here is why this capability needs to be handled with deliberate care. Connecting back to the AI ethics concepts from the Week 12 governance material, voice cloning raises serious concerns around consent and potential misuse. A voice is deeply tied to an individual’s identity. Creating a convincing synthetic version of someone’s voice without their informed consent can enable serious harms, including:
- Fraud, such as impersonating someone to deceive others.
- Reputational harm, such as putting fabricated words into someone’s mouth that they never said.
Legitimate, well-governed uses of voice cloning do exist and are valuable. Connecting back to the accessibility purpose mentioned in the text-to-speech section, voice cloning can help someone who has lost their natural voice, due to a medical condition, keep communicating in a voice that still sounds like their own. Responsible providers of this technology generally build in real safeguards, connecting back to the AI guardrails concepts from the Week 10 safety and guardrails material. They typically require verified consent from the person whose voice is being cloned, and often embed a detectable watermark in generated audio, to help distinguish it from genuine human speech later on.
5. Audio Embeddings
We covered vector embeddings in depth in our RAG Foundations explanation, and their image-specific version in the previous explanation. Audio embeddings apply the same underlying concept directly to sound. They convert a piece of audio into a list of numbers, positioned so that similar-sounding audio ends up with similar numbers.
This capability enables a range of practical applications:
- Semantic search over audio. Connecting back to the semantic search concept from RAG Foundations, you can search a large audio collection by similarity. For example, you could find similar-sounding music tracks, or similar spoken phrases across a large collection of recorded customer calls.
- Audio classification. Connecting back to the image classification concept from the previous explanation, you can detect whether an audio clip contains music or speech, or detect specific sounds of interest, like an alarm or a safety-related event.
Audio embeddings are stored and searched using the same vector database technology covered in our vector databases explanations. Connecting back to the multi-modal RAG concept from the Advanced RAG explanation, a sophisticated multimodal system can combine text, image, and audio embeddings together within that same shared vector database infrastructure.
6. Video Understanding
Video understanding is the broader capability of analyzing and comprehending what is happening within a video. It combines the image understanding concepts from the previous explanation with an additional dimension: time, and how things change and unfold across it.
Here is why video understanding is meaningfully harder than simply applying image understanding to each frame of a video, one at a time. A video isn’t just a sequence of unrelated images. The meaning very often lives in the motion and the sequence itself. Consider the difference between a person raising their hand and lowering it. A single, isolated video frame can’t distinguish between these two quite different actions. You need to observe the sequence of frames together, over time, to understand what is happening.
Video understanding systems also have to balance a practical tradeoff. Processing every single frame of a long video would be enormously expensive computationally (connecting back to the GPU computing material from Week 13). So practical systems often sample frames at some reasonable interval, rather than processing every frame. This capability powers many practical applications:
- Moderating video content for safety concerns (connecting back to the content moderation concepts from the Week 10 safety and guardrails material).
- Analyzing security footage.
- Enabling AI agents to watch and understand a screen recording as part of a larger task.
7. Video Captioning
Video captioning is generating a natural-language text description of what is happening within a video. It directly extends the image captioning capability from the previous explanation, but now needs to describe action and change over time, not just a single, static scene.
Here is what makes this capability distinctive. A good video caption doesn’t just describe what a video generally looks like. It describes what is actually happening: “a person walks into the kitchen, opens the refrigerator, and takes out a carton of milk,” rather than a static description such as “a kitchen with a person and a refrigerator.” This means a video captioning system needs to combine the video understanding capability above with the same underlying language-generation capability discussed throughout this course.
This capability powers many practical applications. Connecting back to the accessibility purpose discussed for image captioning, video captioning helps make video content accessible to people who are blind or visually impaired. It also powers video search and video summarization. Connecting back to the semantic search concepts from this course, generating captions for a large video library makes that library searchable using plain, natural-language text queries.
8. Video Generation
Video generation is the cutting-edge capability of creating brand new video content, typically from a text description. It connects back to the image generation and diffusion models concepts from the previous explanation. Video generation extends that same underlying diffusion approach across the additional dimension of time.
Here is why video generation is meaningfully harder than image generation. An image generation model needs to produce one coherent, visually consistent image. A video generation model needs to produce many individual frames, all of which stay visually consistent with each other over time. A person’s face, an object’s shape, and a scene’s lighting all need to stay coherent as the video progresses, rather than subtly shifting or flickering from one frame to the next.
Video generation is one of the most computationally demanding areas of AI work today, connecting back to the GPU computing and infrastructure material from Week 13. It also raises every one of the ethical considerations discussed for image generation in the previous explanation, plus some new ones. Convincingly fabricated video content, often called “deepfakes,” is a real, serious, and still-evolving societal challenge. It connects back to the misinformation risk on the OWASP Top 10 list from the Week 12 security material, and it’s worth being thoughtfully aware of.
9. Real-Time Streaming AI
We covered the general streaming responses concept in the Week 6 LLM APIs explanation, in the context of text. Real-time streaming AI extends that same philosophy to audio and video. It processes and responds to a continuous, live stream of audio or video, instead of waiting for an entire recording to finish before processing it at all.
Here is why this capability matters so much for many practical applications. Imagine a live voice conversation with an AI assistant. Connecting back to the AI UX principles from the Week 16 product development material, a user expects a natural, responsive conversation. They don’t expect an awkward, long pause while an entire spoken sentence is fully recorded, transcribed, processed, and only then responded to. Real-time streaming AI processes audio (or video) incrementally, as it arrives. That lets a system begin responding much sooner, and feel more natural and responsive.
This capability combines several concepts covered earlier in this course:
- Connecting back to the
asyncioandasync/awaitconcepts from Week 2, real-time streaming systems need to efficiently handle continuous, ongoing data while doing useful work with it at the same time. - Connecting back to the latency optimization concepts from the Week 10 LLMOps material, every millisecond of added delay matters much more in a live, real-time conversation than in a more traditional, asynchronous text-based interaction.
10. Multimodal APIs
We covered vision APIs in the previous explanation. Multimodal APIs refers to the broader pattern of accessing an AI provider’s combined text, image, audio, and video capabilities, all through the same familiar API pattern covered throughout this course.
Here is the important, current trend to be aware of. Increasingly, modern AI providers (connecting back to the ones covered in the Week 6 LLM APIs explanation) are building models that can accept and produce several modalities within a single, unified underlying model. This replaces the older approach, where a developer separately stitched together several specialized models by hand: one for speech-to-text, another for image understanding, and another for text generation.
This trend matters enormously for AI engineering, because it considerably simplifies building the rich, multimodal applications covered in this explanation. It connects to the AI SaaS architecture and AI microservices material from the Week 16 enterprise applications explanation. A developer can build a sophisticated voice assistant that sees a shared screen, hears a spoken question, and responds with natural spoken audio, all through a much simpler, more unified API integration. They don’t need to manage several separate, disconnected systems working awkwardly together.
11. Audio Processing Pipelines
We covered the general concept of a training pipeline in the Week 3 ML material, and the general ML data pipeline concept in Week 2. Audio processing pipelines apply that same pipeline philosophy to handling audio data reliably, from its raw initial input all the way through to its final, useful output.
A well-built audio processing pipeline typically combines several steps in a clear, well-defined sequence:
- Capture or receive the raw audio input.
- Preprocess it. This means reducing background noise, normalizing volume levels, and segmenting a long recording into more manageable chunks.
- Run the core processing step. This might be speech-to-text, speaker recognition, or whatever other capability the application requires.
- Format and deliver the final result, connecting back to the structured outputs concept from the Week 9 tool calling material.
Building this kind of pipeline properly and reliably connects back to the CI/CD for ML concepts from Week 3 and the reliability practices from the Week 10 material. The goal is to make sure the sequence of steps happens consistently and handles real edge cases gracefully, such as corrupted audio files or unsupported audio formats. The pipeline shouldn’t crash unexpectedly the moment it meets something it wasn’t specifically designed to handle.
12. Video Processing Pipelines
Video processing pipelines apply that same pipeline philosophy to video data. It’s worth understanding this as combining essentially everything covered in this explanation, since video combines both visual and audio dimensions at once.
A well-built video processing pipeline typically needs to handle several data streams together:
- The visual frames themselves (connecting back to the video understanding and video captioning concepts above).
- The accompanying audio track (connecting back to the speech-to-text and speaker recognition concepts above).
It often needs to keep these two streams synchronized with each other throughout the entire process.
A particularly important practical consideration connects back to the infrastructure and cost optimization material from Week 13. Video data is much larger and more computationally expensive to process than plain text, or even plain audio. A well-designed video processing pipeline makes deliberate decisions about how much of a video really needs full, detailed processing (connecting back to the frame-sampling tradeoff in the video understanding section). It avoids naively processing every frame of a lengthy video at the highest possible level of detail, regardless of whether that is necessary for the task at hand.
Putting It All Together
Taken together, this explanation extends the multimodal AI picture that this Week 15 material has been building. Text, images, audio, and video can all be represented through the same underlying embedding and transformer foundations discussed throughout this course. All can be combined within a single, unified AI application. The practical engineering discipline stays essentially the same as for every other topic in this course: careful pipelines, careful cost management, careful evaluation, and careful attention to ethical considerations.