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.
Yes I agree the audio sample can be a solid answer however it does not cover all the bases ... here is another perspective
A pixel is to an image as a sine wave is to sound ... just as any possible image can be synthesized from a collection of pixels, any possible audio can be synthesized from a set of sine waves (along with their amplitudes and phase)
200 years ago Joseph Fourier gave us the insight you can combine a set of pure sine waves ( each with their amplitude and phase shift ) to synthesize any possible sound (inverse Fourier Transform) ... perhaps more subtle he also laid the mathematical groundwork to do the reverse, namely any arbitrary sound (or more generally any time series) can be uniquely defined by a set of frequencies together with their amplitudes and phase (Fourier Transform)
a typical pixel can be stored as (R, G, B, A) where each of those color channels contains one byte of resolution and so 256 distinct values per channel (color science is vast so this is only a tiny glimpse of how a pixel may be represented) ... greater fidelity can be achieved by using more bytes per channel ...
to boost fidelity of an arbitrary audio signal you include a greater number of distinct sine wave frequencies (and their amplitudes and phase)
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.