Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you write the matlab code for the following task. In this task, you will collect an audio signal of your own voice. You will

Can you write the matlab code for the following task.
In this task, you will collect an audio signal of your own voice. You will then use this signal as
your data to analyse it in the time and frequency domains throughout all lab sessions.
In order to make the signal more realistic, you will record your voice in a noisy environment.
To that end, we have provided you with an audio file that you have to play in the background
using another device (for example your mobile phone). The Background noise file Noise.wav
can be downloaded from Canvas.
Note: Some built-in sound cards in laptops/PCs may not allow you to record your voice and
play audio at the same time. Hence, it is safer to use another device to play the background
noise while recording your voice.
To ensure the given noise is present in the background throughout the recording, you can try
the following:
Start by setting the volume of the given sound to a moderate level before beginning the
recording.
Start the recording and speak as you normally would while monitoring the audio levels
to ensure that your voice is audible and the background noise is not overpowering.
If the volume of the background noise is too low, increase it until it is audible but not
overwhelming.
If the volume of your voice is too low or the background noise is too high, adjust the
levels accordingly.
Repeat this process until you achieve the desired balance of background noise and voice.
In this part, you will need to use MATLABs audiorecorder and audiowrite commands.
Check the MATLAB documentation. There are plenty of examples of how to use
these commands.
For the purpose of this task, you may need to record up to ten (10) seconds worth of data with
3
a sampling frequency of 48000 samples per second, 8 bits and 2 channels. Each group needs
to collect one audio signal by saying the following phrase.
Phrase: If you can hear this, you are already experiencing Digital Signal Processing magic.
This is ..
File Name: DSP-.wav
Note: You only need to collect one audio signal per group.
Note: Once you have finished recording your voice using the audiorecorder, use the
audioplayer or sound command in the CommandWindow to play back the recording and
examine its quality. Remember to specify the correct sampling frequency, as it may differ from
the default used by the audiorecorder function. To further verify that the recording is
functional, open the audio file in a separate media player (outside of MATLAB) and play it.
Once you are satisfied with the recording, save your file properly and make sure to keep this
file for the next tasks.
Remember that you will be using the same audio file throughout all lab
sessions.

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

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

2. Write two or three of your greatest weaknesses.

Answered: 1 week ago

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago