Audio Signal Processing
Audio Signal Processing
0|Page
Table of Contents
Objectives ............................................................................................. 2
Introduction ......................................................................................... 3
Methodology ......................................................................................... 4
Results & Discussion ...........................................................................5
References ............................................................................................ 6
1|Page
The Objectives:
The objective of the provided MATLAB code is to record audio input using the
specified parameters, analyze the recorded signal in both the time and frequency
domains, and save the recorded audio as a WAV file.
Objectives:
1. Setting up the audio recorder
2. Recording audio
3. Time domain analysis
4. Frequency domain analysis
5. Saving the recorded audio
2|Page
Introduction:
3|Page
Methodology:
3. Recording audio:
The code starts the audio recording using the recordblocking function. The duration of the
recording is set to Duration, which is specified as 10 seconds in the code. During the
recording, the code displays a message indicating that the recording has started and waits
until the recording is complete. After the recording is finished, another message is
displayed to indicate that the recording has stopped.
4|Page
Results & Discussion:
The MATLAB code you provided performs audio recording, time domain analysis, frequency domain
analysis, and saving of the recorded audio. Here is a discussion of the results you can expect from
running this code:
1. Time Domain Plot:
The code generates a time domain plot of the recorded signal. The x-axis represents time in
seconds, and the y-axis represents the amplitude of the signal. This plot allows you to visualize
how the signal changes over time. You can observe patterns, variations, or any other
characteristics of the recorded audio waveform.
The code performs a Fast Fourier Transform (FFT) on the recorded signal to convert it from the
time domain to the frequency domain. The resulting frequency domain plot shows the distribution
of frequencies present in the recorded signal. The x-axis represents frequency in hertz, and the y-
axis represents the amplitude of each frequency component. This plot helps you analyze the
different frequencies and their magnitudes in the recorded audio.
The code saves the recorded audio as a WAV file named "myvoice.wav." The saved audio file
can be used for further analysis, processing, or playback outside of the MATLAB environment.
5|Page
References:
https://www.youtube.com/watch?v=B9cSAmrgz4s&t=767s
6|Page