Tuesday, June 4, 2013

Finally understood the major part of Jiali's work

Before today I have a weird problem that the sound is originating from the bottom-left corner of the test level instead of from the speaker and it can be verified  in the initMap method that the location of the sound source does hold the position of the speaker. After looking through other part of the code and trying to find a place where this position is changed, I was unsuccessful but instead I noticed in UpdateSpeaker method, the position of sound source is again assigned the location of speaker if they are not equal. So right now, this problem was solved by manually moving the speaker a little bit as soon as the program starts playing.

Another problem to update is the low recognition rate of the SpeechRecogServer. After installing external conference microphone, the situation does not improve. I think it is possibly because of my bad pronunciation. Jiali did mention in her video that the word uttered should be very clear and standard for the program to recognize. Maybe I should download pronunciations of these test words and play them and at the same, practise more.

A minor revision is to add public varible to the perceptors in the scene, so one would know their names from the Unity Editor.

Currently I think I have understood the major and most relevant parts of the SPREAD pipeline for phoneme propagation. Basically in the offline part, we first calculate the spectrums of 38 phonemes out of 44 phonemes in American English and manually crop the generated images so only the interesting part are left (I assume this is for the convenience of the algorithm which regards the entire spectrum diagram as useful information). Then in another piece of MATLAB code, a Confusion Matrix for those phonemes, which are the result of a psycholinguistics paper, and those cropped spectrum images are taken as input and a text file containing SPR data for 38 phonemes are generated and ready to use in online part of the pipeline.
In online part, we first open up the SpeechRecogServer that utilizes Microsoft Speech Recognition SDK in .NET framework which converts the audio input into a string if the word is recognized in the dictionary. The string is encapsulated in a UDP diagram and received by unity. Once received, the first phoneme of the word is extracted and its corresponding id in the offline SPR database noted. The SPR sequence of this phoneme is then played at the speaker's location and propagated and degraded through the SPREAD framework and eventually received by receptors. A receptor will try to compare the received packets with the database using Dynamic Time Warping algorithm (I still need to further understand this algorithm to see how it actually works) and a list of possible match are generated, from high confidence to low confidence. Next, if any one match from the first few possible matches is equal to the phoneme corresponding to the receptor and confidence is above certain threshold, the receptor (sphere) will turn red, indicating it has heard his name called.

The next step would be using Markov Chain to make the recognization of whole word possible as well as understand the SPREAD framework in greater depth in the process.

No comments:

Post a Comment