Clear Filters
Clear Filters

Code created by me does not display the right answer. What needs to be changed in order for the code to provide the good answers?

1 view (last 30 days)
Ok,so I wanted to create a code which recognizes which vowel is pronounced in a recording. I created a database consisting in 40 recordings per each vowel. Here you can find the database: https://we.tl/GB4fZzmhwC Q is the vector which contains the recording I select to compare with the others using k-nn classifier.
Unfortunately I am not getting the expected results which would be: 'closest recording is:41, second closest recording is:42,third closest recording is:43, fourth closest recording is:44, fifth closest recording is:45 vowel is e' as I chose Q(the recording I compare with all others in the database) to be the first recording from the e pronunciations folder in this line of code:"Q=wavread(sprintf('e/1.wav'));"
Note that I attached the database with the pronunciations in this link https://we.tl/GB4fZzmhwC as it was bigger than 5 MB.The main program was attached with paperclip and it's named main2_english.m
  9 Comments
Nicoleta
Nicoleta on 14 May 2016
Edited: Nicoleta on 14 May 2016
Also do you know what could be the utility of such a code which classifies vowels? This code was given as a homework in a laboratory to me but no theory was given about it and I think that in everything we do we should know the utility. I looked on the internet but wasn't able to find anything useful about a possible purpose of detecting which vowel is pronounced when using pronunciations of vowels not of words which contain vowels. Please answer if you know. Many thanks.
Geoff Hayes
Geoff Hayes on 14 May 2016
Nicoleta - I wasn't suggesting that you upload all of your data files, only that without your data we won't be able to reproduce the problem that you are observing. As for why you are doing this homework, wouldn't that be a question for your professor? What class are you attending?

Sign in to comment.

Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!