Generative AI
Intermediate
4.5
Build a Simple Voice Assistant
Chain speech-to-text, an LLM, and text-to-speech.
1h 40m
1 lesson
1.2K students
What You'll Learn
Learning objectives will be added soon.
Tutorial Content
The pipeline
A voice assistant is three components in a loop:
- Speech-to-text (Whisper) — transcribe the user.
- LLM — generate a response.
- Text-to-speech (ElevenLabs / OpenAI TTS) — speak it back.
text = stt(audio)
reply = llm(text)
speak(tts(reply))Polish
Stream each stage to cut perceived latency, add a wake word or push-to-talk, and keep conversation history for context. The same pattern scales from a desktop toy to a phone agent.
Your Progress
Sign in to track your progress
Tags
Multimodal
NLP
Python