I have a school project to be able to move a wheelchair according to user instruction. I am currently starting my project by using MATLAB and I have acquire several data for the training purpose. I am stuck at applying the butterworth filter to the signal, here is a sample of my training data $\tt go10.wav$. And here is my code:
[x,Fs] = audioread('go10.wav'); % to read the data plot(x) ; % plot the data before aprplying the filter n = 3; % the number of order beginFreq = 800 / (Fs/2); endFreq = 2000 / (Fs/2); [b,a] = butter(n, [beginFreq, endFreq], 'bandpass'); y = filter(b, a, x); figure; plot(y) ; % plot the data after applying the filter p = audioplayer(y,Fs); play(p) ; % play the record after applying the filter
Here the plotting result,
So my question is,
Did I do it right? about the begin and end frequency? and is my
And what can you tell me about this butterworth filter? I know that it's trying to focus on the human voice, but what exactly it does?