Lecture 2 Signal Processing. MP3 Player

Similar documents
Analog Representations of Sound

Computer Networks and Internets, 5e Chapter 6 Information Sources and Signals. Introduction

Broadband Networks. Prof. Dr. Abhay Karandikar. Electrical Engineering Department. Indian Institute of Technology, Bombay. Lecture - 29.

Introduction and Comparison of Common Videoconferencing Audio Protocols I. Digital Audio Principles

Preservation Handbook

Voice---is analog in character and moves in the form of waves. 3-important wave-characteristics:

Information, Entropy, and Coding

Digital Audio and Video Data

Introduction to Digital Audio

Basics of Digital Recording

Digital Transmission of Analog Data: PCM and Delta Modulation

Analog-to-Digital Voice Encoding

Lecture 2 Outline. EE 179, Lecture 2, Handout #3. Information representation. Communication system block diagrams. Analog versus digital systems

Sampling Theorem Notes. Recall: That a time sampled signal is like taking a snap shot or picture of signal periodically.

Audio Coding, Psycho- Accoustic model and MP3

1. (Ungraded) A noiseless 2-kHz channel is sampled every 5 ms. What is the maximum data rate?

For Articulation Purpose Only

MP3 Player CSEE 4840 SPRING 2010 PROJECT DESIGN.

PRIMER ON PC AUDIO. Introduction to PC-Based Audio

encoding compression encryption

ARTICLE. Sound in surveillance Adding audio to your IP video solution

EUROPEAN COMPUTER DRIVING LICENCE. Multimedia Audio Editing. Syllabus

Sampling and Interpolation. Yao Wang Polytechnic University, Brooklyn, NY11201

Digital Audio. Fig. 1 Binary numbers

Digital Modulation. David Tipper. Department of Information Science and Telecommunications University of Pittsburgh. Typical Communication System

Objectives. Lecture 4. How do computers communicate? How do computers communicate? Local asynchronous communication. How do computers communicate?

TCOM 370 NOTES 99-6 VOICE DIGITIZATION AND VOICE/DATA INTEGRATION

Boost Your Skills with On-Site Courses Tailored to Your Needs

How To Understand The Nyquist Sampling Theorem

Department of Electrical and Computer Engineering Ben-Gurion University of the Negev. LAB 1 - Introduction to USRP

CHAPTER 3: DIGITAL IMAGING IN DIAGNOSTIC RADIOLOGY. 3.1 Basic Concepts of Digital Imaging

SGN-1158 Introduction to Signal Processing Test. Solutions

CDMA TECHNOLOGY. Brief Working of CDMA

Introduction to Packet Voice Technologies and VoIP

A Comparison of the ATRAC and MPEG-1 Layer 3 Audio Compression Algorithms Christopher Hoult, 18/11/2002 University of Southampton

Audio Editing. Using Audacity Matthew P. Fritz, DMA Associate Professor of Music Elizabethtown College

AUDIO CODING: BASICS AND STATE OF THE ART

For full instructions on how to install Simsound please see the Technical Guide at the end of this document.

PCM Encoding and Decoding:

DOLBY SR-D DIGITAL. by JOHN F ALLEN

Data Storage 3.1. Foundations of Computer Science Cengage Learning

QUICK SETUP GUIDE SETUP FOR ICONNEX SOUNDCARD AND AUDACITY RECORDING SOFTWARE

UNIVERSITY OF CALICUT

Lab 5 Getting started with analog-digital conversion

MPEG Unified Speech and Audio Coding Enabling Efficient Coding of both Speech and Music

How To Encode Data From A Signal To A Signal (Wired) To A Bitcode (Wired Or Coaxial)

Analog/Digital Conversion. Analog Signals. Digital Signals. Analog vs. Digital. Interfacing a microprocessor-based system to the real world.

Video-Conferencing System

T = 1 f. Phase. Measure of relative position in time within a single period of a signal For a periodic signal f(t), phase is fractional part t p

Tutorial about the VQR (Voice Quality Restoration) technology

Digital Audio Compression: Why, What, and How

Chapter 6 Bandwidth Utilization: Multiplexing and Spreading 6.1

Data Storage. Chapter 3. Objectives. 3-1 Data Types. Data Inside the Computer. After studying this chapter, students should be able to:

Classes of multimedia Applications

Introduction to image coding

Lecture 3: Signaling and Clock Recovery. CSE 123: Computer Networks Stefan Savage

Jitter in (Digital) Audio

Ideal CD player and FM tuner for use with other 301 Reference Series components also supports RDS and USB memory playback

Data Transmission. Data Communications Model. CSE 3461 / 5461: Computer Networking & Internet Technologies. Presentation B

