Thursday, January 1, 2009

posted by Phat'Hi at

ELEC ENG: Sound Identification Project.



Phew... I'm really proud I finished this in only 4 hours where it took the guys a whole day to the point they slept in university, even though my approach is quite not totally efficient and needs some editing to be perfect, but we can say that the code is 90% done. What am I talking about? I had this project to do in Engineering called sound identification where you have to save your voice and store it in the device and then gain access to the device using your voice again.


So basically, you record in yout voice and get the signal in time domain, transform it into frequency using fourier transform functino (fft) and get the absolute maximum of that frequency some couple of times after repeating the same method and then specifying a range for your absolute maximum.


The programe I made is again not efficient, because the frequency is dependant on how loud you get. but this problem is going to be fixed hopefully soon, all I need is specifying some ranges to prevent the user of being either too loud or too low.


Fs = 8000;

durata= input('Insert the duration of the recording (in seconds):');

micrecorder = audiorecorder(Fs,16,1);

disp('Now, speak into microphone...');

record(micrecorder,durata);

while (isrecording(micrecorder)==1)

disp('Recording...'); pause(0.5); end

disp('Recording stopped.');

y = getaudiodata(micrecorder, 'uint8');

w=fft(single(y));

z=max(abs(w));

if((z>2040570 && z<2050000))>

elseif ((z<2020570))>



Labels: ,

5 Comments:

Blogger Sara said...

Well done for completing it in 4 hours! Am so proud =P

PS: OMG MESSY CODE! Im gonna have to teach you coding etiquite lol

January 1, 2009 at 1:27 PM  
Blogger Phat'Hi said...

Here goes the geek....

January 1, 2009 at 1:28 PM  
Blogger Sara said...

...

4th person to call me that in 24 hours =/

January 1, 2009 at 9:34 PM  
Blogger Amarant said...

hey geek isnt a nice word

NERD suits her more :P

lol damn i can say that understood around 10% of the post (not bad eh??) :P

well done Sara ;)

January 5, 2009 at 11:17 PM  
Blogger Phat'Hi said...

@Sara, here comes the geeky poke, here comes the geeky 'pokes sara's forhead' who is the geek, repeat after me: I am thy geek.

@Amarant: Thanks 4 passing, its my work though.

January 6, 2009 at 5:34 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home