Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Many sound files are stored in wav format. For information about this particular format, see http.//en.wikipedia.org/wiki/WAV. Other formats are available, such as mp3: we'll focus

image text in transcribed
Many sound files are stored in wav format. For information about this particular format, see http.//en.wikipedia.org/wiki/WAV. Other formats are available, such as mp3: we'll focus on wav in this lab. The MATLAB command audioread is the one to use to read data in wav files into MATLAB data arrays. For example: xx = audioread('mysignal.wav'): will load the data in the file mysignal.wav into the array xx. Another command length (xx) will tell you how many values have been read into xx. In many applications, you may need to know what is called the sampling rate, which is the number of sample values per second at which the data was acquired into the digital file. These parameters can be retrieved as part of the audioread result: [xx, fs] = audioread('mysignal.wav'): where xx is the data array and fs is the sampling rate in the file mysignal.wav. Use help audioread to find out other details of the command. Task to complete. For this exercise, you need to access some wav files. A file called ece2026lab01.wav can be downloaded from t-square for your use. Learn to use the audioread command to read the data into an array, say xx. You can find out how long the signal is in seconds by reading the length of the array via length (xx) which gives you the total number of samples and then divide it by fs, the sampling rate in samples per second. Then, plot the sound wave xx, from t = 0.2 to 0.42. You need to know how to translate time into the index of the array: an example has already been shown in Section 3.2. Show the plotted result to the instructor

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases A Tour

Authors: Shashi Shekhar, Sanjay Chawla

1st Edition

0130174807, 978-0130174802

More Books

Students also viewed these Databases questions

Question

Summarise the scope of HRM and the key HRM functions

Answered: 1 week ago