<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Speech Recognition For Mobile Application</title>
	<atom:link href="http://voiceitpeople.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://voiceitpeople.wordpress.com</link>
	<description>Why Type When You Can Just Voice It?</description>
	<lastBuildDate>Sat, 03 Apr 2010 18:33:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='voiceitpeople.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Speech Recognition For Mobile Application</title>
		<link>http://voiceitpeople.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://voiceitpeople.wordpress.com/osd.xml" title="Speech Recognition For Mobile Application" />
	<atom:link rel='hub' href='http://voiceitpeople.wordpress.com/?pushpress=hub'/>
		<item>
		<title>MSE for frequency domain analysis</title>
		<link>http://voiceitpeople.wordpress.com/2010/04/04/mse-for-frequency-domain-analysis/</link>
		<comments>http://voiceitpeople.wordpress.com/2010/04/04/mse-for-frequency-domain-analysis/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 18:32:44 +0000</pubDate>
		<dc:creator>ilaanneizaiah</dc:creator>
				<category><![CDATA[FYP]]></category>

		<guid isPermaLink="false">http://voiceitpeople.wordpress.com/?p=79</guid>
		<description><![CDATA[function mse_freq = fmse(ref,test); [m,n] = size(ref); mse_freq = (sum(sum(abs(test)-abs(ref)).^2))/(m*n); percentage = 100 &#8211; mse_freq;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=79&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">function mse_freq = fmse(ref,test);</div>
<div id="_mcePaste">[m,n] = size(ref);</div>
<div id="_mcePaste">mse_freq = (sum(sum(abs(test)-abs(ref)).^2))/(m*n);</div>
<div id="_mcePaste">percentage = 100 &#8211; mse_freq;</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/voiceitpeople.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/voiceitpeople.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/voiceitpeople.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/voiceitpeople.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/voiceitpeople.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/voiceitpeople.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/voiceitpeople.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/voiceitpeople.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/voiceitpeople.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/voiceitpeople.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/voiceitpeople.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/voiceitpeople.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/voiceitpeople.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/voiceitpeople.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=79&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://voiceitpeople.wordpress.com/2010/04/04/mse-for-frequency-domain-analysis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a0729f3f3ae28f77d7702f90cc608f86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ilaanneizaiah</media:title>
		</media:content>
	</item>
		<item>
		<title>Spectogram (Freq)</title>
		<link>http://voiceitpeople.wordpress.com/2010/03/10/spectogram-freq/</link>
		<comments>http://voiceitpeople.wordpress.com/2010/03/10/spectogram-freq/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 18:10:29 +0000</pubDate>
		<dc:creator>ilaanneizaiah</dc:creator>
				<category><![CDATA[FYP]]></category>

		<guid isPermaLink="false">http://voiceitpeople.wordpress.com/?p=62</guid>
		<description><![CDATA[********************************color.m******************************* function [cmin,cmax] = color(specgram); v = 20*log10(abs(specgram)); hist(v); [g,h] = hist(v); i = max(g(:)); %the maximum number in histogram p = median(h); %position of the maximum number cmax = p + 15; cmin = p &#8211; 15; ********************************spec.m******************************* %to produce a spectrogram of signals function Y = spec(a); %a = normal(a); %a = silence(a); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=62&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<address>
<p style="text-align:center;"><span style="font-style:normal;">********************************color.m*******************************</span></p>
<p><span style="font-style:normal;">function [cmin,cmax] = color(specgram);</span></p>
<p><span style="font-style:normal;">v = 20*log10(abs(specgram));</span></p>
<p><span style="font-style:normal;">hist(v);</span></p>
<p><span style="font-style:normal;">[g,h] = hist(v);</span></p>
<p><span style="font-style:normal;">i = max(g(:)); %the maximum number in histogram</span></p>
<p><span style="font-style:normal;">p = median(h); %position of the maximum number</span></p>
<p><span style="font-style:normal;">cmax = p + 15;</span></p>
<p><span style="font-style:normal;">cmin = p &#8211; 15;</span></p>
<p style="text-align:center;"><span style="font-style:normal;">********************************spec.m*******************************</span></p>
</address>
<div id="_mcePaste">%to produce a spectrogram of signals</div>
<div id="_mcePaste">function Y = spec(a);</div>
<div id="_mcePaste">%a = normal(a);</div>
<div id="_mcePaste">%a = silence(a);</div>
<div id="_mcePaste">a = a(:,1);</div>
<div id="_mcePaste">[s,f,t]=specgram(a);</div>
<div id="_mcePaste">[cmin,cmax] = color(s);</div>
<div id="_mcePaste">clim = [cmin cmax];</div>
<div id="_mcePaste">Y = imagesc(t,f,20*log10(abs(s)),clim), axis xy</div>
<div id="_mcePaste">colormap(1-gray)</div>
<p>%to produce a spectrogram of signals<br />
function Y = spec(a);<br />
%a = normal(a);%a = silence(a);a = a(:,1);<br />
[s,f,t]=specgram(a);</p>
<p>[cmin,cmax] = color(s);clim = [cmin cmax];</p>
<p>Y = imagesc(t,f,20*log10(abs(s)),clim), axis xycolormap(1-gray)</p>
<p style="text-align:center;">********************************main_spec.m*******************************</p>
<p>[ref,fs] = wavread(&#8216;Menu.wav&#8217;);</p>
<p>[test,fs] = wavread(&#8216;T_Menu.wav&#8217;);</p>
<p>[r,t] = dtw(ref,test,fs);</p>
<p>r = r(1:14000,1);</p>
<p>t = t(1:14000,1);</p>
<p>figure(1);</p>
<p>r1 = spec(r);</p>
<p>figure(2);</p>
<p>t1 = spec(t);</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/voiceitpeople.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/voiceitpeople.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/voiceitpeople.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/voiceitpeople.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/voiceitpeople.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/voiceitpeople.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/voiceitpeople.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/voiceitpeople.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/voiceitpeople.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/voiceitpeople.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/voiceitpeople.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/voiceitpeople.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/voiceitpeople.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/voiceitpeople.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=62&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://voiceitpeople.wordpress.com/2010/03/10/spectogram-freq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a0729f3f3ae28f77d7702f90cc608f86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ilaanneizaiah</media:title>
		</media:content>
	</item>
		<item>
		<title>Comparison</title>
		<link>http://voiceitpeople.wordpress.com/2010/01/19/comparison/</link>
		<comments>http://voiceitpeople.wordpress.com/2010/01/19/comparison/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 17:36:11 +0000</pubDate>
		<dc:creator>ilaanneizaiah</dc:creator>
				<category><![CDATA[FYP]]></category>

		<guid isPermaLink="false">http://voiceitpeople.wordpress.com/?p=71</guid>
		<description><![CDATA[The final stage where two signals will be compared and the result will be obtained by implementing  Mean Square Error (MSE) concept. MSE will quantify the amount of  the test signal is differ from the reference signal. In MSE, if the output is zero, it means perfect accuracy and high in numbers of output means [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=71&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The final stage where two signals will be compared and the result will be obtained by implementing  Mean Square Error (MSE) concept.   MSE will quantify the amount of  the test signal is differ from the reference signal.  In MSE, if the output is zero, it means perfect accuracy and high in numbers of output means high rate of error.  Therefore, an MSE that approximately to zero is good enough.</p>
<p style="text-align:center;">********************************************************************</p>
<div id="_mcePaste">%try_mse.m</div>
<div></div>
<div>[ref,fs] = wavread(&#8216;Nadzirah.wav&#8217;);</div>
<div id="_mcePaste">[test,fs] = wavread(&#8216;T_Menu.wav&#8217;);</div>
<div id="_mcePaste">ref = silence(ref);</div>
<div id="_mcePaste">ref = ref(:,1);</div>
<div id="_mcePaste">test = silence(test);</div>
<div id="_mcePaste">test = test(:,1);</div>
<div id="_mcePaste">we = wavlope(ref,fs); %ref signal</div>
<div id="_mcePaste">we2 = wavlope(test,fs); %test signal</div>
<div id="_mcePaste">[r,s] = dtw(we,we2,fs);</div>
<div id="_mcePaste">%calculate MSE</div>
<div id="_mcePaste">A = double(r);</div>
<div id="_mcePaste">B = double(s);</div>
<div id="_mcePaste">[m,n] = size(A);</div>
<div id="_mcePaste">mse=sum((B-A).^2)/length(B)</div>
<div id="_mcePaste">%mse = (sum(sum(error.*error)))/(m*n);</div>
<div id="_mcePaste">mse = mse*100;</div>
<div id="_mcePaste">ans = 100-mse;</div>
<div id="_mcePaste">accuracy_percentage = ans</div>
<div id="_mcePaste">%diff = per &#8211; mse</div>
<div id="_mcePaste">%y=100</div>
<div id="_mcePaste">%for diff = 98:2:0</div>
<div id="_mcePaste">%  ans=y-1;</div>
<div id="_mcePaste">%figure(60);</div>
<div id="_mcePaste">%subplot(211);</div>
<div id="_mcePaste">%plot();</div>
<div id="_mcePaste">%subplot(212);</div>
<div id="_mcePaste">%plot(B);</div>
<p><a href="http://voiceitpeople.files.wordpress.com/2010/01/mse.jpg"><img class="aligncenter size-medium wp-image-72" title="mse" src="http://voiceitpeople.files.wordpress.com/2010/01/mse.jpg?w=300&#038;h=133" alt="" width="300" height="133" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/voiceitpeople.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/voiceitpeople.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/voiceitpeople.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/voiceitpeople.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/voiceitpeople.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/voiceitpeople.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/voiceitpeople.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/voiceitpeople.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/voiceitpeople.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/voiceitpeople.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/voiceitpeople.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/voiceitpeople.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/voiceitpeople.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/voiceitpeople.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=71&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://voiceitpeople.wordpress.com/2010/01/19/comparison/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a0729f3f3ae28f77d7702f90cc608f86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ilaanneizaiah</media:title>
		</media:content>

		<media:content url="http://voiceitpeople.files.wordpress.com/2010/01/mse.jpg?w=300" medium="image">
			<media:title type="html">mse</media:title>
		</media:content>
	</item>
		<item>
		<title>Waveform Envelope</title>
		<link>http://voiceitpeople.wordpress.com/2010/01/19/waveform-envelope/</link>
		<comments>http://voiceitpeople.wordpress.com/2010/01/19/waveform-envelope/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 17:11:49 +0000</pubDate>
		<dc:creator>ilaanneizaiah</dc:creator>
				<category><![CDATA[FYP]]></category>

		<guid isPermaLink="false">http://voiceitpeople.wordpress.com/?p=65</guid>
		<description><![CDATA[Waveform envelope is defined as the boundaries of the waveform properties. To get the shape of each maximum amplitudes of the waveform. Waveform envelope is often used to study the shape of the wave signal and its properties. In this process, the waveform envelope of the wave signal is actually a better preparation for the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=65&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Waveform envelope is defined as the boundaries of the waveform properties.  To get the shape of each maximum amplitudes of the waveform.  Waveform envelope is often used to study the shape of the wave signal and its properties.   In this process, the waveform envelope of the wave signal is actually a better preparation for the next process, dynamic time warping.</p>
<p style="text-align:center;">******************************************************************</p>
<p style="text-align:left;">%wavlope.m</p>
<div id="_mcePaste">
<div id="_mcePaste">%%from try_we3.m</div>
<div id="_mcePaste">function envelope = wavlope(wavefile, Fs);</div>
<div id="_mcePaste">% Step 1: Load speech waveform</div>
<div id="_mcePaste">%[y,rate]=wavread(&#8216;Menu.wav&#8217;);</div>
<div id="_mcePaste">y = wavefile;</div>
<div id="_mcePaste">rate = Fs;</div>
<div id="_mcePaste">y = y(:,1);</div>
<div id="_mcePaste">y = normal(y);</div>
<div id="_mcePaste">y = silence(y);</div>
<div id="_mcePaste">% Step 2:</div>
<div id="_mcePaste">% Generate lowpass filter coefficients for envelope extraction</div>
<div id="_mcePaste">% 2nd order elliptical filter, 30 Hz cutoff, 0.5 dB ripple,</div>
<div id="_mcePaste">% min stopband attuation 72 dB</div>
<div id="_mcePaste">Rp=0.5;</div>
<div id="_mcePaste">Rs=72;</div>
<div id="_mcePaste">fc=30/(rate/2);</div>
<div id="_mcePaste">[blp,alp]=ellip(2,Rp,Rs,fc);</div>
<div id="_mcePaste">% Step 3: half-wave rectify the waveform</div>
<div id="_mcePaste">y(find(y&lt;0))=0;</div>
<div id="_mcePaste">y = normal(y);</div>
<div id="_mcePaste">% extract envelope by half-wave rectification &amp; LP filtering</div>
<div id="_mcePaste">envelope=filter(blp, alp, y);</div>
<div id="_mcePaste">envelope = normal(envelope);</div>
<div style="text-align:center;">******************************************************************</div>
<div>
<div>%main_wavelope.m</div>
<div>[ref,fs] = wavread(&#8216;Nadzirah.wav&#8217;);</div>
<div>[test,fs] = wavread(&#8216;T_Nadzirah.wav&#8217;);</div>
<div>y = ref(:,1);</div>
<div>y = normal(y);</div>
<div>y = silence(y);</div>
<div>x = test(:,1);</div>
<div>x = normal(x);</div>
<div>x = silence(x);</div>
<div>we = wavlope(y,fs); %ref signal</div>
<div>we2 = wavlope(x,fs); %test signal</div>
<div>[d1,d2] = dtw(we,we2,fs);</div>
<div>%d1 is the original signal of ref signal</div>
<div>%d2 is the dtwed signal of test signal</div>
<div>figure(10);</div>
<div>%subplot(211);</div>
<div>plot(we);</div>
<div>hold on</div>
<div>plot(we2,&#8217;k');</div>
<div>title(&#8216;Before DTW&#8217;);</div>
<div>legend(&#8216;Ref Signal&#8217;,'Test Signal&#8217;)</div>
<div>figure(101);</div>
<div>%subplot(212);</div>
<div>plot(d1);</div>
<div>hold on</div>
<div>plot(d2,&#8217;k');</div>
<div>axis([ 0 20000 0 1]);</div>
<div>title(&#8216;After DTW&#8217;);</div>
<div>legend(&#8216;Ref Signal&#8217;,'Test Signal&#8217;)</div>
<div>%plot(we);</div>
<div>%hold on;</div>
<div>%plot(-envelope);</div>
<div>figure(1);</div>
<div>subplot(211);</div>
<div>plot(y);</div>
<div>title(&#8216;Original wave signal&#8217;);</div>
<div>ylabel(&#8216;Amplitude&#8217;);</div>
<div>subplot(212);</div>
<div>plot(we);</div>
<div>title(&#8216;Waveform envelope of wave signal&#8217;);</div>
<div>ylabel(&#8216;Amplitude&#8217;);</div>
<div>xlabel(&#8216;Time,s&#8217;);</div>
<div></div>
<div><a href="http://voiceitpeople.files.wordpress.com/2010/01/wavelop.jpg"><img class="aligncenter size-medium wp-image-68" title="wavelop" src="http://voiceitpeople.files.wordpress.com/2010/01/wavelop.jpg?w=299&#038;h=225" alt="" width="299" height="225" /></a></div>
<div style="text-align:center;">Figure 5: (a) Plot of the original wave signal</div>
<div style="text-align:center;">(b) Plot of the waveform envelope of the wave signal</div>
<div></div>
<div style="text-align:center;"><a href="http://voiceitpeople.files.wordpress.com/2010/01/wavlope2.jpg"><img class="aligncenter size-medium wp-image-69" title="wavlope2" src="http://voiceitpeople.files.wordpress.com/2010/01/wavlope2.jpg?w=299&#038;h=225" alt="" width="299" height="225" /></a>Figure 6: (a) Plot of the original wave signal</div>
<div style="text-align:center;">(b) Plot of the waveform envelope of the wave signal</div>
</div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/voiceitpeople.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/voiceitpeople.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/voiceitpeople.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/voiceitpeople.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/voiceitpeople.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/voiceitpeople.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/voiceitpeople.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/voiceitpeople.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/voiceitpeople.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/voiceitpeople.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/voiceitpeople.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/voiceitpeople.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/voiceitpeople.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/voiceitpeople.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=65&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://voiceitpeople.wordpress.com/2010/01/19/waveform-envelope/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a0729f3f3ae28f77d7702f90cc608f86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ilaanneizaiah</media:title>
		</media:content>

		<media:content url="http://voiceitpeople.files.wordpress.com/2010/01/wavelop.jpg?w=299" medium="image">
			<media:title type="html">wavelop</media:title>
		</media:content>

		<media:content url="http://voiceitpeople.files.wordpress.com/2010/01/wavlope2.jpg?w=299" medium="image">
			<media:title type="html">wavlope2</media:title>
		</media:content>
	</item>
		<item>
		<title>High Pass Filter</title>
		<link>http://voiceitpeople.wordpress.com/2009/08/03/high-pass-filter/</link>
		<comments>http://voiceitpeople.wordpress.com/2009/08/03/high-pass-filter/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 14:44:02 +0000</pubDate>
		<dc:creator>ilaanneizaiah</dc:creator>
				<category><![CDATA[FYP]]></category>

		<guid isPermaLink="false">http://voiceitpeople.wordpress.com/?p=44</guid>
		<description><![CDATA[An attempt of high pass filter coding: [a,Fs] = wavread(&#8216;Anne.wav&#8217;); a = normal(a); A = a(8000:end,1); A = silence(A); %to obtain the fourier transform ffta = fft(A,512); w = (0:255)/256*(Fs/2); N = 310; W = 1000/(Fs/2); %design a high pass filter b = fir1(N,W,&#8217;high&#8217;); [H,ww] = freqz(b,512); figure(1); plot(ww*Fs/(2*pi),abs(H)); %to filter noise y = filter(b,1,A); [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=44&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>An attempt of high pass filter coding:</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">[a,Fs] = wavread(&#8216;Anne.wav&#8217;);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">a = normal(a);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">A = a(8000:end,1);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">A = silence(A);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%to obtain the fourier transform</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">ffta = fft(A,512);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">w = (0:255)/256*(Fs/2);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">N = 310;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">W = 1000/(Fs/2);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%design a high pass filter</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">b = fir1(N,W,&#8217;high&#8217;);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">[H,ww] = freqz(b,512);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">figure(1);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">plot(ww*Fs/(2*pi),abs(H));</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%to filter noise</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">y = filter(b,1,A);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">ffth = fft(y,512);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">figure(2);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">subplot(311);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">plot(y);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">subplot(312);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">plot(w,abs(ffta(1:256)&#8217;));%fourier transform%</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">subplot(313);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">plot(w,abs(ffth(1:256)));</div>
<p>[a,Fs] = wavread(&#8216;Anne.wav&#8217;);</p>
<p>a = normal(a);</p>
<p>A = a(8000:end,1);</p>
<p>A = silence(A);</p>
<p>%to obtain the fourier transform</p>
<p>ffta = fft(A,512);</p>
<p>w = (0:255)/256*(Fs/2);</p>
<p>N = 310;</p>
<p>W = 1000/(Fs/2);</p>
<p>%design a high pass filter</p>
<p>b = fir1(N,W,&#8217;high&#8217;);</p>
<p>[H,ww] = freqz(b,512);</p>
<p>figure(1);</p>
<p>plot(ww*Fs/(2*pi),abs(H));</p>
<p>%to filter noise</p>
<p>y = filter(b,1,A);</p>
<p>ffth = fft(y,512);</p>
<p>figure(2);</p>
<p>subplot(311);</p>
<p>plot(A);</p>
<p>subplot(312);</p>
<p>plot(w,abs(ffta(1:256)&#8217;)); %fourier transform%</p>
<p>subplot(313);</p>
<p>plot(w,abs(ffth(1:256)));</p>
<p><img class="aligncenter size-medium wp-image-42" title="high pass filter1" src="http://voiceitpeople.files.wordpress.com/2009/08/high-pass-filter1.jpg?w=300&#038;h=225" alt="high pass filter1" width="300" height="225" /></p>
<p style="text-align:center;">Figure 1 : High Pass filter</p>
<p style="text-align:center;"><img class="aligncenter size-medium wp-image-48" title="high pass filter2" src="http://voiceitpeople.files.wordpress.com/2009/08/high-pass-filter22.jpg?w=300&#038;h=216" alt="high pass filter2" width="300" height="216" /></p>
<p style="text-align:center;">Figure 2 (a) : Plot of the original wave</p>
<p style="text-align:center;">Figure 2(b): Plot of the fourier transform of the wave</p>
<p style="text-align:center;">Figure 2(c): Plot of the fourier transform of the filtered wave</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/voiceitpeople.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/voiceitpeople.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/voiceitpeople.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/voiceitpeople.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/voiceitpeople.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/voiceitpeople.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/voiceitpeople.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/voiceitpeople.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/voiceitpeople.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/voiceitpeople.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/voiceitpeople.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/voiceitpeople.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/voiceitpeople.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/voiceitpeople.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=44&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://voiceitpeople.wordpress.com/2009/08/03/high-pass-filter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a0729f3f3ae28f77d7702f90cc608f86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ilaanneizaiah</media:title>
		</media:content>

		<media:content url="http://voiceitpeople.files.wordpress.com/2009/08/high-pass-filter1.jpg?w=300" medium="image">
			<media:title type="html">high pass filter1</media:title>
		</media:content>

		<media:content url="http://voiceitpeople.files.wordpress.com/2009/08/high-pass-filter22.jpg?w=300" medium="image">
			<media:title type="html">high pass filter2</media:title>
		</media:content>
	</item>
		<item>
		<title>How to remove silence in the beginning &amp; in the end</title>
		<link>http://voiceitpeople.wordpress.com/2009/07/30/how-to-remove-silence-in-the-beginning/</link>
		<comments>http://voiceitpeople.wordpress.com/2009/07/30/how-to-remove-silence-in-the-beginning/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 20:58:22 +0000</pubDate>
		<dc:creator>ilaanneizaiah</dc:creator>
				<category><![CDATA[FYP]]></category>

		<guid isPermaLink="false">http://voiceitpeople.wordpress.com/?p=35</guid>
		<description><![CDATA[function [a,b] = first(w); %w is a vector i=1; while w(i)&#60;=0 i=i+1; end a=i; b=w(i:length(w)); In voice recording, there will always be silence moment in the beginning and ending of the speech. This kind of silence cannot be avoided as it is normal for a person to take few seconds to speak after the button [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=35&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">function [a,b] = first(w);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%w is a vector</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">i=1;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">while w(i)&lt;=0</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">i=i+1;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">end</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">a=i;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">b=w(i:length(w));</div>
<p>In voice recording, there will always be silence moment in the beginning and ending of the speech. This kind of silence cannot be avoided as it is normal for a person to take few seconds to speak after the button &#8216;Record&#8217; is hit and also before the button &#8216;Stop&#8217; is hit. This silence may also be known as the background noise as we actually recording the noise of the background while we&#8217;re in silence. To remove these silence, this approach is used instead of interactive filter.</p>
<p>%%%%% to remove silence in the beginning and in the end%%%%%</p>
<p>function [c,d] = first(sound);</p>
<p>%w is a vector of the wave file</p>
<p>w=sound;</p>
<p>i=1;</p>
<p>while w(i)&lt;=0</p>
<p>i=i+1;</p>
<p>end</p>
<p>a=i;</p>
<p>b=w(i:length(w)); %filtered wave of beginning silence only</p>
<p>j=length(b);</p>
<p>while b(j)&lt;=0</p>
<p>j=j-1;</p>
<p>end</p>
<p>c=j;</p>
<p>d=b(1:j); %filtered wave of beginning &amp; ending silence</p>
<p>%%%%% To implement the function &#8216;first&#8217; %%%%%%</p>
<p>function A = silence(sound);</p>
<p>B = double(sound);</p>
<p>C = normal(B);</p>
<p>%C = b(:,1);</p>
<p>[NX,NY] = size(C);</p>
<p>for i = 1:NX</p>
<p>for j = 1:NY</p>
<p>if  C(i)  &lt;  0.2  &amp;  C(i) &gt;  -0.2</p>
<p>C(i) = C(i)*0;</p>
<p>end</p>
<p>end</p>
<p>end</p>
<p>[D,A] = first(C);</p>
<p><img class="aligncenter size-medium wp-image-58" title="silence" src="http://voiceitpeople.files.wordpress.com/2009/07/silence.jpg?w=300&#038;h=225" alt="silence" width="300" height="225" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/voiceitpeople.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/voiceitpeople.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/voiceitpeople.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/voiceitpeople.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/voiceitpeople.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/voiceitpeople.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/voiceitpeople.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/voiceitpeople.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/voiceitpeople.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/voiceitpeople.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/voiceitpeople.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/voiceitpeople.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/voiceitpeople.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/voiceitpeople.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=35&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://voiceitpeople.wordpress.com/2009/07/30/how-to-remove-silence-in-the-beginning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a0729f3f3ae28f77d7702f90cc608f86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ilaanneizaiah</media:title>
		</media:content>

		<media:content url="http://voiceitpeople.files.wordpress.com/2009/07/silence.jpg?w=300" medium="image">
			<media:title type="html">silence</media:title>
		</media:content>
	</item>
		<item>
		<title>Dynamic Time Warping (DTW)</title>
		<link>http://voiceitpeople.wordpress.com/2009/07/12/dynamic-time-warping-dtw/</link>
		<comments>http://voiceitpeople.wordpress.com/2009/07/12/dynamic-time-warping-dtw/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 10:26:16 +0000</pubDate>
		<dc:creator>ilaanneizaiah</dc:creator>
				<category><![CDATA[FYP]]></category>

		<guid isPermaLink="false">http://voiceitpeople.wordpress.com/?p=20</guid>
		<description><![CDATA[Dynamic Time Warping (DTW) serves a function to accommodate differences in timing between sample words and templates. DTW was first introduced before the hidden Markov Model in achieving the goals. DTW finds an optimal match between two sequences of feature vectors which allows for stretched and compressed sections of the sequence. The basic principle is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=20&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Dynamic Time Warping (DTW) serves a function to accommodate differences in timing between sample words and templates. DTW was first introduced before the hidden Markov Model in achieving the goals. DTW finds an optimal match between two sequences of feature vectors which allows for stretched and compressed sections of the sequence. The basic principle is to allow a range of &#8216;steps&#8217; in the space of (time frames in sample, time frames in template) and to find the path through that space that maximizes the local match between the aligned time frames, subject to the constraints implicit in the allowable steps. The total `similarity cost&#8217; found by this algorithm is a good indication of how well the sample and template match, which can be used to choose the best-matching template.</p>
<p>DTW also allows us to separate speech from silence in the input signal. The silence in the beginning and at the end of the speech especially cannot be avoided. There will be a moment of silence within those periods of recording. Advanced versions of DTW were developed to match sequences of words in connected speech which has been superceded by the HMM approach but in fact the search for interpretations in an HMM is a very similar process to the DP match used here. (from DTW4)</p>
<p>Example of DTW coding:</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">function [Dist,D,k,w]=dtw(t,r)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%Dynamic Time Warping Algorithm</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%Dist is unnormalized distance between t and r</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%D is the accumulated distance matrix</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%k is the normalizing factor</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%w is the optimal path</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%t is the vector you are testing against</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%r is the vector you are testing</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">[rows,N]=size(t);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">[rows,M]=size(r);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%for n=1:N</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%    for m=1:M</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%        d(n,m)=(t(n)-r(m))^2;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%    end</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%end</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">d=(repmat(t(:),1,M)-repmat(r(:)&#8217;,N,1)).^2; %this replaces the nested for loops from above Thanks Georg Schmitz</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">D=zeros(size(d));</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">D(1,1)=d(1,1);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">for n=2:N</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">D(n,1)=d(n,1)+D(n-1,1);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">end</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">for m=2:M</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">D(1,m)=d(1,m)+D(1,m-1);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">end</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">for n=2:N</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">for m=2:M</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">D(n,m)=d(n,m)+min([D(n-1,m),D(n-1,m-1),D(n,m-1)]);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">end</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">end</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">Dist=D(N,M);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">n=N;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">m=M;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">k=1;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">w=[];</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">w(1,:)=[N,M];</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">while ((n+m)~=2)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">if (n-1)==0</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">m=m-1;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">elseif (m-1)==0</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">n=n-1;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">else</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">[values,number]=min([D(n-1,m),D(n,m-1),D(n-1,m-1)]);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">switch number</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">case 1</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">n=n-1;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">case 2</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">m=m-1;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">case 3</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">n=n-1;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">m=m-1;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">end</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">end</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">k=k+1;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">w=cat(1,w,[n,m]);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">end</div>
<p style="text-align:center;">****************************************************************</p>
<p>%dtw.m</p>
<p>function [d1,d2x] = dtw(ref,test,sr);</p>
<p>% Load two speech waveforms of the same utterance (from TIMIT)</p>
<p>%[ref,sr] = wavread(r);</p>
<p>%[test,sr] = wavread(t);</p>
<p>ref = silence(ref);</p>
<p>test = silence(test);</p>
<p>%whos</p>
<p>d1 = ref(:,1);</p>
<p>d2 = test(:,1);</p>
<p>% Listen to them together:</p>
<p>ml = min(length(d1),length(d2));</p>
<p>% soundsc(d1(1:ml)+d2(1:ml),sr)</p>
<p>% or, in stereo</p>
<p>%soundsc([d1(1:ml),d2(1:ml)],sr)</p>
<p>% Calculate STFT features for both sounds (25% window overlap)</p>
<p>D1 = specgram(d1,512,sr,512,384);</p>
<p>D2 = specgram(d2,512,sr,512,384);</p>
<p>% Construct the &#8216;local match&#8217; scores matrix as the cosine distance</p>
<p>% between the STFT magnitudes</p>
<p>SM = simmx(abs(D1),abs(D2));</p>
<p>% Look at it:</p>
<p>figure(100);</p>
<p>subplot(121)</p>
<p>imagesc(SM);</p>
<p>colormap(1-gray);</p>
<p>% You can see a dark stripe (high similarity values) approximately</p>
<p>% down the leading diagonal.</p>
<p>% Use dynamic programming to find the lowest-cost path between the</p>
<p>% opposite corners of the cost matrix</p>
<p>% Note that we use 1-SM because dp will find the *lowest* total cost</p>
<p>[p,q,C] = dp(1-SM);</p>
<p>% Overlay the path on the local similarity matrix</p>
<p>hold on; plot(q,p,&#8217;r'); hold off</p>
<p>% Path visibly follows the dark stripe</p>
<p>% Plot the minimum-cost-to-this point matrix too</p>
<p>subplot(122)</p>
<p>imagesc(C);</p>
<p>hold on; plot(q,p,&#8217;r'); hold off</p>
<p>% Bottom right corner of C gives cost of minimum-cost alignment of the two</p>
<p>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%C(size(C,1),size(C,2));</p>
<p>%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ans = 128.2873;</p>
<p>% This is the value we would compare between different</p>
<p>% templates if we were doing classification.</p>
<p>% Calculate the frames in D2 that are indicated to match each frame</p>
<p>% in D1, so we can resynthesize a warped, aligned version</p>
<p>D2i1 = zeros(1, size(D1,2));</p>
<p>for i = 1:length(D2i1); D2i1(i) = q(min(find(p &gt;= i))); end</p>
<p>% Phase-vocoder interpolate D2&#8242;s STFT under the time warp</p>
<p>D2x = pvsample(D2, D2i1-1, 128);</p>
<p>% Invert it back to time domain</p>
<p>d2x = istft(D2x, 512, 512, 128);</p>
<p>% Listen to the results</p>
<p>% Warped version alone</p>
<p>%%%%%%soundsc(d2x,sr)</p>
<p>% Warped version added to original target (have to fine-tune length)</p>
<p>d2x = resize(d2x&#8217;, length(d1),1);</p>
<p>%%%%%%%soundsc(d1+d2x,sr)</p>
<p>% .. and in stereo</p>
<p>%%%%%%%soundsc([d1,d2x],sr)</p>
<p>% Compare to unwarped pair:</p>
<p>%%%%%%%soundsc([d1(1:ml),d2(1:ml)],sr)</p>
<p>%y(1025:length(x)) = 0;            % Zeroing out the higher coefficients</p>
<p>%xHat = ifwht(y);                  % Signal reconstruction using inverse WHT</p>
<p>%figure(&#8216;color&#8217;,'white&#8217;);</p>
<p>%plot(d2x);</p>
<p>%hold on</p>
<p>%plot(d1,&#8217;r');</p>
<p>%xlabel(&#8216;Sample index&#8217;);</p>
<p>%ylabel(&#8216;ECG signal amplitude&#8217;);</p>
<p>%legend(&#8216;Original Signal&#8217;,'Reconstructed Signal&#8217;);</p>
<p style="text-align:center;">***************************************************************</p>
<p>%main_dtw.m</p>
<p>[ref,fs] = wavread(&#8216;Menu.wav&#8217;);</p>
<p>[test,fs] = wavread(&#8216;T_Menu.wav&#8217;);</p>
<p>%ref  = silence(ref);</p>
<p>%test = silence(test);</p>
<p>%whos</p>
<p>[d1,d2x] = dtw(ref,test,fs);</p>
<p>figure(101);</p>
<p>%subplot(211);</p>
<p>plot(ref);</p>
<p>hold on</p>
<p>plot(test,&#8217;k');</p>
<p>title(&#8216;Before DTW&#8217;);</p>
<p>legend(&#8216;Ref Signal&#8217;,'Test Signal&#8217;)</p>
<p>figure(102);</p>
<p>%subplot(212);</p>
<p>plot(d1);</p>
<p>hold on</p>
<p>plot(d2x,&#8217;k');</p>
<p>%axis([ 0 20000 0 1]);</p>
<p>title(&#8216;After DTW&#8217;);</p>
<p>legend(&#8216;Ref Signal&#8217;,'Test Signal&#8217;)</p>
<div></div>
<p><img class="aligncenter size-medium wp-image-53" title="DTW" src="http://voiceitpeople.files.wordpress.com/2009/07/dtw.jpg?w=300&#038;h=225" alt="DTW" width="300" height="225" /></p>
<p><img class="aligncenter size-medium wp-image-55" title="DTW2" src="http://voiceitpeople.files.wordpress.com/2009/07/dtw21.jpg?w=300&#038;h=225" alt="DTW2" width="300" height="225" /></p>
<p style="text-align:center;">Figure 2(a): Plot of the reference signal</p>
<p style="text-align:center;">Figure 2(b): Plot of the test signal</p>
<p style="text-align:center;">Figure 2(c): Plot of the test signal after DTW with reference signal</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/voiceitpeople.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/voiceitpeople.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/voiceitpeople.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/voiceitpeople.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/voiceitpeople.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/voiceitpeople.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/voiceitpeople.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/voiceitpeople.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/voiceitpeople.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/voiceitpeople.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/voiceitpeople.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/voiceitpeople.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/voiceitpeople.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/voiceitpeople.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=20&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://voiceitpeople.wordpress.com/2009/07/12/dynamic-time-warping-dtw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a0729f3f3ae28f77d7702f90cc608f86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ilaanneizaiah</media:title>
		</media:content>

		<media:content url="http://voiceitpeople.files.wordpress.com/2009/07/dtw.jpg?w=300" medium="image">
			<media:title type="html">DTW</media:title>
		</media:content>

		<media:content url="http://voiceitpeople.files.wordpress.com/2009/07/dtw21.jpg?w=300" medium="image">
			<media:title type="html">DTW2</media:title>
		</media:content>
	</item>
		<item>
		<title>Normalization</title>
		<link>http://voiceitpeople.wordpress.com/2009/07/12/normalization/</link>
		<comments>http://voiceitpeople.wordpress.com/2009/07/12/normalization/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 10:23:21 +0000</pubDate>
		<dc:creator>ilaanneizaiah</dc:creator>
				<category><![CDATA[FYP]]></category>

		<guid isPermaLink="false">http://voiceitpeople.wordpress.com/?p=18</guid>
		<description><![CDATA[In speech recognition where there’s two signal to be compared, two signals are not recorded exactly with the same volume as the two signals are not with the same energy. Thus, before extracting features from the speech signals, we need to normalize the speech signal so that the two speech signals are made recorded with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=18&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In speech recognition where there’s two signal to be compared, two signals are not recorded exactly with the same volume as the two signals are not with the same energy. Thus, before extracting features from the speech signals, we need to normalize the speech signal so that the two speech signals are made recorded with same volume.</p>
<p>This can be achieved by using this equation:</p>
<p>input = input/max(abs(input));</p>
<p>Example:</p>
<p style="text-align:center;">***********************************************************</p>
<p>%normal.m</p>
<p>function [n] = normal(sound);</p>
<p>n = sound/max(abs(sound));</p>
<p>%A = A/max(abs(A));</p>
<p style="text-align:center;">***********************************************************</p>
<p>%main_normal.m</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">A = wavread(&#8216;Anne.wav&#8217;);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">B = wavread(&#8216;Calendar.wav&#8217;);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">C = wavread(&#8216;Games.wav&#8217;);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">figure(1);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">subplot(2,1,1);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">plot(A);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">figure(2);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">subplot(2,1,1);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">plot(B);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%subplot(3,1,3);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%plot(C);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%plot(A);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%a = mean(A);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%m = abs(A);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%mx = max(m &#8211; a);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">A = A/max(abs(A));</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">B = B/max(abs(B));</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%z = length(A);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%C = C/max(abs(C));</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">figure(1);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">subplot(2,1,2);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">plot(A);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">figure(2);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">subplot(2,1,2);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">plot(B);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">%figure(3),plot(C);</div>
<p>[A,fs] = wavread(&#8216;Nadzirah.wav&#8217;);</p>
<p>m = normal(A);</p>
<p>figure(1);</p>
<p>subplot(211);</p>
<p>plot(A);</p>
<p>title(&#8216;Before normalization&#8217;);</p>
<p>ylabel(&#8216;Amplitude&#8217;)</p>
<p>subplot(212);</p>
<p>plot(m);</p>
<p>title(&#8216;After normalization&#8217;);</p>
<p>xlabel(&#8216;Time,s&#8217;);</p>
<p>ylabel(&#8216;Amplitude&#8217;);</p>
<p style="text-align:center;"><img class="alignnone size-medium wp-image-26" title="Anne_norm" src="http://voiceitpeople.files.wordpress.com/2009/07/anne_norm.jpg?w=300&#038;h=225" alt="Anne_norm" width="300" height="225" /></p>
<p style="text-align:center;">Figure 1: plot of Anne.wav before and after normalization</p>
<p style="text-align:center;"><img class="size-medium wp-image-27 aligncenter" title="Calendar_norm" src="http://voiceitpeople.files.wordpress.com/2009/07/calendar_norm.jpg?w=300&#038;h=225" alt="Calendar_norm" width="300" height="225" /></p>
<p style="text-align:center;">Figure2: Plot of Calendar.wav before and after normalization</p>
<p style="text-align:center;">
<p>Update:</p>
<p>function [n] = norm(sound);</p>
<p>n = sound/max(abs(sound));</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/voiceitpeople.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/voiceitpeople.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/voiceitpeople.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/voiceitpeople.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/voiceitpeople.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/voiceitpeople.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/voiceitpeople.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/voiceitpeople.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/voiceitpeople.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/voiceitpeople.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/voiceitpeople.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/voiceitpeople.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/voiceitpeople.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/voiceitpeople.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=18&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://voiceitpeople.wordpress.com/2009/07/12/normalization/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a0729f3f3ae28f77d7702f90cc608f86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ilaanneizaiah</media:title>
		</media:content>

		<media:content url="http://voiceitpeople.files.wordpress.com/2009/07/anne_norm.jpg?w=300" medium="image">
			<media:title type="html">Anne_norm</media:title>
		</media:content>

		<media:content url="http://voiceitpeople.files.wordpress.com/2009/07/calendar_norm.jpg?w=300" medium="image">
			<media:title type="html">Calendar_norm</media:title>
		</media:content>
	</item>
		<item>
		<title>Low-pass filter</title>
		<link>http://voiceitpeople.wordpress.com/2009/07/08/low-pass-filter/</link>
		<comments>http://voiceitpeople.wordpress.com/2009/07/08/low-pass-filter/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 01:45:28 +0000</pubDate>
		<dc:creator>ilaanneizaiah</dc:creator>
				<category><![CDATA[FYP]]></category>

		<guid isPermaLink="false">http://voiceitpeople.wordpress.com/?p=14</guid>
		<description><![CDATA[Low-pass filter A low-pass filter is a filter that passes low-frequency signals but attenuates (reduces the amplitude of) signals with frequencies higher than the cut off frequency. The actual amount of attenuation for each frequency varies from filter to filter. We can say that low-pass filter plays big role in getting rid of noise and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=14&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration:underline;">Low-pass filter</span></strong></p>
<p>A low-pass filter is a filter that passes low-frequency signals but attenuates (reduces the amplitude of) signals with frequencies higher than the cut off frequency. The actual amount of attenuation for each frequency varies from filter to filter. We can say that low-pass filter plays big role in getting rid of noise and silence that usually appear in the passband and stopband.</p>
<p>Low-pass filter can be seen in two category; FIR (Finite Impulse Response and IIR (Infinite Impulse Response). And in FIR itself, it has three designs that can be implemented which are the REMEZ, FIRLS, and KAISER. Design for IIR varies more than FIR which is Butterworth IIR Filter, Chebyshev Type I IIR Filter, Chebyshev Type II IIR Filter, and Elliptic IIR Filter.</p>
<p>While there are many advantages and disadvantages from FIR and IIR, IIR is seldom used in most processing because IIR is recursive where there is feedback involved. A particular sample from a signal will have multiplications and summations performed. IIR will forever affect the outcome of the filter to one degree or another. The impulse response keeps going. IIR also can be designated to accurately simulate analog filter responses.</p>
<p>In contradiction to IIR, FIR is non-recursive as there is no feedback involved. Any signal sample running through an FIR filter will have a finite number of operations performed on it. Impulse response will finally reach zero.</p>
<p>Theoretically, it is best to implement Butterworth filter. This is mainly because the output will have no ripple (monotone) in passband and stopband to be compared with other IIR filter.</p>
<p>Example coding:</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">[a,Fs] = wavread(&#8216;Anne.wav&#8217;);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">A = normal(a);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">C = silence(A);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">C = C(1:20000,1);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">Rp = 3;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">Rs = 60;</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">Wp = 1500/(Fs/2);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">Ws = 1700/(Fs/2);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">%to design low pass filter</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">[Nb,Wb] = buttord(Wp,Ws,Rp,Rs);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">[r,s] = butter(Nb,Wb);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">[Hb,wb] = freqz(r,s,512);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">figure(2);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">plot(wb*Fs/(2*pi),abs(Hb));</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">%to filter noise</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">x = filter(r,s,C);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">fftb = fft(x,512);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">figure(3);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">subplot(211);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">plot(C);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">subplot(212);</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:71px;width:1px;height:1px;">plot(w,abs(fftb(1:256)));</div>
<p>[a,Fs] = wavread(&#8216;Anne.wav&#8217;);</p>
<p>A = normal(a);</p>
<p>C = silence(A);</p>
<p>%C = C(1:20000,1);</p>
<p>%fourier transform of wave</p>
<p>fftc = fft(C,512);</p>
<p>w = (0:255)/256*(Fs/2);</p>
<p>Rp = 3;</p>
<p>Rs = 60;</p>
<p>Wp = 8000/(Fs/2);</p>
<p>Ws = 9000/(Fs/2);</p>
<p>%to design low pass filter</p>
<p>[Nb,Wb] = buttord(Wp,Ws,Rp,Rs);</p>
<p>[r,s] = butter(Nb,Wb);</p>
<p>[Hb,wb] = freqz(r,s,512);</p>
<p>figure(1);</p>
<p>plot(wb*Fs/(2*pi),abs(Hb));%plot of the filter</p>
<p>%to filter noise</p>
<p>x = filter(r,s,C);</p>
<p>fftb = fft(x,512);</p>
<p>figure(2);</p>
<p>subplot(311);</p>
<p>plot(C);</p>
<p>subplot(312);</p>
<p>plot(w,abs(fftc(1:256)&#8217;));</p>
<p>subplot(313);</p>
<p>plot(w,abs(fftb(1:256)));</p>
<p><img class="aligncenter size-medium wp-image-50" title="Low pass filter" src="http://voiceitpeople.files.wordpress.com/2009/07/low-pass-filter.jpg?w=300&#038;h=225" alt="Low pass filter" width="300" height="225" /></p>
<p style="text-align:center;">Figure 1: Low pass filter</p>
<p><img class="aligncenter size-medium wp-image-51" title="Low pass filter2" src="http://voiceitpeople.files.wordpress.com/2009/07/low-pass-filter2.jpg?w=300&#038;h=225" alt="Low pass filter2" width="300" height="225" /></p>
<p style="text-align:center;">Figure 2(a): Plot of the original wave</p>
<p style="text-align:center;">Figure 2(b): Plot of the Fourier Transform of the wave</p>
<p style="text-align:center;">Figure 2(c): Plot of the fft of filtered signal</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/voiceitpeople.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/voiceitpeople.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/voiceitpeople.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/voiceitpeople.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/voiceitpeople.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/voiceitpeople.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/voiceitpeople.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/voiceitpeople.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/voiceitpeople.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/voiceitpeople.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/voiceitpeople.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/voiceitpeople.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/voiceitpeople.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/voiceitpeople.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=14&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://voiceitpeople.wordpress.com/2009/07/08/low-pass-filter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a0729f3f3ae28f77d7702f90cc608f86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ilaanneizaiah</media:title>
		</media:content>

		<media:content url="http://voiceitpeople.files.wordpress.com/2009/07/low-pass-filter.jpg?w=300" medium="image">
			<media:title type="html">Low pass filter</media:title>
		</media:content>

		<media:content url="http://voiceitpeople.files.wordpress.com/2009/07/low-pass-filter2.jpg?w=300" medium="image">
			<media:title type="html">Low pass filter2</media:title>
		</media:content>
	</item>
		<item>
		<title>Methodology</title>
		<link>http://voiceitpeople.wordpress.com/2009/07/01/methodology/</link>
		<comments>http://voiceitpeople.wordpress.com/2009/07/01/methodology/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 15:45:51 +0000</pubDate>
		<dc:creator>ilaanneizaiah</dc:creator>
				<category><![CDATA[FYP]]></category>

		<guid isPermaLink="false">http://voiceitpeople.wordpress.com/?p=10</guid>
		<description><![CDATA[This program mainly compares the recorded command voice input of user with the stored data in the memory to run tasks in the application desired by the user. Therefore, a template of the user&#8217;s voice recordings must first be created beforehand. The recordings will provide information about the individual’s pronunciation of phonemes. The program will [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=10&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This program mainly compares the recorded command voice input of user with the stored data in the memory to run tasks in the application desired by the user. Therefore, a template of the user&#8217;s voice recordings must first be created beforehand. The recordings will provide information about the individual’s pronunciation of phonemes. The program will extract the main components of the speech for a comparison process. A filter will also be designed to to eliminate noise and enhance the recognition process.</p>
<p>The signal analysis will be achieved in both time domain and frequency domain.<br />
1. We will approach the time domain processing by studying the pitch extraction method and direct matching processing.<br />
The pitch extraction method in time domain may includes several methods which are Parallel processing method, Data reduction method, or Zero crossing method. Time lagged will also be considered in this process. One of the direct matching process is the template matching process. This may be used where the template of the recorded speech will be compared directly with the template of the stored information by a certain matching algorithm.</p>
<p>2) The frequency domain processing will be done by studying various possible solutions. The speech will first be transformed into frequency domain. This will be achieved through the Fast Fourier transform. The formants of the frequency spectrum or the phonemes will be extracted and compared to the stored phonemes by applying dynamic time warping or stochastic modeling (Hidden Markov Model).</p>
<p>This project will be done using MATLAB as a medium to extract, evaluate and deliver a result for speech recognition system.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/voiceitpeople.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/voiceitpeople.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/voiceitpeople.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/voiceitpeople.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/voiceitpeople.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/voiceitpeople.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/voiceitpeople.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/voiceitpeople.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/voiceitpeople.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/voiceitpeople.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/voiceitpeople.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/voiceitpeople.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/voiceitpeople.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/voiceitpeople.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=voiceitpeople.wordpress.com&amp;blog=8399325&amp;post=10&amp;subd=voiceitpeople&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://voiceitpeople.wordpress.com/2009/07/01/methodology/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a0729f3f3ae28f77d7702f90cc608f86?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ilaanneizaiah</media:title>
		</media:content>
	</item>
	</channel>
</rss>
