What is the equivalent of a pixel in the realm of audio? I know that pixels are the basic components which are used to form a picture so what basic component is used to form a sound?
It is effectively a sample, but the comparison isn't quite exact. Photos have measurements of intensity on two axis with each pixel having an intensity measurement for red, green and blue. A sound sample is the measure of the intensity of an audio signal at a moment in time, so it is kind of like a cross between a pixel and a frame. There are generally tens of thousands of samples taken per second and from them we can determine what the actual analog wave looked like if the frequencies of the wave are below the Nyquist rate for the given sampling rate.
Bit depth is even more synonymous across the two. In a pixel, the bit depth determines the number of colors that can be represented by the pixel, and thus how close it can get to the original color. Similarly, the bit depth of a sample determines how many possible recorded values can be used to describe the intensity of the sound wave for that sample and produces a sample closer to the exact shape of the original signal or allows for a greater range of intensities of signals to be described.
Sample is an obvious answer, but it lacks in many aspects.
Before the following analysis, we must bear in mind that sound can be put along with moving image (a.k.a. video) and not photographs. The latter are still in time, something that sound can not have.
First of all, the pixel is an attribute of the reproducing device. By this I mean that the pixel can be found on the screen or, more precise, in the projection mechanism of the transducer used to convert digital signals to light. There are samples of moving image. Whatever is originally in analogue domain and has to be converted in the digital one, it must undergo a sampling procedure. Thus, the sample is not analogous to pixel because there are samples also in the video (termed differently but still are samples). In addition, the sample refers to the signal it self and not to the reproducing device, something that the pixel does (especially for vector graphics).
Also, you can not hear a sample. You cannot even hear the actual samples because the movement of diaphragm in your electroacoustic transducers (a.k.a. loudspeakers) adds a lot of elements that are not apparent in the actual samples that are in your digital form of sound.
Thus, there is not such a thing as the audio equivalent of a pixel.
Finally, a sample is a fixed point in space with different values for its light. If you could have a 800x600 loudspeakers arranged in a speaker wall, then each loudspeaker could be a pixel.