Skip to main content Accessibility help
×
Hostname: page-component-68945f75b7-lndnj Total loading time: 0 Render date: 2024-09-02T23:10:26.154Z Has data issue: false hasContentIssue false

2 - Basic audio processing

Published online by Cambridge University Press:  28 January 2010

Ian McLoughlin
Affiliation:
Nanyang Technological University, Singapore
Get access

Summary

Audio is normal and best handled by Matlab, when stored as a vector of samples, with each individual value being a double-precision floating point number. A sampled sound can be completely specified by the sequence of these numbers plus one other item of information: the sample rate. In general, the majority of digital audio systems differ from this in only one major respect, and that is they tend to store the sequence of samples as fixed-point numbers instead. This can be a complicating factor for those other systems, but an advantage to Matlab users who have two less considerations to be concerned with when processing audio: namely overflow and underflow.

Any operation that Matlab can perform on a vector can, in theory, be performed on stored audio. The audio vector can be loaded and saved in the same way as any other Matlab variable, processed, added, plotted, and so on. However there are of course some special considerations when dealing with audio that need to be discussed within this chapter, as a foundation for the processing and analysis discussed in the later chapters.

This chapter begins with an overview of audio input and output in Matlab, including recording and playback, before considering scaling issues, basic processing methods, then aspects of continuous analysis and processing. A section on visualisation covers the main time- and frequency-domain plotting techniques. Finally, methods of generating sounds and noise are given.

Handling audio in Matlab

Given a high enough sample rate, the double precision vector has sufficient resolution for almost any type of processing that may need to be performed – meaning that one can usually safely ignore quantisation issues when in the Matlab environment.

Type
Chapter
Information
Applied Speech and Audio Processing
With Matlab Examples
, pp. 7 - 37
Publisher: Cambridge University Press
Print publication year: 2009

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Basic audio processing
  • Ian McLoughlin, Nanyang Technological University, Singapore
  • Book: Applied Speech and Audio Processing
  • Online publication: 28 January 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511609640.003
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Basic audio processing
  • Ian McLoughlin, Nanyang Technological University, Singapore
  • Book: Applied Speech and Audio Processing
  • Online publication: 28 January 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511609640.003
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Basic audio processing
  • Ian McLoughlin, Nanyang Technological University, Singapore
  • Book: Applied Speech and Audio Processing
  • Online publication: 28 January 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511609640.003
Available formats
×