Answered step by step
Verified Expert Solution
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 Noisewav
can be downloaded from Canvas.
Note: Some builtin sound cards in laptopsPCs 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 seconds worth of data with
a sampling frequency of samples per second, bits and 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: DSPwav
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started