Most programs you have written take text in and give text out. A voice application listens and answers aloud; a multimodal application can also take a photo, a scanned page or a short video as part of a question. This lesson explains how such applications are put together, which parts you will build in this course, and why every part will run on your own computer. There is nothing to install yet; the next two lessons do that.
What "Multimodal" Means Here
A modality is a kind of input or output: text, speech, images, video. An application is multimodal when it handles more than one. In this course that means four things:
- Speech in: turning a recording or a live microphone into text.
- Speech out: turning text into natural-sounding audio.
- Images in: asking questions about a photo or a document page, or pulling structured data out of it.
- Combinations: a spoken note together with a photo, or a short video read as a series of frames plus what was said.
There are two broad ways to build this. A cascaded application chains specialised models: one turns speech into text, a language model works with the text, another model turns the reply into speech. A natively multimodal model takes audio or images directly, alongside text, in one request. Both exist and both are useful. The course builds the cascade first, because every stage can be inspected, measured and replaced on its own, and then compares it with a model that accepts audio directly in an optional lesson (S06).
The Two Pipelines You Will Build

The two pipelines this course builds. Read each column from top to bottom; the labels on the right name the module that teaches that stage.
A voice turn starts with sound, either from a microphone or from a file. Voice activity detection decides which parts contain speech and when the speaker has finished, so the rest of the pipeline does not wait for ever or cut someone off. Speech to text turns the speech into words; the course uses Whisper models through a library called faster-whisper (S10). A language model then works out the reply. In this course it answers only from facts you supply, such as a table of bike docks, so you can check every answer. Text to speech turns the reply into audio with Kokoro, a small open speech synthesiser (S18), and the result goes to a speaker or a file.
An image question starts with a photo or a document page. Before a model sees it, your code prepares it: turns it the right way up, makes it a sensible size and strips hidden data such as the location where a phone photo was taken. A vision-language model (a language model that also accepts images) then answers a question or fills in fields (S02), and your code validates the answer against a schema and checks it with ordinary rules, for example that a total equals its parts.
Later modules connect the two: a technician's voice note plus a photo of a dock display, a short video read as frames and a transcript, and a small web page that uses your browser's microphone.
Why Everything Runs on Your Computer
Hosted AI services are often more capable than the small models a laptop can run, so this choice needs a reason. There are three:
- Privacy. Voices and photos often identify people and places. Running the models locally means no recording or image leaves your computer. Ollama, the program that runs the language and vision models, listens only on your own computer by default, and its documentation says it does not see your prompts or data when you run it locally (S04).
- Cost and repeatability. After installation nothing is charged per request, so you can run an evaluation a hundred times and get the same conditions each time.
- Visibility. Every request and response is on your machine, where you can print and measure it.
The price is quality and speed. Small local models make more mistakes than large hosted ones, and on a computer without a capable graphics processor some steps are slow. The course says so wherever it matters and measures the gap rather than hiding it. An optional lesson at the end compares the cascade with a small model that hears audio directly.
The Practice Scenario
All examples belong to the maintenance desk of a fictional bike-share scheme: technicians report faults by voice, photograph dock displays and repair notes, and staff ask questions such as "How many bikes are at dock seven?". The scenario was chosen because it naturally mixes speech, images and documents, and because none of it involves real people.
Every recording in the course is made by a speech synthesiser from sentences written for the course, and every image is drawn by a course script. You will know the true answer to every question, which is what makes measurement possible. Synthetic speech is cleaner than real speech, so the course also shows where that makes results look better than they would with real callers, and invites you, if you wish, to record and test your own voice privately.
How the Lessons Work
Each lesson has three views of the same material:
- Full Course teaches the topic step by step, with complete code.
- Revision recalls the reasoning and the decisions after you have studied the full lesson.
- Quick Reference collects commands, settings and troubleshooting cues.
Practical lessons give you complete files to save and run, explain the blocks that matter, and show output from the author's run. That output is always labelled illustrative: model output can differ between computers and versions, and timings depend on your hardware and on what else it is doing. Success is judged by measurable results (a matching fingerprint, a count, a field that validates), not by whether your text looks exactly like the lesson's.
Everything you create lives in one folder, ~/voice-practice, which the
next lesson creates. Each exercise gets its own subfolder, so you can
delete any of them without affecting the others.
Ground Rules for the Whole Course
These rules apply in every lesson, and the safety module, starting with Privacy, Consent and Metadata, explains the reasons in depth:
- Record only yourself, and only if you choose to. No exercise needs a microphone; every one also works from supplied files.
- Keep servers private. Ollama and the course's web app listen only on your own computer.
- Treat model output as a claim to check. Speech models can write words that were never spoken (S16); vision models can misread or invent details. Every answer is compared with known values.
- Treat text inside images and audio as data, not instructions. Later lessons show what happens when a picture or a recording contains a hidden instruction.
- Use synthetic voices honestly. The course never imitates a real person's voice, and it shows how to tell people that speech is generated.
What You Need
| Item | Requirement |
|---|---|
| Computer | macOS 14 or later on Apple silicon; Windows 10 22H2 or 11 on x64; or 64-bit Linux. At least 8 GB of memory; 16 GB recommended |
| Disk space | About 15 GB for the environment, models and practice files |
| Python | 3.12 or 3.13 |
| Network | Only to install the software and download the models once |
| Graphics processor | Recommended for the lessons that send images: a supported graphics card, or Apple silicon. Without one, those lessons follow a reduced plan |
| Microphone, speakers, accounts, payment | None required |
The speech lessons run comfortably on an ordinary processor. Vision requests are much heavier: without a graphics processor a single image can take a minute or more, and how long varies a great deal between computers. The vision lessons, starting with Send Images to a Vision-Language Model, give a reduced plan for that case, with a smaller model and fewer images, for which 16 GB of memory is recommended.
Check Your Understanding
A technician leaves a voice note: "Dock seven's display shows an error, photo attached." Your application must reply aloud with the error code.
- Name, in order, the stages that the audio and the photo pass through.
- Which two outputs in that flow should your code check before the reply is spoken, and against what?
Answer and Reasoning
- The audio goes through voice activity detection, speech to text and the language model; the photo is prepared and sent to the vision model; the reply goes through text to speech. The transcript and the vision model's answer meet at the language model (or at your code), which writes the reply.
- The transcript, because a speech model can mishear "seven" or invent words, so the dock number should be confirmed or checked against the dock list; and the error code read from the photo, because a vision model can misread small text, so it should match the expected code format and, where possible, a known list of codes. Checking only the final spoken reply would be too late to tell which stage went wrong.