3
$\begingroup$

I know when we speak to the microphone, the pitch of our voice cause the vibration of magnet in the microphone, thus causing generation of different voltages of electrical signal.

But my question is: when we speak, our voice not only contains the pitchs, but also the content of our words. How are the words (such as word "hello" and "how are you") transferred into electrical signals?

I am trying to figure out how our voice data delivered as packets on the Internet when we are having voice chat through Internet. What does the packets contain specifically?

$\endgroup$
1
  • $\begingroup$ The content of the words "hello" and "how are you" are just tricks of your brain. Words and sounds are just vibrations that change with time that our brains pick up and interpret as having meaning. The packets just contain the vibration information. $\endgroup$ Mar 29, 2014 at 18:24

2 Answers 2

1
$\begingroup$

Here is an image of the waveform of my voice saying "hello":

hello sound waveform

The blue line corresponds to a vibration in the air (pressure wave) but it's easier to imagine it as the amount a speaker cone needs to be displaced at a given time or the amount your eardrum will be displaced at a given time.

The simplest common (digital) way to encode this sound as data is a technique called "Pulse Code Modulation" and this is the format the common "wave" or ".wav" files use. To encode something as PCM, you slice up time into very short intervals and for each interval you record (also called sample) the displacement of the microphone membrane by the sound at that point in time. By reproducing these displacements with a speaker cone the sound is reproduced.

Packets transmitted with this waveform information just contain long lists of number for each value of the displacement of the waveform at that time. No "meaning" is transmitted. Your brain is what interprets meaning from the vibrations.

$\endgroup$
1
  • 1
    $\begingroup$ Of course this answer ignores audio compression but that's off-topic and inconsequential to the concepts here. $\endgroup$ Mar 30, 2014 at 3:33
1
$\begingroup$

the pitch of our voice cause the vibration of magnet in the microphone, thus causing generation of different voltages of electrical signal.

this is not exactly true. the voice doesn't have the pitch. the pitch is a concept from a frequency domain. when you speak you change the air pressure over time. these changes travel in air with speed of sound, they hit the mic. mic records these air pressure changes as electrical signals of different amplitude, like show in the picture on top, where i recorded my saying "hello". enter image description here

you can run spectral analysis on the entire recording to convert the time domain signal recording into the frequency domain, you'll get the periodogram in the picture in the middle. as you see there is not a pitch there, but rather a continuum of pitches: all frequencies are there, some with higher intensity than others.

you could also argue that the pitch changes with time, and get a spectrogram on the picture at the bottom. it's a sequence of periodograms over time, showing that the frequencies change over time.

basically, all that i'm saying is that the concept of a pitch of the voice is rather complicated. when we speak over the internet phone, the mic records what's on the first picture, and the speaker on the other end tries to reproduce it. in the middle of this all many things may happen, such as compression and encryption. you can lookup the details in documentation for SIP

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.