Week 6 – Digital Sound. Sound – Digital Audio Waveform –Digital sampling of electrical signal –Analogue to digital conversion –Digital data stores the.

Slides:



Advertisements
Similar presentations
Multimedia: Digitised Sound Data Section 3. Sound in Multimedia Types: Voice Overs Special Effects Musical Backdrops Sound can make multimedia presentations.
Advertisements

Digital Audio Teppo Räisänen LIIKE/OAMK. General Information Auditive information is transmitted by vibrations of air molecules The speed of sound waves.
Multimedia Authoring1 Introduction to Garageband Garageband is both a: MIDI sequencer Digital audio recorder Garageband: Real Instruments Tracks displayed.
Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets.
A stereo audio file 1. Audio Channels Number of audio channels determines number of waveforms in a recording Two relevant types of recording Stereo recording.
CNIT 132 – Week 9 Multimedia. Working with Multimedia Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each.
Sound in multimedia How many of you like the use of audio in The Universal Machine? What about The Universal Computer? Why or why not? Does your preference.
Sound can make multimedia presentations dynamic and interesting.
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
2 Information Processing
1. Digitization of Sound What is Sound? Sound is a wave phenomenon like light, but is macroscopic and involves molecules of air being compressed and expanded.
1 Multimedia on the Web: Issues of Bandwidth Bandwidth is a measure of the amount of data that can be sent through a communication pipeline each second.
4.2 Multimedia Elements Audio 1. Learning Outcomes: At the end of the lesson, students should be: a) describe the purpose of using audio in multimedia.
Dale & Lewis Chapter 3 Data Representation Analog and digital information The real world is continuous and finite, data on computers are finite  need.
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
Audio 1 Subject:T0934 / Multimedia Programming Foundation Session:8 Tahun:2009 Versi:1/0.
I Power Higher Computing Multimedia technology Audio.
 Multimedia is everything you can hear or see: texts, books, pictures, music, sounds, CDs, videos, DVDs, Records, Films, and more.  Multimedia comes.
