DEV Community

Hammad Khalid
Hammad Khalid

Posted on

Wait—Your Voice Is Just 0s and 1s?!

Wait—Your Voice Is Just 0s and 1s?!

You say "Hello!"

Your phone saves it.

But inside?

It’s not sound.

It’s code.

Let’s see how — in 4 crazy-simple steps.

  1. Sound = A Wild Wiggle
    Your voice pushes air.

    That air wiggles — up, down, up, down.

    Smooth. Endless. Analog.

    1. Freeze It! (Sampling) We can’t save the whole wiggle. So we take super-fast photos.

Snap! Every 0.0001 seconds.

Snap! Again.

Snap! 44,100 times in one second.

Now we have dots — a connect-the-dots wave.

  1. Round It Off (Quantization) We can’t save every dot perfectly. So we snap each dot to the nearest floor.

High? → Floor 7

Medium? → Floor 5

Low? → Floor 2

Now it’s blocky. Like 8-bit Mario.

  1. Translate to Binary (Encoding) Each floor gets a secret code:
  • Floor 7 → 111
  • Floor 5 → 101
  • Floor 2 → 010

Boom.

Your voice is now a string of 0s and 1s.

That’s It!
Wiggle → Snapshots → Blocks → 0s & 1s

Next time you send a voice note…

You’re sending rounded air wiggles in binary.

Mind blown?

Drop a brain-explosion emoji below!

Top comments (0)