Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment will focus on the filtering of audio signals using FIR filters (specifically the audio file 'countdownfrom.way' available to download from Canvas). Audio

This assignment will focus on the filtering of audio signals using FIR filters (specifically the audio file Description: This room contains a speaker in the top right-hand corner of the room which produces sound for i. Manually work out (neatly typed) the number of samples your delays will correspond to and the weightings

This assignment will focus on the filtering of audio signals using FIR filters (specifically the audio file 'countdownfrom.way' available to download from Canvas). Audio signal processing uses many types of digital filters to create effects such as echoes (often using FIR filters) and reverberations (using IIR filters), or to remove unwanted artefacts in a signal (e.g. noise or channel effects). This assignment will be looking at how we can simulate a concert hall type effect on audio using an FIR filter. a) In Audio editing software packages often contain effects to allow you to simulate different recording environments. An example could be to simulate the audio being produced in a concert hall, auditorium or pipe by adding echoes to the audio or to simulate a padded room by filtering the audio to dampen the sound. In this task you are required to simulate the echo-ey room shown in figure 1: 1 T 1 1 Direct path (no delay, no attenuation) First echo (delay = Ta seconds, gain = G) Second echo (delay =T2 seconds, gain = G) Figure 1: An echo-y sound environment Description: This room contains a speaker in the top right-hand corner of the room which produces sound for the listener shown in the centre of the room. Our listener experiences three versions of the audio; The direct version coming straight from the speaker (blue line). There is no attenuation or delay with this audio (apart from the time it takes to get to the listener). . A first echo bouncing from the right-hand wall (red line) which is delayed by Ta seconds (relative to the direct path), the amplitude of this audio has also been attenuated by G of the direct audio's amplitude and, A second echo bouncing from the left-hand wall (green line) which is delayed by Ta seconds (relative to the direct path), the amplitude of this audio has also been attenuated by G of the direct audio's amplitude. The delays and attenuations will be based on the 5th number in your student number: Delays Attenuations Student Number 1 2 3 4 5 6 7 8 9 0 Tat= 0.15 Ta=0.2 Tal = 0.2 Tn=0.25 G=0.8 G=0.4 G = 0.7 G= 0.35 G = 0.7 Ta=0.25 Ta=0.3 Ta=0.3 Ta=0.35 Ta=0.35 Ta=0.4 Ta=0.35 Ta=0.45 Ta=0.3 T=0.5 G 0.15 Ta=0.25 G = 0.2 Ta=0.55 G=0.1 Ta = 0.2 G=0.2 Ta=0.6 G=0.1 G=0.9 Ta = 0.1 Tan = 0.2 G=0.45 Table 1: Delays and attenuations on sound paths G=0.25 G=0.6 G= 0.2 G=0.4 G = 0.1 G=0.3 G=0.2 G=0.2 For example if your student number was 3210987 your first path will be delayed by 0.2 sec and attenuated to 20% of the original amplitude, your second path will be delayed by 0.6 sec and attenuated to 10% of the original amplitude. i. Manually work out (neatly typed) the number of samples your delays will correspond to and the weightings (ax) for each part of the filter. ii. Manually work out (neatly typed) the difference equation, impulse response and transfer function for this filter. iii. Show the Direct Form I diagram for this filter (use a software package such as Microsoft Visio to show this neatly). you will iv. Now use MATLAB to import the speech file 'countdownfrom.wav' which need to download from Canvas. Using the filter coefficients and delays you manually calculated above, create the FIR filter and use either the conv () or filter () functions to filter the countdown from.wav' file. Listen to this new audio file; you should hear an echo effect occurring now. Discuss: 1. Explain in your report how this filter generates the echoes. What's happening? 2. Plot the time-domain waveform for your filtered and non-filtered waveform, identify where the two echo paths are showing in the signal?

Step by Step Solution

3.49 Rating (156 Votes )

There are 3 Steps involved in it

Step: 1

i Calculate the number of samples for the delays and the weightings for each part of the filter Given a sampling frequency of 441 kHz the following de... 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

Step: 3

blur-text-image

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

Intermediate Accounting

Authors: J. David Spiceland, James Sepe, Mark Nelson, Wayne Thomas

10th edition

1260481956, 1260310175, 978-1260481952

More Books

Students also viewed these Accounting questions