Comp 1001: IT & Architecture - Joe Carthy 1 Review Floating point numbers are represented in scientific notation In binary: ± m x 2 exp There are different.
Digital Representation of Audio Information Kevin D. Donohue Electrical Engineering University of Kentucky.
1 Digital Audio Compression. 2 Formats  There are many different formats for storing and communicating digital audio:  CD audio  Wav  Aiff  Au 
Audio Basic Concepts. Audio in Multimedia Digital Audio: Sound that has been captured or created electronically by a computer In a multimedia production,
Image and Sound Editing Raed S. Rasheed Sound What is sound? How is sound recorded? How is sound recorded digitally ? How does audio get digitized.
Audiovisual digital documents Adolf Knoll National Library of the Czech Republic
Multimedia communications EG-371Dr Matt Roach Multimedia Communications EG 371 and EG 348 Dr Matthew Roach Lecture 2 Digital.
Carnegie Mellon. Carnegie Mellon Sound Carnegie Mellon Sound Sampling Basics Common Sampling Rates 8KHz (Phone) or kHz (Phone, NeXT) kHz.
MPEG-3 For Audio Presented by: Chun Lui Sunjeev Sikand.
MPEG Audio Compression by V. Loumos. Introduction Motion Picture Experts Group (MPEG) International Standards Organization (ISO) First High Fidelity Audio.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
AUDIO VIDEO FLASH DIGITAL MEDIA: COMMUNICATION AND DESIGN
EE2F1 Speech & Audio Technology Sept. 26, 2002 SLIDE 1 THE UNIVERSITY OF BIRMINGHAM ELECTRONIC, ELECTRICAL & COMPUTER ENGINEERING Digital Systems & Vision.
IT-Academic Technology Services Using Microsoft PowerPoint 2010 for Digital Storytelling.
5. Multimedia Data. 2 Multimedia Data Representation  Digital Audio  Sampling/Digitisation  Compression (Details of Compression algorithms – following.
Digital Audio Multimedia Systems (Module 1 Lesson 1)
HYPERTEXT MARKUP LANGUAGE (HTML)
Representation of Data in Computer Systems
 Continuous sequence of vibrations of air  (Why no sound in space? Contrary to Star Wars etc.)  Abstraction of an audio wave:  Ear translates vibrations.
Introduction to Interactive Media 10: Audio in Interactive Digital Media.
By Frankie, K. F. Yip Chapter 6 Speech. By Frankie, K. F. YipLecture 6 - Sound2 Sound Waves.
COMP Representing Sound in a ComputerSound Course book - pages
1 Week 10: Audio Recording. 2 Overview  What is sound?  What does analogue mean?  Analogue-to-Digital conversion  Key terms in digital audio  Compression.
1 Lecture 12: Multimedia Not in Web 101 Text  Important Multimedia Issues  Audio  Movies and Video  Multimedia and HTML Documents.
Allison Schein.  Adobe Audition (  Recommended program, metadata creation and manipulation is easy and complete.
CHAPTER SEVEN SOUND. CHAPTER HIGHLIGHTS Nature of sound – Sine waves, amplitude, frequency Traditional sound reproduction Digital sound – Sampled – Synthesized.
Tutorial 7 Working with Multimedia. XP Objectives Explore various multimedia applications on the Web Learn about sound file formats and properties Embed.
XP Tutorial 8New Perspectives on HTML and XHTML, Comprehensive 1 Using Multimedia on the Web Enhancing a Web Site with Sound, Video, and Applets Tutorial.
AUDIO MEDIA 1 Created } “Borrowed” } Microphone MIDI keyboard CD’s & flash drives Internet Audio Sources 2.
Sound or Audio, whichever you prefer –MIDI Files.midi or.mid (Musical Instrument Digital Interface) use for instrumental music. –This format is supported.
Overview of Multimedia A multimedia presentation might contain: –Text –Animation –Digital Sound Effects –Voices –Video Clips –Photographic Stills –Music.
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
Tutorial 7 Working with Multimedia. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Explore various multimedia applications.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 9 This presentation © 2004, MacAvon Media Productions Sound.
Digital Sound Actual representation of sound Stored in form of thousands of individual numbers (called samples) Not device dependent Stored in bits.
1 Audio Compression. 2 Digital Audio  Human auditory system is much more sensitive to quality degradation then is the human visual system  redundancy.
Digital Recording. Digital recording is different from analog in that it doesn’t operate in a continuous way; it breaks a continuously varying waveform.
LECTURE 07 RAZIA NISAR NOORANI Digital Video. Basic Digital Video Concepts CS118 – Web Engineering 2 Movie length Frame size Frame rate Quality Color.
Sound in Multimedia Psychology of sound what do you use it for? what techniques for its communication exist? Science of sound why does it exist? how it.
Digital Audio III. Sound compression (I) Compression of sound data requires different techniques from those for graphical data Requirements are less stringent.
Week 12 Lecture 1 Audio and Video File Formats. Audio on the web Can be linked to and downloaded like any other file Traditional audio files are quite.
Music files in PowerPoint 2007? By Ashley Wiger.
Audio Streaming © Nanda Ganesan, Ph.D.. Audio File Features Audio file is a record of captured sound that can be played back –The WAV File is an example.
By :- Ishank Ranjan Akash Gupta. Audio & Audio File Formats Audio is an electrical or other representation of sound. An audio file format is a file format.
AUDIO Guruh Fajar Shidik, M.Cs.
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Chapter 4 Fundamentals of Digital Audio
Sound / Audio.
Multimedia: Digitised Sound Data
Multimedia: making it Work
Digital Video Faraz Khan.
Digital Audio Application of Digital Audio - Selected Examples
Presentation transcript:

Week 6 – Digital Sound

Sound – Digital Audio Waveform –Digital sampling of electrical signal –Analogue to digital conversion –Digital data stores the amplitude of the note –Pitch is frequency of the sound - not specifically digitised –Sound recreated (playback) through sound card and speakers –Digital to analogue conversion

Digital Audio – Sampling Sample rate is how often the incoming sound wave is measured Most common sampling rates are multiples: – kHz (voice only - telephone quality) –22.05 kHz (Most frequently used rate) –44.1 kHz (CD quality — Potentially) Sampling rates are very important to the quality of the sound Sound can be sampled as Monaural or Stereo

Sampling Considerations Human hearing range not more than 20Hz to 20kHz –often only 40Hz to 15kHz in later life Highest frequencies cannot be recorded at 11kHz sampling rate Speech needs 4kHz to 8kHz sampling rate Music needs 22kHz to 44kHz sampling Too high a volume may incur clipping

Digital Audio – Sampling Size The sample size is how much information is recorded at each sampling - also known as Bit Depth The bit depth also influences sound quality An 8 bit sample = 256 values A 16 bit sample can store 65,536 values — A huge difference! 16 bit sampling gives a cleaner waveform with fewer steps

Quantisation & Clipping Quantisation is an integral part of the digitising process –It is only a problem when the variations between the discreet values recordable at a particular bit depth are too large to register the small changes in the sound –Small variations in the sound may be too small to record as different sample values Clipping occurs when the largest values recordable are less than the highest volumes recorded