DAC Digital To Analog Converter

Performance of Various Codecs Related to Jitter Buffer Variation in VoIP Using SIP

MODULATION Systems (part 1)

DIGITAL MUSIC DAY 1 WHAT IS SOUND? ANALOG AND DIGITAL EARLY RECORDING WAX FOR YOUR EARS ROUND BUT FLAT WIRE AND TAPE PURE SOUND

STUDY OF MUTUAL INFORMATION IN PERCEPTUAL CODING WITH APPLICATION FOR LOW BIT-RATE COMPRESSION

Higher National Unit Specification. General information for centres. Transmission of Measurement Signals. Unit code: DX4T 35

Direct Digital Amplification (DDX ) The Evolution of Digital Amplification

Trigonometric functions and sound

bel canto The Computer as High Quality Audio Source A Primer

COMPACT DISK STANDARDS & SPECIFICATIONS

Image Compression through DCT and Huffman Coding Technique

Digitizing Sound Files

INTRODUCTION TO COMMUNICATION SYSTEMS AND TRANSMISSION MEDIA

Physical Layer, Part 2 Digital Transmissions and Multiplexing

EECC694 - Shaaban. Transmission Channel

The Theory Behind Mp3

Public Switched Telephone System

Video compression: Performance of available codec software

Satellite Telemetry, Tracking and Control Subsystems

Digital Signal Measurement Guidelines

Android based Alcohol detection system using Bluetooth technology

(2) (3) (4) (5) 3 J. M. Whittaker, Interpolatory Function Theory, Cambridge Tracts

Networked AV Systems Pretest

2. What is the maximum value of each octet in an IP address? A. 128 B. 255 C. 256 D. None of the above

An Optimised Software Solution for an ARM Powered TM MP3 Decoder. By Barney Wragg and Paul Carpenter

PERFORMANCE ANALYSIS OF VOIP TRAFFIC OVER INTEGRATING WIRELESS LAN AND WAN USING DIFFERENT CODECS

Analog vs. Digital Transmission

Computer Logic (2.2.3)

CARLETON UNIVERSITY Department of Systems and Computer Engineering. SYSC4700 Telecommunications Engineering Winter Term Exam 13 February 2014

Network Traffic #5. Traffic Characterization

6 Output With 1 kω in Series Between the Output and Analyzer Output With RC Low-Pass Filter (1 kω and 4.7 nf) in Series Between the Output

Audio Only Broadcast through Flash Media Live Encoder On Windows

Video and Audio Codecs: How Morae Uses Them

Multiplexing. Multiplexing is the set of techniques that allows the simultaneous transmission of multiple signals across a single physical medium.

MUSC 1327 Audio Engineering I Syllabus Addendum McLennan Community College, Waco, TX

Simple Voice over IP (VoIP) Implementation

Figure 1: Relation between codec, data containers and compression algorithms.

Advanced Certification in Sound Engineering & Music Production

Today s topics. Digital Computers. More on binary. Binary Digits (Bits)

Transcription:

Lecture 2 Signal Processing ECE 197SA Systems Appreciation MP3 Player Stores and plays back audio Extremely widely used 350 million ipods sold through 2012 Over 280 million MP3 players sold annually Functionality integrated into many cell phones How can it play music? 2010-14 Tilman Wolf 2 1

Audio as Physical Phenomenon Vibrations of object generate sound Sound propagates as pressure wave Ear can sense pressure wave How can we convert audio into electrical signal? 2010-14 Tilman Wolf 3 Audio as Analog Signal Microphone translates waves into varying voltage Speaker converts electrical signal into pressure wave How can we record, store, and play back signal? 2010-14 Tilman Wolf 4 2

Audio Recording Need ECE system to perform signal processing ECE System: Audio recording, storage, playback 2010-14 Tilman Wolf 5 Analog Signal Recording Mechanical signal representation Magnetic signal representation Analog recording introduces a lot of noise 2010-14 Tilman Wolf 6 3

Digital Signal Recording Need process to represent analog signal in binary signal power time 01000101110110 How to do conversion? 2010-14 Tilman Wolf 7 Digital Signal Recording Need process to represent analog signal in binary signal power time 01000101110110 Steps 1. Measure signal ( sampling ) 2. Translate into binary ( quantization ) 3. Store or transmit 4. [Reconstruct signal ( excite filter )] 2010-14 Tilman Wolf 8 4

