Voice and speech AI
Transcribing audio, generating speech and building voice agents with consent.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkOverview
Speech work splits into three jobs. Speech-to-text turns recordings into transcripts, often with timestamps and speaker labels; Whisper and its faster local ports made this cheap enough to run on a laptop. Text-to-speech turns text into natural voices. Realtime voice agents combine both with a model in a loop, or use a speech-to-speech model directly, and have to answer within a few hundred milliseconds to feel like conversation.
The practical skills are choosing between local and hosted models, measuring word error rate on your own audio, handling accents, noise and crosstalk, and keeping latency low end to end. Voice also raises consent questions: tell people when they are recorded or talking to a machine, and do not clone a voice without permission.
What you will practise
- Transcribe a recording locally with Whisper or a faster port and check the error rate
- Add timestamps and speaker labels and turn a transcript into actions
- Compare a local and a hosted speech model on the same audio
- Measure end-to-end latency in a voice agent and find the slowest step
- Write a consent and disclosure notice for recorded or synthetic voice
Tutorials
- Build a voice agent you can talk to
Stream your microphone to a realtime speech model, call a tool mid-conversation, measure latency and let the user interrupt it.
- Transcribe and summarise audio locally with faster-whisper
Transcribe audio locally with faster-whisper in Python, fix misheard names, then summarise the transcript with a local model through Ollama, all offline.
Tools for this skill
ElevenLabs
Text-to-speech, voice cloning and dubbing, through a web app and an API.
faster-whisper
Whisper reimplemented on CTranslate2: same accuracy, up to four times faster.
Groq
Fast inference API on Groq's own LPU chips.
OpenAI Realtime API
OpenAI's API for speech-to-speech voice agents.
Whisper
OpenAI's open-source speech recognition model for transcription and translation.
whisper.cpp
Dependency-free C/C++ port of Whisper for fast on-device transcription.
Key terms
Words you will meet while learning this, defined in the glossary.
- Speech-to-text (STT)
A model that converts spoken audio into written words, used for transcripts, captions, voice commands and meeting notes.
- Text-to-speech (TTS)
A model that turns written text into spoken audio in a chosen voice, used for voice assistants, narration, audiobooks and accessibility.