Digital Audio – The Trade-off Mono, 8 bit, 11 kHz audio –1 byte  11,000  1 second = 11 KB per second –11 KB/s  60 second = 660 KB per minute How much for Stereo and/or 16 bit and/or 44 kHz audio?

Stereo and Mono Mono, 16 bit, 22 kHz audio –2 bytes  22,000  1 second = 44 KB per second –44 KB/s  60 second = 2.64 MB per minute Stereo, 16 bit, 44 kHz audio –2 bytes  44,100  1 second  2 = 176 KB per second –176 KB/s  60 second = MB per minute

Digital Audio – Compression Many flavours –ADPCM – 4:1 MicroSoft, MicroSoft IMA, Creative –CCITT – 2:1 A-law and  -law –Audio MPEG – 20:1

Advantages and Disadvantages Of Compression Advantages –Smaller disk storage requirements Disadvantages –Must be decompressed before use Can take up to twice sound duration –Supported by good sound cards and specialist sound editing packages

Digital Audio – File Formats Apple –Audio Interchange File Format – AIFF.AIF or.AIFF or.AIFC –8-bit, mono –8-bit, stereo –16-bit, mono –16-bit, stereo –32-bit, mono –32-bit, stereo

Apples sound formats.AIF files support a range of sampling rates 8kHz, 11kHz, 22kHz, 44kHz and 48kHz compression of between 2 to 1 and 4 to 1 is available using suitable codecs but causes reduction in sound quality.AIFC is AIFF with IMA compression –Sound.SND

Other platforms SUN –Sun Audio - (NeXT Audio).AU.AU files support only 8kHz, 11kHz and 44kHz sampling rates 8-bit, mono 8-bit, stereo u-law, mono u-law, stereo A-law, mono A-law, stereo Java/Web, mono

Windows Wave and PCM Adaptive Delta Pulse Code Modulation – ADPCM CCITT –All WAV (sometimes.PCM for PCM files) µ-law, mono µ-law, stereo A-law, mono A-law, stereo IMA ADPCM 8kHz, 4-bit, mono IMA ADPCM 8kHz, 4-bit, stereo IMA ADPCM 8kHz, 8-bit, mono IMA ADPCM 8kHz, 8-bit, stereo IMA ADPCM 8kHz, 16-bit, mono IMA ADPCM 8kHz, 16-bit, stereo

Windows sound formats continued.WAV files support a range of sampling rates 8kHz, 11kHz, 22kHz, 44kHz and 48kHz also a version with Microsoft’s own compression algorithm Can exceed CD quality Higher quality – Greater storage penalty

Windows Media Audio A streaming audio format Designed for network transfer and play- before-download replay Available for UNIX, Mac and Windows –Formats:.asf,.wma,.wmv –wide range of quality options

Real Audio A streaming audio format Designed for network transfer and play- before-download replay Available for UNIX, Mac and Windows –Formats:.RA also as part of.RM,.RAM –wide range of quality options

Other Streaming Formats In addition there are other streaming formats including: –LiveAudio -.LA –LiquidAudio -.LQT –Streamworks -.MPA –Shockwave Audio -.SWA –The players for many of these can also play non-streaming audio Most streaming formats deliver mono sound at 8kHz or less

MP3 MPEG Audio Layer-3 In 1987, the IIS started to work on perceptual audio coding in the framework of the EUREKA project EU147, Digital Audio Broadcasting (DAB). In a joint co-operation with the University of Erlangen (Prof. Dieter Seitzer), the IIS finally devised a very powerful algorithm that is standardised as ISO-MPEG Audio Layer-3 (IS and IS ) –MPEG2

MP3 cont 2 By using MPEG audio coding, you may shrink down the original sound data from a CD by a factor of 12, without losing sound quality. Without data reduction, digital audio signals typically consist of 16 bit samples recorded at a sampling rate more than twice the actual audio bandwidth (e.g kHz for Compact Disks). So you end up with more than Mb to represent just one second of stereo music in CD quality.

MP3 Cont 3 Factors of 24 and even more still maintain a sound quality that is significantly better than what you get by just reducing the sampling rate and the resolution of your samples. Basically, this is realised by perceptual coding techniques addressing the perception of sound waves by the human ear.

Typical Data Reduction Using MPEG Audio –still maintaining the original CD sound quality. 1:4 by Layer 1 (corresponds with 384 kbps for a stereo signal) 1:6...1: 8 by Layer 2 (corresponds with kbps for a stereo signal) 1: :12 by Layer 3 (corresponds with kbps for a stereo signal)