Sampling Measuring signal at discrete times Samples are representation of signal What are the tradeoffs for quality? 2010-14 Tilman Wolf 9 Sampling Rate Sampling rate determines quality of representation high sampling rate medium sampling rate low sampling rate Low-rate sampling fails to capture high frequencies Nyquist-Shannon sampling theorem If a function f(t) contains no frequencies higher than W hertz, it is completely determined by giving its ordinates at a series of points spaced 1/2 W seconds apart. Intuition: f(t) cannot change substantially in less than half cycle of highest frequency 2010-14 Tilman Wolf 10 5

Sampling Rate Nyquist frequency is half the sampling frequency No aliasing if bandwidth of signal is below Nyquist frequency What is a good sampling frequency for audio? signal power frequency How to represent sampled values digitally? 2010-14 Tilman Wolf 11 Sampling Rate Nyquist frequency is half the sampling frequency No aliasing if bandwidth of signal is below Nyquist frequency What is a good sampling frequency for audio? signal power Nyquist frequency sampling frequency frequency How to represent sampled values digitally? 2010-14 Tilman Wolf 12 6

Quantization Samples have continuous value No way to represent digitally with arbitrary precision Quantization assigns discrete value to each sample Analog-to-digital (A/D) converter n-bit digital output As you know from ENGIN112: n bits have 2 n possible values original sample quantized value 2010-14 Tilman Wolf 13 Quantization Quantization is lossy Coarser quantization levels provide less accuracy original sample quantized value 2010-14 Tilman Wolf 14 7

Digital Representation Digital representation Encode quantized values in binary Concatenate binary codes of samples Add meta-information (can be implied if standard is used) 011 010 001 000 101 110 111 001 000 101 011 011 010 010 010 101 101 101 110 110 110 110 001 001 000 000 000 encoded samples sample stream 101 001 000 110 101 010 011 101 110 000 010 110 110 001 000 000 101 010 011 001 audio file meta-information (sampling rate, coding, ) 101001000110101010011101110000010110110001000000101010011001 2010-14 Tilman Wolf 15 Playback Digital-to-analog (D/A) converter Generates voltage of sample value Voltage is held for duration of sample period Low-pass filter to smooth out signal Signal is amplified and sent to speaker 2010-14 Tilman Wolf 16 8

Aliasing Difference between original and reconstructed signal original reconstructed 2010-14 Tilman Wolf 17 Sampling and Quantization Tradeoffs Sampling rate and quantization levels impact quality low sampling rate, coarse quantization high sampling rate, coarse quantization low sampling rate, fine quantization high sampling rate, fine quantization 2010-14 Tilman Wolf 18 9

Parameters Configurations used in practice Telephony: pulse code modulation (PCM)» ITU-T standard G.711» Sampling: 8000 samples per second» Quantization: 8-bit samples Encoded from non-linear quantization of larger samples µ-law in U.S. (14-bit samples) A-law in Europe (13-bit samples)» Encoded signal: 64 kb/s (8kB/s) CD-quality audio: PCM» Sampling: 44,100 samples per second» Quantization: 16-bit samples» Encoded signal (stereo): 1.411 Mb/s (176.4kB/s) How can we reduce bandwidth/storage? 2010-14 Tilman Wolf 19 Compression Example for loss-less compression: Huffman coding Variable-length code Code length inversely related to symbol probability Huffman coding for our example 101001000110101010011101110000010110110001000000101010011001 2-bit symbol frequency:» 10 (37%), 01 (30%), 00 (23%), 11 (10%) New encoding» 10 0, 01 10, 11 110, 00 111 00101111000001011010110111111101001101111011111111100010010 10 37% 0 100% 01 30% 1 0 63% 1 33% Encoded sequence marginally better» Only 1 bit (2%) shorter» Better on sequences with more redundancies 11 10% 0 1 00 23% 2010-14 Tilman Wolf 20 10

MP3 Compression MPEG-1 Audio Layer 3 (MP3) Lossy compression Uses perceptual coding» Reduces precision of audio components less audible to humans Sound is analyzed in a short windows» Analysis in time domain and frequency domain Coding exploits masking effects» Simultaneous masking: loud sound masks soft sound» Temporal masking: Loud sound masks following soft sound» Etc. Reduces data rate considerably MP3 uses 128kb/s (16kB/s) for CD-quality audio Less than 1/10 of uncompressed CD Typical 5-minute song: 4.8MB 16GB MP3 player: more than 3,000 songs 2010-14 Tilman Wolf 21 Courses in ECE Curriculum ECE 313 Signals and Systems ECE 563 Introduction to Communications and Signal Processing ECE 565 Digital Signal Processing ECE 608 Signal Theory 2010-14 Tilman Wolf 22 11

Labs are available now See web site Lecture 3 Cell Phones Wireless communication Usual time, place Moodle quiz Upcoming 2010-14 Tilman Wolf 23 12