312 Assignment Task 1
312 Assignment Task 1
Objective:
This assignment aims to give you an experience with hands-on audio signal processing, Fourier
analysis, and cross-correlation techniques to differentiate between distinct words based on their
frequency characteristics.
You can use any internet sources, tools, resources etc to complete the project. You will be eligible
for bonus marking if you can detect all 9 Bangla digits (check the rubrics at the bottom).
Task Overview:
Record a short audio clip containing two distinct words: "chaar" and "tiin". Analyze the audio signals
in MATLAB to observe their frequency characteristics and differentiate between the words based on
the following methods:
1. Fourier Analysis to extract distinctive frequency components (Fourier coefficient bins as we
have done in class).
2. Cross-Correlation to detect the characteristic vowel sounds "aa" and "ii" within the words.
Steps to follow:
1. Audio Recording
1. Record three audio clips (in MP3 format) where you and your family members distinctly
pronounce the two words "chaar" and "tiin". Ensure the recording is clear and free from
background noise.
2. Save the audio file with an appropriate name in the same folder as your .m file.
2. Preprocessing the Audio
1. Import the audio file into MATLAB using audioread() or any function you want!
2. Extract the two words separately from the audio signal (you may use MATLAB's audio
visualization tools to identify time intervals for each word, by plotting or toolboxes, this is
NOT necessary for the grading).
3. You can also normalize the signal for consistency if you want.
3. Fourier Analysis
1. Apply the Fourier Transform to the signal of each word using the Fast Fourier Transform
(FFT) in MATLAB as done in the class. You can also use the manual method (as we have done
with square wave signal) instead of FFT. Any method will work.
2. Plot the frequency spectrum of both words.
3. Identify the distinctive frequencies corresponding to the vowel sounds "aa" in "chaar" and
"ii" in "tiin".
4. Discuss in your brief report how the observed frequencies differ and how they can be used
to distinguish between the two words.
4. Cross-Correlation Analysis
1. Record two more audios with "aa" and "ii".
2. Perform cross-correlation using MATLAB's xcorr() function to compare:
o The "aa" segment against the words.
o The "ii" segment against the words.
3. Identify peaks in the correlation values and use them to determine which word is being
analyzed.
4. Explain your results, highlighting the higher correlation values observed.
5. Reporting Results
Document following:
o Fourier spectra of each word.
o Key frequencies associated with the vowels "aa" and "ii" (Such as which hertz).
o Cross-correlation plots showing the detected correlations.
Grading Rubrics:
You can use only one method (either Fourier or Cross-Correlation) to do this assignment. If you do
only one, you will be graded 60% on that method instead of 30% and 30%. If you can differentiate
between all 9 Bangla digits, you will be graded the bonus 5%.
Criteria Weight
Audio Recording 10%
Fourier Analysis 30%
Cross-Correlation Analysis 30%
Coding Quality 5%
Report 20%
For all 9 digits 5%