Go to Map Courses Lab Glossary How it works Troubleshooting Start →
ITEN
← Course 03 · Listening (Lesson 03.03 · 14 minutes · No sensor · For everyone)

The word that wakes the phone.

Your phone hears you even with the screen off, and yet the battery lasts all day. Here you'll find out how it does it, from the chip that listens on its own to the two models in a row, and why the right word is long and rare.

What you learn
  1. How a phone is always listening and still uses very little power
  2. Why you use two models in a row instead of one
  3. How the phone recognizes your voice and not other people's
  4. What makes a good keyword
You need to know

If you don't remember one of these, the link takes you to the chapter that explains it.

How do you want to follow it
Preparing the scene…
  1. 01 Always listening

    The phone is always listening, but only for one word.

    When you say Hey Siri or OK Google, the phone answers even with the screen off. So the microphone is always on. But the phone doesn't understand everything you say. A tiny model looks for a single word, and until it hears it, it does nothing else. This task is called keyword spotting.

    In practice. The keyword model is different from the one that understands your questions. The first always runs on the phone, the second only starts afterward, and sometimes it lives in the cloud.

01 / 07
(Go deeper)

A few more numbers.


(01)

Inside Hey Siri

In 2017 Apple explained how the iPhone keyword works. Every few milliseconds the sound goes through a small network on the always-on processor, with five layers of 32 units. When the score goes over a threshold, it wakes up the main processor, which runs a bigger network, five layers of 192 units, on the same piece of sound.

There are two thresholds, one for each stage. Apple tuned them by counting false alarms over many hours of normal speech where the word never comes up. A year later it added recognition of the voice of the phone's owner.

(02)

False alarms and missed words on the same curve

For each threshold you measure two numbers, the false alarms per hour over hours of ordinary audio, and the missed words out of a hundred real tries. If you put the pairs on a chart, you get a curve. The closer it sits to the bottom left, the better.

Whoever designs an assistant picks one point on the curve. A phone that wakes up on its own once a day is acceptable, one that does it every hour isn't. To keep false alarms that low, you accept that now and then you'll have to say the word again.

(03)

A keyword all your own

There are open tools for training a keyword you choose yourself. openWakeWord learns it from synthetic recordings, made with an artificial voice in thousands of variations, so you don't need to record hundreds of people. microWakeWord makes models small enough to run on an ESP32 board that costs a few euros.

The method is the one from this course. Lots of examples of the word, a huge number of examples of everything else, a mel spectrogram as input and a small network. The longest part is still measuring false alarms over hours of normal audio.

(Try it on your phone)

The keyword test


Turn on your phone's voice assistant, if you don't use it already. Then try these situations one at a time and mark what happens. You're measuring the two mistakes from this lesson on your own.

  1. (01) You say the keyword from a meter away, with the screen off
  2. (02) You say it from the other side of the room
  3. (03) You say it with the TV or music on
  4. (04) You have another person say it
  5. (05) You say a phrase that sounds similar, for example hey Sara or OK Gigi
  6. (06) You say it with the phone in airplane mode

If the phone woke up for the similar phrase, you saw a false alarm. If it stayed off when you were far away, that's a missed word. With another person's voice it usually stays off, because of your voiceprint.

(Quiz)

4 questions to close the lesson.

When you have answered them all, the lesson counts as done and its stone on the map turns yellow. Answering is what counts, not the score.


  1. (01)

    Why doesn't the phone use the main processor to wait for the keyword?

  2. (02)

    The first model thinks it heard the word. What happens next?

  3. (03)

    Which keyword works best?

  4. (04)

    The TV says a line and the phone wakes up. What kind of mistake is that?

To close the lesson, answer the quiz

← Recognizing a sound Back to the map
(Next lesson · 03.04) From voice to text, and back