MP3 cont 4 By exploiting stereo effects and by limiting the audio bandwidth, the coding schemes may achieve an acceptable sound quality at even lower bit rates. MPEG Layer-3 is the most powerful member of the MPEG audio coding family. For a given sound quality level, it requires the lowest bit rate - or for a given bit rate, it achieves the highest sound quality.

Typical Performance Data Of MPEG Layer-3 Sound quality BandwidthMode Bit rate Reduction ratio telephone sound 2.5 kHz mono 8 kbps * 96:1 better than shortwave 4.5 kHz mono 16 kbps 48:1 better than AM radio 7.5 kHz mono 32 kbps 24:1 similar to FM radio 11 kHz stereo kbps :1 near-CD 15 kHz stereo 96 kbps 16:1 CD >15 kHz stereo kbps :1 –* Fraunhofer uses a non-ISO extension of MPEG Layer-3 for enhanced performance (MPEG 2.5)

MP3 Sound Quality In all international listening tests, MPEG Layer-3 impressively proved its superior performance, maintaining the original sound quality at a data reduction of 1:12 (around 64 kbit/s per audio channel). If applications may tolerate a limited bandwidth of around 10 kHz, a reasonable sound quality for stereo signals can be achieved even at a reduction of 1:24.

MP3 sound quality cont 2 For the use of low bit-rate audio coding schemes in broadcast applications at bit rates of 60 kbit/s per audio channel, the ITU-R recommends MPEG Layer-3. (ITU- R doc. BS.1115) For more information take a look at our Layer-3 FAQ at However, NN and IE do not offer support for MP3 yet

Digital Audio Creation & Modification –Apple – Passport’s Alchemy –Windows’ Sound Recorder –Sound Card or MM package supplied utilities – Creative’s Wave Studio –MicroSoft’s Wave Edit

Digital Audio playback Playback –Any editor –Windows’ Media Player –Most MM authoring packages –Many browser plug-ins

Digital Audio – Considerations Can record speech Can record complex noises Can exceed CD quality Higher quality – Greater storage penalty Easily manipulated Difficult to change inherent sound

Sound with Animation and Video Wave recording may be linked to animations Wave recordings may be incorporated into video clips Wave recordings may be extracted from video clips

Rules of Thumb: Digital Audio Record at the highest practical bit depth and sampling frequency –Reducing quality after recording gives better results than recording at lower quality Use the lowest resolution that gives the required results –“CD quality” stereo is 16 bit, 44 kHz –i.e., 16  44.1  2 = 176 KB per second ! –Not all sound cards can handle the fidelity properly Test your content at various sampling rates

Audio for MM and Web Flash can import: –SWA, MP3, AIFF, WAVE, AU Optimising audio for the web –keep it short –mono rather than stereo –sample at 8-bit rather than 16-bit –sample at 8kHz/11kHz for noises or speech and 22kHz for music

Adding Non-Streaming Audio to a Web Page There are four ways to do this: –Use a normal link: Play the music. –Use a normal link: Play the music. the result may be the sound just plays when the page is opened a plug-in player may open as a Web page a helper application may open in a separate window

Basic embedding –Use a BGSOUND in IE: –Use a BGSOUND in IE: the result will be the sound plays when the page is opened –Use the OBJECT in IE tag to use an Active-X control to play the sound, e.g.: –Use the OBJECT in IE tag to use an Active-X control to play the sound, e.g.: the result will be an Active-X control opens at the specified size in-line in the Web page

Basic embedding 2 –Use the EMBED tag to use a plug-in to play the sound, e.g.: –Use the EMBED tag to use a plug-in to play the sound, e.g.: the result will be a plug-in player opens at the specified size in-line in the Web page

Adding Streaming Audio to a Web Page Use a normal link: Play the music. Use a normal link: Play the music. –the plug-in player opens –however, the file linked to may be a reference file rather than the actual sound file the reference file contains details of the actual audio file Refer to the specific streaming audio documentation for details

Scripts The important features of the Script depend on the type of sound For a recorded sound: –The activities that produce the required noise –Background noises (if desired) –The stereo effects required –The volume required –The duration

For music: The Form, Melody, Harmony and Tempo N.B. These are all terms used in music criticism – if you are unfamiliar with them you may need a third party who does to undertake your liaison with the musician – a music producer for example Major to Minor key changes and their exact timing to synchronise with other on-screen events The moods to be matched and their timings The sound card standard to be used for playback