You have 3 free guides left 😟
Unlock your guides
You have 3 free guides left 😟
Unlock your guides

Audio compression and streaming technologies have revolutionized how we consume and distribute music. These advancements enable efficient storage and transmission of audio files, shaping modern music production and distribution methods.

Compression techniques reduce file sizes while maintaining audio quality, utilizing psychoacoustic principles and various algorithms. Streaming protocols and platforms have further transformed the music industry, allowing for seamless delivery of audio content across devices and networks.

Audio compression basics

  • Audio compression revolutionized digital music distribution enables efficient storage and transmission of audio files
  • Compression techniques play a crucial role in modern music production and streaming services shaping the way we consume and create music

Lossy vs lossless compression

Top images from around the web for Lossy vs lossless compression
Top images from around the web for Lossy vs lossless compression
  • reduces file size by removing data deemed less perceptible to human hearing
  • preserves all original audio data while still reducing file size
  • Lossy formats (, ) offer smaller file sizes at the cost of some audio quality
  • Lossless formats (, ) maintain original audio quality but result in larger file sizes

Psychoacoustic principles

  • Exploits limitations of human auditory perception to achieve compression
  • Masking effect allows removal of sounds masked by louder nearby frequencies
  • Frequency sensitivity curve determines which frequencies can be compressed more aggressively
  • Temporal masking considers how sounds are perceived over time

Compression algorithms

  • Transform coding converts audio signals from time domain to frequency domain
  • Perceptual coding uses psychoacoustic models to determine which data to discard
  • Huffman coding assigns shorter codes to more frequent data for further compression
  • Run-length encoding compresses sequences of repeated data

Digital audio formats

WAV and AIFF

  • Uncompressed formats store audio data in raw form without compression
  • WAV (Waveform Audio File Format) developed by Microsoft and IBM
  • AIFF (Audio Interchange File Format) created by Apple
  • Both formats support high-quality audio but result in large file sizes
  • Commonly used in professional audio production and mastering

MP3 and AAC

  • MP3 (-1 Audio Layer 3) revolutionized digital music distribution
    • Uses perceptual coding to achieve compression ratios up to 12:1
    • Variable encoding allows for dynamic adjustment of compression levels
  • AAC (Advanced Audio Coding) offers improved sound quality at similar bitrates to MP3
    • Supports multi-channel audio and more efficient coding at lower bitrates
    • Widely used in streaming services and Apple's iTunes

FLAC and ALAC

  • FLAC (Free Lossless Audio Codec) open-source lossless compression format
    • Typically reduces file size by 50-60% without loss of audio quality
    • Supports metadata tagging and streaming
  • ALAC (Apple Lossless Audio Codec) Apple's proprietary lossless format
    • Similar compression ratios to FLAC
    • Natively supported on Apple devices and iTunes

Streaming protocols

HTTP Live Streaming (HLS)

  • Developed by Apple for reliable, high-quality streaming over HTTP
  • Segments audio into small chunks allowing for adaptive bitrate streaming
  • Supports encryption and closed captions
  • Widely used for both live and on-demand streaming

Dynamic Adaptive Streaming (DASH)

  • MPEG standard for adaptive bitrate streaming over HTTP
  • Allows for seamless switching between different quality levels based on network conditions
  • Supports multiple audio codecs and encryption methods
  • Used by major streaming platforms (YouTube, Netflix)

Real-Time Messaging Protocol (RTMP)

  • Developed by Macromedia for low- streaming of audio, video, and data
  • Uses persistent TCP connection for real-time communication
  • Supports live streaming and interactive applications
  • Being phased out in favor of newer protocols but still used in some live streaming scenarios

Streaming platforms

Music streaming services

  • , , and dominate the music streaming market
  • Offer vast libraries of songs with personalized playlists and recommendations
  • Implement various audio quality tiers with different compression levels
  • Utilize content delivery networks (CDNs) for efficient global distribution

