Sound entering a microphone generates an electrical voltage difference. Just like sound is a wave, pushing and pulling on the microphone, the voltage generated is an identical wave within the mic output wire. This voltage is then normally amplified and maybe the frequency is shifted to get a more accurate representation of the original noise before it is passed off to the computer. Now, the computer samples the voltage over and over again super fast, generating a bunch of points. Imagine drawing a wavy line on a graph (the voltage wave), drawing points every little ways down the line, then erasing the line. Now you have a bunch of points that roughly recreate the line. This is what the computer has done with the sound. Now, it stores all of these points in order, and you have sound.
Are you asking how a microphone works, specifically in the context of a microphone picking up audio in the form of music and a computer using it?
Quick article on microphones: https://www.mediacollege.com/audio/microphones/how-microphones-work.html
tl;dr most microphones work similarly to speakers – only instead of causing vibrations with an electric current, it’s using ambient sounds to vibrate the diaphragm to produce an electric which is then interpreted by another device, in this case the audio chipset of a computer which translates it into an audio stream.
Sound shakes a thing.
Thing shakes a magnet.
Magnet affects the electricity in a wire.
Wire leads to computer.
Computer writes down what the electricity did.
Later on, computer reads what the electricity did.
Sends the same electricity down a wire to a speaker.
Speaker has a magnet in it, electricity shakes the magnet.
Magnet is stuck to a thing.
Thing shakes like the original thing shook, making the same sound.
First the pressure is converted to an electrical signal, usually some variant of having a capacitor where one of the plates gets vibrated by changes in air pressure. The signal coming out of the microphone is pretty small, so it gets amplified, then fed into an analog to digital converter (ADC) There are several ways to do this, here’s one: https://en.wikipedia.org/wiki/Delta-sigma_modulation
From here, the sound is in a digital form, but may be further compressed before it’s sent on to whichever program wants it.
Latest Answers