B2 · How Artificial Intelligence Works: Data and Learning

How Computers Hear Sound

Sound is a wave of vibrations in the air. A microphone turns the wave into an electrical signal, and the computer measures that signal thousands of times every second. Each measurement, called a sample, is stored as a number, so a recording becomes a long list of numbers.

6 min Beginner Jump to the activity

What you need: Nothing. This page starts from the beginning, with no programming and no formulas.

Definition

Can a computer 'see' your voice?

Sound is a wave of vibrations in the air. A microphone turns the wave into an electrical signal, and the computer measures that signal thousands of times every second. Each measurement, called a sample, is stored as a number, so a recording becomes a long list of numbers.

In simple words

Imagine drawing the wave on graph paper and writing down its height at every tick. Loud sounds make tall waves and big numbers. High-pitched sounds make waves that are packed close together. Voice assistants learn which patterns of numbers mean which words.

Why it matters

Voice assistants, song recognition, live captions and translation apps all rely on turning sound into numbers. It is the same idea as pixels: once sound is numbers, AI can learn patterns in it.

How it works

What you hearWhat the wave looks likeThe numbers
LoudTall wavesBig values, far from zero
QuietShort wavesSmall values, near zero
High pitchWaves close togetherValues change quickly
Low pitchWaves far apartValues change slowly

Try it yourself

See a voice as a wave

Change the loudness and pitch, and watch the wave and its numbers change.

Common mistakes

  • Thinking computers store sound as sound. They store numbers measured from the wave.
  • Mixing up loudness and pitch. Loudness is how tall the wave is; pitch is how close together the waves are.
  • Thinking a few samples are enough. Clear audio needs thousands every second.

Check yourself

Question 1

1. A louder sound has…

Question 2

2. What is a sample?

Question 3

3. Waves packed close together mean…

Summary

  • Sound is a wave; a microphone turns it into a signal.
  • The computer stores thousands of samples per second as numbers.
  • AI learns which patterns of numbers mean which words or sounds.

Finished reading?