Audio

  • Digital Audio: The method of representing sound in a digital format, allowing for easier storage, manipulation, and transmission of audio content across various devices and platforms.

Understanding Sound

  • Sound: Pressure waves that propagate through air or other materials; sound cannot exist in a vacuum where no medium is present.

  • Frequency: The rate at which sound waves oscillate, measured in Hertz (Hz). Human hearing typically spans the range of 16extHz16 ext{ Hz} to 20,000extHz20,000 ext{ Hz}. Frequencies below 20 Hz are considered infrasound, while those above 20 kHz are termed ultrasound.

Sound Characteristics
  • Sound Level (Volume): Measured in decibels (dB), where an increase of 10 dB represents a tenfold increase in intensity.

  • Musical Tone: Characterized by frequency, duration, loudness, and timbre, a comprehensive understanding of which assists in differentiation between musical instruments.

  • Timbre: The unique quality or colour of sound that distinguishes different sound sources, such as a guitar versus a violin, even when they play the same note at the same volume.

Digital Audio Encoding
  • Analog Sound: A continuous wave form that captures sound in a manner that translates the natural variations in amplitude and frequency. This format theoretically offers infinite values in both time and amplitude but is unsuitable for modern digital applications.

  • Digitization Process: To convert analogue sound into a digital representation, the process entails two critical phases:

    1. Sampling: The process whereby sound levels are measured at regular intervals.

    2. Quantization: This phase changes continuous amplitude into discrete values for digital storage.

Sampling Phase

  • Defined as the regular measurement of sonic levels over time, crucial for accurate audio representation.

  • Sampling Rate: The frequency at which sound is sampled, typically expressed in Hertz (Hz). A higher sampling rate results in better fidelity but increased data size. For instance, stereo sound uses two channels as compared to mono sound which uses one.

  • Fidelity: Enhanced by higher sampling rates and resolution values; the fidelity is indicative of how accurately the digital representation mirrors the original sound. Higher rates (e.g., 96 kHz, 192 kHz) are often used in professional audio settings.

  • Nyquist–Shannon Sampling Theorem: A foundational principle that states faithful reproduction of sound requires a minimum sampling rate greater than twice the highest frequency. For human hearing, which extends up to 20,000 Hz, a minimum sampling rate of 40,000extHz40,000 ext{ Hz} is necessary; hence the prevalent use of 44.1extkHz44.1 ext{ kHz} for CDs.

Quantization Phase

  • Converts continuous amplitude values into discrete digital representations. The quality of this digital audio is dependent on the precision of the numbers assigned during this phase.

  • Resolution: Determines the number of possible distinct amplitude values, which affects the granularity of sound in the digital representation. Higher bit depth results in greater dynamic range and precision.

  • Storage: Computers store results in bytes, facilitating efficient handling of audio data.

Bits

Different Values

1

2

2

4

3

8

8

256

16

65,536

24

16,777,216

  • Audio File Format: The digital container that defines how audio data is stored, which can be categorized into uncompressed, compressed, lossless, and lossy formats.

Types of Formats

  1. Uncompressed Formats:

    • Examples: WAV (Waveform Audio File Format), AIFF (Audio Interchange File Format). These formats retain all original audio data, resulting in large file sizes.

  2. Lossless Compression Formats:

    • Examples: FLAC (Free Lossless Audio Codec), Monkey's Audio, WMA (Windows Media Audio, lossless). These formats compress audio without loss of any data, typically achieving a compression ratio of about 2:1.

  3. Lossy Compression Formats:

    • Examples: MP3 (MPEG Audio Layer III), Ogg Vorbis, WMA (Windows Media Audio, lossy), AAC (Advanced Audio Codec). These formats achieve significant compression by removing inaudible data, often achieving compression ratios ranging from 5% to 20% of the original file size.

Uncompressed Audio Format
  • PCM (Pulse Code Modulation): The primary uncompressed format used in digital audio, typically stored as .wav (Windows) or .aiff (Mac). File size remains consistent regardless of content; for example, one minute of orchestra sound will occupy the same amount of space as one minute of silence.

Lossy vs. Lossless Formats
  • Lossless: Retains all original data, ensuring audio quality remains optimal but resulting in less efficient storage. Ideal for archiving high-fidelity audio.

  • Lossy: Sacrifices some audio data, significantly enhancing compression ratios, making it more suitable for casual listening and streaming applications.

Proprietary Formats

  • MP3: One of the most widely used audio formats, efficient for streaming and compatible with most devices, reducing file size up to 90% while retaining acceptable sound quality.

  • WMA: Windows Media Audio, developed by Microsoft, supports both lossy and lossless audio compression, offering flexibility in usage.

  • MP4: Often associated with video, utilizes AAC for audio tracks and features digital rights management (DRM) via Apple’s iTunes, providing secure playback environments.

Software Programs for Digital Audio
  • WinAmp: A versatile multi-format media player, capable of handling many audio formats, including less common ones like Ogg Vorbis. Features such as CD playback integration and a customizable interface enhance user experience.

  • Audacity: A free and powerful digital audio editor that supports various audio formats for import/export, allowing recording and multi-track mixing. Key features include noise removal, amplitude envelope adjustments, and the ability to create professional-level audio edits efficiently.

Technical Features of Audacity

  • Offers multi-channel modes with support for high sampling rates, reaching up to 100 kHz and 24 bits per sample, ensuring high fidelity in recorded audio.

  • Supports precise adjustments to audio speed and pitch separately, allowing for refined audio editing techniques.

Definitions and Terms
  • Encoding: The process of converting audio data into a specific digital format for storage and playback.

  • Sampling Rate: The frequency at which sound is captured, directly impacting audio reproduction fidelity.

  • Resolution: Refers to the level of detail in audio representation, determined by the bit depth used in quantization.

  • Analog-to-Digital Converter (ADC): A critical device that converts analogue audio signals into a digital format for processing and storage.

  • Continuous vs. Discrete: Continuous signal representations indicate an uninterrupted flow, while discrete representations break the signal into separate intervals.

  • Lossy vs. Lossless: Key distinctions in audio formats where lossy formats discard some data to achieve compactness while lossless formats keep all data intact.

  • Gapless Playback: An essential feature for uninterrupted audio experience, avoiding pauses between tracks.

  • Amplitude Envelope: This defines the change in amplitude levels over time, affecting the dynamic feel of the sound as it evolves during playback.