Podcast platforms

  • Apple Podcasts, Spotify, and Google Podcasts lead the podcast streaming space
  • Support various audio formats and bitrates for different network conditions
  • Implement features like variable playback speed and offline downloading
  • Utilize RSS feeds for content distribution and updates

Live audio streaming

  • Platforms like Clubhouse and Twitter Spaces enable real-time audio broadcasting
  • Require low-latency protocols for interactive discussions
  • Implement echo cancellation and noise reduction for improved audio quality
  • Face challenges in content moderation and copyright management

Audio quality considerations

Bitrate vs file size

  • Higher bitrates generally result in better audio quality but larger file sizes
  • Bitrate determines the amount of data used to represent audio per second
  • Common bitrates range from 128 kbps for basic quality to 320 kbps for high quality in lossy formats
  • Lossless formats typically have variable bitrates depending on audio complexity

Compression artifacts

  • Audible distortions or alterations in sound resulting from lossy compression
  • Pre-echo occurs when transients appear before they should due to time smearing
  • Birdies manifest as brief tones or chirps often in high-frequency content
  • Pumping describes fluctuations in volume or frequency response

Loudness normalization

  • Process of adjusting the overall volume of audio tracks to a consistent level
  • Prevents jarring volume changes between songs or podcasts
  • Implements standards like EBU R128 or ATSC A/85 for consistent loudness measurement
  • Challenges arise in maintaining dynamic range while achieving consistent perceived loudness

Bandwidth and buffering

Adaptive bitrate streaming

  • Dynamically adjusts audio quality based on available bandwidth and network conditions
  • Allows for seamless playback on varying network speeds
  • Requires multiple encodings of the same audio at different bitrates
  • Client-side algorithms determine optimal quality selection

Content delivery networks (CDNs)

  • Distributed network of servers that cache and deliver content closer to end-users
  • Reduces latency and improves streaming performance
  • Enables efficient global distribution of audio content
  • Implements load balancing to handle high traffic volumes

Buffer management

  • Temporary storage of audio data to ensure smooth playback
  • Pre- loads a certain amount of audio before playback begins
  • Rebuffering occurs when the buffer empties during playback causing interruptions
  • Buffer size affects both initial load time and resilience to network fluctuations

Digital rights management

DRM technologies

  • Protect copyrighted audio content from unauthorized distribution or playback
  • Apple's FairPlay used in iTunes and Apple Music
  • Microsoft's PlayReady implemented in various streaming platforms
  • Widevine developed by Google used in many web-based streaming services

Encryption methods

  • AES (Advanced Encryption Standard) commonly used for encrypting audio streams
  • Public key infrastructure (PKI) enables secure key exchange between client and server
  • Watermarking embeds inaudible identifiers in audio to track unauthorized distribution
  • Blockchain-based solutions emerging for decentralized rights management
  • Mechanical paid to songwriters and publishers for reproduction of songs
  • Performance royalties collected for public performances including streaming
  • Sync licensing required for use of music in video content
  • Challenges arise with user-generated content and remix culture

Future of audio streaming

High-resolution audio streaming

  • Streaming services beginning to offer lossless and high-resolution audio options
  • Challenges include increased bandwidth requirements and device compatibility
  • MQA (Master Quality Authenticated) technology aims to deliver high-res audio in smaller file sizes
  • Debate continues over perceptible benefits of high-res audio for average listeners

Spatial audio technologies

  • Dolby Atmos and Sony 360 Reality Audio create immersive, multi-dimensional soundscapes
  • Requires specialized mixing and encoding processes
  • Playback supported on various devices from headphones to multi-speaker setups
  • Potential applications in virtual reality and augmented reality experiences

AI in audio compression

  • Machine learning algorithms being developed to improve compression efficiency
  • Neural network-based codecs show promise in achieving better quality at lower bitrates
  • AI-powered upscaling techniques aim to enhance low-quality audio streams
  • Ethical considerations arise regarding the use of AI in content creation and manipulation
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.
Glossary
Glossary