0% found this document useful (0 votes)
221 views102 pages

Final Report of Speech

This document provides an overview of a speech recognition system project. The project aims to develop a system that allows users to control a computer through voice commands, making the computer more accessible to users who cannot use keyboards or mice. The key features of the system include being user-friendly, dynamic loading of XML files, supporting single users at a time, using XML files as a database, and an object-oriented approach. The scope of the project currently allows it to satisfy all types of users and handle all tasks easily and efficiently through voice. Future enhancements could allow the system to work across different input devices, be integrated with robotics, and recognize and write spoken text.

Uploaded by

Parinit Tyagi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
221 views102 pages

Final Report of Speech

This document provides an overview of a speech recognition system project. The project aims to develop a system that allows users to control a computer through voice commands, making the computer more accessible to users who cannot use keyboards or mice. The key features of the system include being user-friendly, dynamic loading of XML files, supporting single users at a time, using XML files as a database, and an object-oriented approach. The scope of the project currently allows it to satisfy all types of users and handle all tasks easily and efficiently through voice. Future enhancements could allow the system to work across different input devices, be integrated with robotics, and recognize and write spoken text.

Uploaded by

Parinit Tyagi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 102

Project Report on SPEECH RECOGNITION SYSTEM

CHAPTER 1
INTRODUCTION
JIET, Jind
1
Project Report on SPEECH RECOGNITION SYSTEM
1.1 PROJECT OVERVIEW
This SPEECH RECOGNITION SYSTEM is to proide !"" necess!r# $%nction o$
co&p%ter contro""ed thro%'h h%&!n oice, "i(e !"" pro'r!& inst!""ed in o%r co&p%ter s#ste&
contro""ed thro%'h oice )# s!#in' si&p"e pro'r!& n!&e or its step )# step contro""in' !s o%r
*or(in' *ith (e#)o!rd+ This ne* s#ste& is %ser $riend"# !nd inter!ctie+ It de!"s *ith !""
t#pes o$ %sers *hich !re not !)"e to %se co&p%ter proper"# )# their h!nds or *ho !re )"ind+ In
this project *e h!e considered !"" !spects $ro& the %ser,s point o$ ie* so th!t eer# %ser
c!n inter!ct *ith the co&p%ter er# e!si"#+ -e h!e tried to ori'in!te )est eniron&ent in
*hich ! %ser c!n h!nd"e co&p%ter er# e$$icient"# !nd conenient"#+
Speech is one o$ the &ost n!t%r!" *!#s to inter!ct *ith the "iin' or'!nis&+ -e tried
o%r )est th!t the s!&e inter!ction c!n )e done *ith the co&p%ters+ I$ !n !pp"ic!tion c!n )e
contro""ed so"e"# )# *!# o$ oice co&&!nds then the opport%nit# th!t "ies is %n"i&ited+ Een
tho%'h the ide! o$ %sin' speech !s !n inp%t &ech!nis& $or !n !pp"ic!tion is not ne* )%t sti""
the concept is $!r !*!#+ In other *ords speech is sti"" ! )i' opport%nit# th!t is #et to )e
e.p"ored+
Microso$t speech S/0 is one o$ the &!n# too"s th!t en!)"e ! dee"oper to !dd speech
c!p!)i"it# in to !n !pp"ic!tion+ Speech S/0 c!n )e %sed in either C1, C22, 34 or !n# COM
co&p"i!nt "!n'%!'e+ So *e %se Microso$t S/0 in this project to h!nd"e *ith oice+
In this project *e proide ! $!ci"it# to %ser th!t 5Te.t to Speech, &e!ns *e !"so he!rs
the te.t in co&p%ters oice *hich *ritten )# %s in te.t $or& in o%r s#ste&+ In this *!# this
so$t*!re is &ore %ser $riend"# $or )"ind persons or $or those *hich !re not !)"e to *or( on
co&p%ter *ith there h!nds )%t the# *!nt to %se co&p%ter+
In this project %ser on"# spe!( the de$ined co&&!nds o$ the project 'et proper *or(
$ro& the s#ste&+ -e !"so proide $!ci"it# $or di$$erent %ser to reco'ni6e his or her oice to
the s#ste&, !nd *or( !ccordin' to her or his "!n'%!'e )# *hich er# e!si"# %ser *or(s *ith
this project+ -e !"so proide other &!n# $!ci"ities !"so *hich !re disc%ssed "!ter in the
report+
JIET, Jind
7
Project Report on SPEECH RECOGNITION SYSTEM
1.2 EXISTING SYSTEM
E.istin' s#ste& is th!t in *hich co&p%ter s#ste& is not contro""ed )# oice i+e+ it is
tot!""# h!nd"ed )# (e#)o!rd or &o%se+ In the e.istin' s#ste& !"" the *or( $ro& st!rtin' o$ !
s#ste& to t%rn o$$ or rest!rtin' the s#ste& !"" c!n )e done )# (e#)o!rd or &o%se+ In e.istin'
s#ste& !"" *or( done )# h!nd so the peop"e *ho !re not !)"e to *or( *ith (e#)o!rd or
&o%se the# do not *or( on the co&p%ter, "i(e $or )"ind peop"e not possi)"e to *or( on the
co&p%ter or h!ndic!p peop"es !"so+
In the e.istin' s#ste& i$ *e don,t h!e (e#)o!rd or &o%se then *e !re not !)"e to
'ie the !n# t#pe o$ inp%t to the s#ste& $or per$or&in' ! speci$ic t!s(+ So, e.istin' s#ste& is
co&p"ete"# dependent on these deices+ This is the dis!d!nt!'e o$ the e.istin' s#ste&+
In this s#ste& *e !re not !)"e to *rite !n# te.t &!tter *itho%t t#pin' it $ro& the
(e#)o!rd or not %sin' !n# other inp%t s#ste& +This thin' t!(es ! "ot o$ ti&e $or peop"e *ho
do not (no* t#pin'+ Moreoer the $!ci"it# o$ he!rin' the *ritten te.t is not there th!t !'!in
cre!tes the pro)"e& $or ! )"ind %ser+
No* in this (no*"ed'e &i""enni%& there is re8%ire&ent o$ !d!nce&ent in the
e.istin' p!ttern o$ *or(in' !"so !s *e !re enterin' in the 77
nd
cent%r#, the ti&e *i"" shorten
$or eer# h%&!n )ein'+ Th!t,s cre!tin' the re8%ire&ent o$ $!stest *or"d+ O%r project *i""
de$inite"# !cts !s ! steppin' stone in the &oe&ent o$ ne* er!+
JIET, Jind
9
Project Report on SPEECH RECOGNITION SYSTEM
1.3 FEATURES OF THE SPEECH RECOGNITION SYSTEM
Speech Reco'nition S#ste& is %sed to contro" the s#ste& co&p"ete"# )# oice+ The
&!in $e!t%res o$ the speech s#ste& !re !s $o""o*s:
1+ ;ser <riend"#:
In this s#ste&, *e c!n do !"" t#pe o$ *or( "i(e *or( on MSO$$ice or *or(in' on other
so$t*!re,s !"" !re no* contro""ed )# oice er# e!si"# !s in e!r"ier techno"o'ies *hich !re
contro""ed )# (e#)o!rd or &o%se+
2. /#n!&ic =o!din' o$ >M= $i"es:
In o%r s#ste& *e h!e d#n!&ic "o!din' o$ >M= $i"es )# *hich *e h!e not st!tic
d!t! )!se %sed !t r%n ti&e "o!ded in the s#ste&+ -e "o!d on"# those $i"es *hich !re needed !t
th!t p!rtic%"!r ti&e+
9+ Sin'"e ;ser S#ste&:
In this s#ste& *e h!e on"# sin'"e %ser s#ste& !t ! ti&e+ So o%r s#ste& *or(s !t $!st
speed )ec!%se no process oerhe!d he"d he!r+
?+ >M=<i"es:
In o%r project *e %se >M= $i"es !s ! d!t! )!se $i"e+ -e h!e no need to %se speci!"
d!t!)!se techno"o'ies+
@+ O)ject Oriented Appro!ch
B+ API /esi'n Methodo"o'#
C+ Con$i'%r!)"e Options
D+ M!int!in C%rrent St!t%s
E+ E.tensi)"e Architect%re
1F+ +NET I&p"e&ent!tion
JIET, Jind
?
Project Report on SPEECH RECOGNITION SYSTEM
1.4 SCOPE OF PROJECT
1.4.1 PRESENT SCOPE
-e h!e )een *or(in' on the project $or the p!st three &onths !nd conc"%ded th!t the
proposed s#ste& *i"" )e !)"e to s!tis$# !"" the needs o$ !"" t#pe o$ %sers+ It is desi'ned in !
*!# th!t it c!n h!nd"e !"" the t!s(s o$ ! %ser er# e!si"# !nd e$$icient"#+ This s#ste& c!n !"so
spe!( the d!t! present !"re!d# in the s#ste&+ On"# )# "istenin', *e c!n 'et in$or&!tion in !
p!rtic%"!r doc%&ent+
1.4.2 FUTURE SCOPE OF PROJECT 1.4.2 FUTURE SCOPE OF PROJECT
Tod!# *e !re "iin' in !n eniron&ent sti"" p!rti!""# contro""ed )# co&p%ter
techno"o'# )%t the ti&e is not $!r dist!nt *hen o%r !"&ost !""Gro%tine "i$e !ctiities *o%"d )e
contro""ed !nd &!n!'ed )# co&p%ter techno"o'#+
O%r Speech s#ste&, in 8%estion, !"so c!n j%&p oer the "oc!" "i&its !nd c!n cross
oer to (e#)o!rd or &o%se set%ps !nd o$ co%rse c!n )e connected to internet !"so 'iin' it !
*or"d *ide r!n'e o$ oper!tion+
In $%t%re, *e c!n !"so i&p"e&ent this techno"o'# on Ro)otics s#ste&s i!
&icrocontro""er chip pro'r!&&in'+
The s#ste& c!n )e opti&i6ed $%rther, &!de $!ster !nd &ore %serG$riend"#+ The s#ste&
is e!si"# e.p!nd!)"e !nd !n# ne* ch!n'es c!n )e e!si"# !dopted+ M!n# ne* $%nctions !nd
&od%"es c!n )e e!si"# inc"%ded+
-e c!n r%n the C pro'r!&s )# oice in the $%t%re )# this s#ste&+ This $%nction is
&!(in' $or %ser $riend"# to this s#ste&+
4# this s#ste& *e *rite the d!t! *hich is co&es $ro& the spe!(ers !s ! $or& o$
so%nd+ This $%nction reco'ni6es the spe!(ers so%nd !nd *rite it !t p!rtic%"!r p"!ce *here *e
*!nt to *rite it+
4# this oice s#ste& *e sho* the !"" *or( in Hindi ersion in ! "ine in the "o*er p!rt
on the screen "i(e he!d "ines co&es in the ne*s+

JIET, Jind
@
Project Report on SPEECH RECOGNITION SYSTEM
CHAPTER 2
REQUIREMENTS ANALYSIS AND
SPECIFICATION
JIET, Jind
B
Project Report on SPEECH RECOGNITION SYSTEM
2.1 REQUIREMENTS ANALYSIS DIAGRAM
JIET, Jind
C
Fun!"#n$%
Re8%ire&ents Re8%ire&ents
S&W
R'(u")'*'n!
An$%+,",
P')-#)*$n'
R'(u")'*'n!,
D',".n
C#n,!)$"n!,
E/!')n$%
In!')-$'
Project Report on SPEECH RECOGNITION SYSTEM
2.2 SOFTWARE DEVELOPMENT LIFE CYCLE
So$t*!re /ee"op&ent Process consists o$ !rio%s ph!ses, e!ch ph!se
endin' *ith ! de$ined o%tp%t+ The ph!ses !re per$or&ed in !n order speci$ied )#
the process &ode" )ein' $o""o*ed+ 3!rio%s process &ode"s h!e )een proposed
$or dee"opin' so$t*!re+ Ho*eer n 'ener!", !n# pro)"e& so"in' in so$t*!re
&%st consists o$ these !ctiities: re8%ire&ent speci$ic!tion $or %nderst!ndin'
!nd c"e!r"# st!tin' the pro)"e&, desi'n $or decidin' the p"!n $or ! so"%tion,
codin' $or i&p"e&entin' the p"!nned so"%tion, !nd testin' $or eri$#in' the
pro)"e&+
Requirement analysis
Re8%ire&ent !n!"#sis is done in order to %nderst!nd the pro)"e& the
so$t*!re s#ste& is to so"e+ The e&ph!sis in re8%ire&ent !n!"#sis is on
identi$#in' *h!t is needed $or& the s#ste& !nd ho* the s#ste& *i"" !chiee the
'o!"s+ The 'o!" o$ the re8%ire&ent !n!"#sis is to prod%ce the so$t*!re
speci$ic!tion doc%&ent+
Assumption
There !re )!sic !ss%&ptions $or j%sti$#in' the "ine!r orderin' o$ ph!ses in
the &!nner proposed )# the spir!" &ode"+
<or ! s%ccess$%" project res%"tin' in ! s%ccess$%" prod%ct, !"" ph!ses
"isted in the Spir!" &ode" &%st )e per$or&ed !n#*!#+
System Analysis
The )!sic !i& o$ s#ste& !n!"#sis is to o)t!in ! c"e!r %nderst!ndin' o$ the
needs o$ the c"ients !nd the %sers, *h!t e.!ct"# is re8%ired $ro& the so$t*!re
!nd *h!t the constr!ints on the so"%tion !re+ An!"#sis ino"es interie*in' the
c"ients !nd the end %sers the )!sic princip"e %sed in !n!"#sis in diide the
con8%er+
JIET, Jind
D
Project Report on SPEECH RECOGNITION SYSTEM
Analysis Issues
1+ The $irst &!jor iss%e is to o)t!in the necess!r# in$or&!tion+
7+ Ho* to or'!ni6e the in$or&!tion o)t!ined so the in$or&!tion c!n )e+
e$$ectie"# e!"%!ted $or co&p"eteness !nd consistenc# Ho* to reso"e the contr!dictions
th!t &!# e.ists in the in$or&!tion $ro& di$$erent p!rties
Approaches
There !re three !ppro!ches to s#ste& !n!"#sis:
1+ In$or&!" !ppro!ch )!sed on str%ct%red co&&%nic!tion !nd inter!ction+
7+ Concept%!" &ode"in' )!sed !ppro!ch
9+ )otto& %p !ppro!ch
In-#)*$% $00)#$1
The in$or&!" !ppro!ch to !n!"#sis is one *here no de$ined &ethodo"o'#
is %sed+ In this !ppro!ch no $or&!" &ode" is )%i"t o$ the s#ste&+ In s%ch
!ppro!ch, the !n!"#st *i"" h!e ! series o$ &eetin' *hich the c"ient !nd the end
%sers+ This !ppro!ch &!# )e the &ost pr!ctic!" !ppro!ch to !n!"#sis+
Structured analysis
The )!sic s#ste& ie* o$ this !ppro!ch is th!t e!ch s#ste& c!n )e ie*ed
!s ! tr!ns$or&!tion $%nction oper!tion *ith in the eniron&ent th!t t!(es so&e
inp%t $ro& the eniron&ent !nd prod%ce so&e o%tp%ts $or the eniron&ent+ As
this !ppro!ch c!n )e &ode"ed e!si"# )e the d!t! $"o* di!'r!&+
2#!!#* u0 $00)#$1
In this !ppro!ch $irst o$ !"" the &od%"es !re identi$ied !nd desi'ned+ At
"!st !"" the &od%"es !re co&)ined to'ether to &!(e the co&p"ete so$t*!re
project+
JIET, Jind
E
Project Report on SPEECH RECOGNITION SYSTEM
S#-!3$)' En."n'')"n. P$)$4".* A00%"'4 -#) !1' S+,!'*5
<or this project *e h!e %sed the incre&ent!" &ode" p!r!di'&+ 4ec!%se the co&p!n#
needs to !dd $%nction!"it# !s per the need+ -e choose incre&ent!" &ode" )ec!%se this &ode"
co&)ines e"e&ents o$ the "ine!r se8%enti!" &ode" or *!ter $!"" &ode" H!pp"ied repetitie"#I
*ith the iter!tie phi"osoph#+
-hen !n incre&ent &ode" is %sed, the $irst incre&ent is o$ten ! core prod%ct+ Th!t is
)!sic re8%ire&ents !re !ddressed, )%t &!n# s%pp"e&ent!r# $e!t%res Hso&e (no*n, other
%n(no*nI re&!in %nde"iered+ The core prod%ct is %sed )# the c%sto&er !nd !s ! res%"t o$
%se !nd e!"%!tionJ ! p"!n is dee"oped $or the ne.t incre&ent+
JIET, Jind
1F
In)'*'n!$% M#4'% 6S#-!3$)' En."n'')"n. P$)$4".*7
S#-!3$)' En."n'')"n.
1,! In)'*'n!
R'(u")'*'n!
An$%+,",
S+,!'*
D',".n
I*0%'*'n!$!"#n 8
!',!"n.
O0')$!"#n 8
M$"n!'n$n'
2n4 In)'*'n!
R'(u")'*'n!
An$%+,",
S+,!'*
D',".n
I*0%'*'n!$!"#n 8
!',!"n.
O0')$!"#n 8
M$"n!'n$n'
3)4 In)'*'n!
R'(u")'*'n!
An$%+,",
S+,!'*
D',".n
I*0%'*'n!$!"#n 8
!',!"n.
O0')$!"#n 8
M$"n!'n$n'
Project Report on SPEECH RECOGNITION SYSTEM
2.3 HARDWARE 8 SOFTWARE REQUIREMENTS
P)#',,#)
?@F &e'!hert6 HMH6I Penti%& IIGc"!ss processor
BFF MH6 Penti%& IIIGc"!ss processor reco&&ended
O0')$!"n.
S+,!'*
V",u$% S!u4"# .NET 2993 $n :' "n,!$%%'4 #n $n+ #- !1' -#%%#3"n. ,+,!'*,5
1+ Microso$t -indo*s Serer 7FF9
7+ -indo*s >P Pro$ession!"
9+ -indo*s >P Ho&e Edition
1

?+ -indo*s 7FFF Pro$ession!" HSerice P!c( 9 or "!ter re8%iredI
@+ -indo*s 7FFF Serer HSerice P!c( 9 or "!ter re8%iredI
A00%"$!"#n, $n : 4'0%#+'4 !# !1' -#%%#3"n. ,+,!'*,
5
1+ Microso$t -indo*s Serer 7FF9
7+ -indo*s >P Pro$ession!"
9+ -indo*s >P Ho&e Edition
?+ -indo*s 7FFF HSerice P!c( 9 or "!ter reco&&endedI
@+ -indo*s Mi""enni%& Edition H-indo*s MeI
B+ -indo*s ED
C+ Microso$t -indo*s NT ?+F HSerice P!c( B! re8%iredI
M'*#)+
1+ Microso$t -indo*s Serer 7FF9 K 1BF &e'!)#tes HM4I
7+ -indo*s >P Pro$ession!" K 1BF M4
9+ -indo*s >P Ho&e Edition K EB M4
?+ -indo*s 7FFF Pro$ession!" K EB M4
@+ -indo*s 7FFF Serer K 1E7 M4
D)";'
C/GROM or /3/GROM drie is re8%ired $or C/ ersions+
JIET, Jind
11
Project Report on SPEECH RECOGNITION SYSTEM
/3/GROM drie is re8%ired $or /3/ ersions+
D",0%$+ S%per 3GA H1F7?.CBDI or hi'her reso"%tion disp"!# *ith 7@B co"ors
S0''1
D';"',
Mic !nd spe!(ers !re %sed $or oice reco'ni6e !nd $or "istenin' so%nd co&es $ro&
the s#ste&
SPI< Speech App"ic!tion Inter$!ce is %sed $or so%nd reco'ni6e *or( H*ith >PI+
+
Microso$t
En'ine $or
En'"ish
En'ine $or En'"ish
JIET, Jind
17
Project Report on SPEECH RECOGNITION SYSTEM
2.4 REQUIREMENTS SPECIFICATION
2.4.1 INTRODUCTION OF DOTNET
To st!rt *ith, *e h!d the tr!dition!" "!n'%!'e co&pi"ers )# endors "i(e 4or"!nd !nd
Microso$t+ =et,s t!(e the e.!&p"e o$ ! CLC22 co&pi"er+ I$ I *rote ! C22 &od%"e Hs!#
Mod%"e AI, I *o%"d co&pi"e it to !n e.ec%t!)"e+ 4%t *h!t i$ I "!ter $o%nd o%t those portions
o$ Mod%"e A co%"d )e %sed in !nother C22 project o$ &ineM I,d re%se the re8%ired code in
the second project !nd co&pi"e it into !nother e.ec%t!)"e+ I$ there *ere &!n# s%ch projects
*hich re8%ired the code in Mod%"e A !nd I contin%ed to %se this !ppro!ch, I,d soon h!e
&!n# e.ec%t!)"es in &# h!rd dis(, !"" cont!inin' the s!&e piece o$ code+ As #o% c!n see, this
!ppro!ch o$ so%rce code re%s!)i"it# e!ts h!rd dis( sp!ce+ A so"%tion to this pro)"e& *!s the
introd%ction o$ d#n!&ic "in( "i)r!ries H/==sI+
;sin' this !ppro!ch, the code to )e sh!red !&on'st !rio%s !pp"ic!tions *!s coded !s
! /==, !nd e.ported %sin' so&e $%nctions+ C"ient !pp"ic!tions re8%irin' the sh!red code
*o%"d si&p"# "o!d the /==, "oc!tin' the entr# point to the e.ported $%nction+ Th!t so"es !
)i' pro)"e&, ri'htM -ron'+ Tho%'h this !ppro!ch o$ sh!rin' the code %sin' /== s!ed dis(
sp!ce !nd preented e.ec%t!)"es $ro& )ein' )"o!ted )# the s!&e code, it introd%ced !nother,
er# inisi)"e pro)"e&+ I$ ! /== e.portin' the C22 c"!ss cont!inin' the e.ported $%nctions
*!s *ritten %sin' ! p!rtic%"!r co&pi"er, the s!&e co&pi"er h!d to )e %sed to "o!d th!t /==+
Th!t is, i$ #o% *rote ! /== e.portin' ! C22 c"!ss cont!inin' the code to )e re%sed %sin' the
4or"!nd C22 co&pi"er, then on"# ! c"ient *ritten %sin' the 4or"!nd C22 co&pi"er c!n "o!d
!nd %ti"i6e the /==,s e.ported $%nctions+ A Microso$t 3C22 c"ient *on,t )e !)"e to ino(e
the e.ported c"!ss,s $%nctions+ The reerse !"so ho"ds tr%e+ -h# is this soM
This h!ppens )ec!%se e!ch co&pi"er h!s !n independent sche&e o$ e.portin' C22
c"!sses, "e!din' to inco&p!ti)i"it# )et*een co&pi"ers+ Ho*eer, i$ ! nonGc"!ss $%nction is
e.ported %sin' the C c!""in' conention, the pro)"e& o$ interoper!)i"it# )et*een ! c"ient
*ritten %sin' co&pi"er A !nd ! /== *ritten %sin' co&pi"er 4 *on,t !rise+
Th%s, ! so"%tion to the pro)"e& *!s th!t inste!d o$ e.portin' the c"!sses direct"# $ro&
the /==, ! nonGc"!ss $%nction )e e.ported, *hich *o%"d intern!""# inst!nti!ted c"!sses !nd
ret%rn pointers to c"ients so th!t the c"!ss &e&)er $%nctions co%"d )e ino(ed+ A st!nd!rd
JIET, Jind
19
Project Report on SPEECH RECOGNITION SYSTEM
*!s deised *hich dict!ted ho* the c"!sses *o%"d )e i&p"e&ented *ithin the /==, so th!t !
/== desi'ned %sin' "!n'%!'e c"ients *ritten %sin' "!n'%!'e 4 co%"d %se A+
This *!s the phi"osoph# )ehind Microso$t,s hi'h"# s%ccess$%" )in!r# o)ject &ode", pop%"!r"#
(no*n !s COM+ This *!s the st!nd!rd th!t de$ined intern!" c"!ss i&p"e&ent!tion *ithin
/==s+
This is ! er# )rie$ e.p"!n!tion o$ the pro)"e&s $!ced *ith code re%s!)i"it# !nd ho*
the# *ere t!c("ed+ <or &ore insi'hts into the phi"osoph# o$ COM, re!d /on 4o.,s c"!ssic
te.t on COM, Essenti!" COM+ +Net is re"!ted to COM in th!t it t!(es the concept o$ )in!r#
re%s!)i"it# ! step $%rther+ 4e$ore +Net, s%pport $or )in!r# re%s!)i"it# *ithin Microso$t
prod%cts *!s n!tie"# !!i"!)"e in the $or& o$ COM+ So, COM is "!r'e"# p"!t$or& "i&ited to
-indo*s+ O$ co%rse, there !re projects *hich !re in the 'o H!nd h!e s%cceeded to so&e
e.tentI to port COM to other p"!t$or&s "i(e ;NI> !nd M!cintosh, )%t to re!p the $%""
)ene$its o$ COM, one h!d to code $or -indo*s+
-ith +Net, Microso$t proposes to ch!n'e the *!# re%s!)"e code is *ritten+ -hen !n
!pp"ic!tion is coded $or the +Net eniron&ent %sin' !n# o$ its !!i"!)"e "!n'%!'es "i(e C1,
34+NET or 3C22+NET, the code is not on"# )in!r# re%s!)"e H!s in the c!se o$ COMI, )%t
c!n !"so e.ec%te on !n# OS $or *hich the +Net eniron&ent, c!""ed the Co&&on =!n'%!'e
R%nti&e HC=RI, is !!i"!)"e+ As !n inte'r!" p!rt o$ the +Net str!te'#, Microso$t h!s p%)"ished
*h!t is c!""ed the Co&&on =!n'%!'e Speci$ic!tion HC=SI+ The C=S de$ines the *!# endors
sho%"d *rite their co&pi"ers so th!t the# )eco&e co&p"i!nt *ith the C=R !nd c!n cre!te
pro'r!&s $or +Net+ A"so, to e!se ersionin' !nd re'istr!tion pro)"e&s !ssoci!ted *ith
co&ponent dee"op&ent, +Net stores !"" s%ch in$or&!tion *ithin the co&ponent itse"$, !s
opposed to storin' it in the re'istr# !s in done %nder COMLCOM2+ Moreoer, +Net proides
! rich set o$ )%i"tGin c"!sses H!n!"o'o%s in $%nction!"it# to the -in97 APII to he"p #o% *or(
on !n# i&!'in!)"e t!s(+ Since these c"!sses !re &!de !!i"!)"e in +Net i! the C=R, !nd
dee"opers *rite code %sin' !n# C=SGco&p"i!nt co&pi"er, !"" dee"opers 'et to %se the s!&e
set o$ c"!sses, decre!sin' the "e!rnin' c%re *hen &i'r!tin' $ro& one +Net co&pi"er to
!nother+ A"" co&pi"ers prod%ce ! co&&on )in!r# code th!t is e.ec%ted )# the C=R, !nd th%s
dee"opers o$ one +Net "!n'%!'e c!n sh!re )in!r# code prod%ced )# dee"opers %sin' !nother
+Net "!n'%!'e+
JIET, Jind
1?
Project Report on SPEECH RECOGNITION SYSTEM

JIET, Jind
T1' E;#%u!"#n #- M")#,#-! .NET
T1' R#$4 *$0 !# .NET ,!)$!'.+
1@
Project Report on SPEECH RECOGNITION SYSTEM
The +NET $r!&e*or( proides !"" the co&&on serices re8%ired to r%n #o% 3is%!"
4!sic +NET !pp"ic!tions+
4e$ore COM, !pp"ic!tions *ere co&p"ete"# sep!r!te entities *ith "itt"e or no
inte'r!tion+ ;sin' COM, #o% c!n inte'r!te co&ponents *ithin !nd !cross !pp"ic!tions )#
e.posin' co&&on inter$!ces+ Ho*eer, !s ! dee"oper, #o% &%st sti"" *rite the code to *r!p,
&!n!'e, !nd c"e!n %p !$ter co&ponents !nd o)jects+
Overview of the .NET Framework
V
i
s
u
a
l

S
t
u
d
i
o

.
N
E
T
V
i
s
u
a
l

S
t
u
d
i
o

.
N
E
T
Common Language Specification Common Language Specification
Visual Visual
asic asic
C!! C!! C" C" #" #" $ $
.NET Framework .NET Framework
JIET, Jind
1B
Project Report on SPEECH RECOGNITION SYSTEM
2u"%4"n. C#*0#n'n!, "n !1' .NET F)$*'3#)=
In the +NET <r!&e*or(, co&ponents !re )%i"t on ! co&&on $o%nd!tion+ Yo% no
"on'er need to *rite the code to !""o* o)jects to inter!ct direct"# *ith e!ch other+ In the +NET
eniron&ent, #o% no "on'er need to *rite co&ponent *r!ppers )ec!%se co&ponents do not
%se *r!ppers+ The +NET <r!&e*or( c!n interpret the constr%cts th!t dee"opers !re
!cc%sto&ed to %sin' in o)ject oriented "!n'%!'es+ The +NET <r!&e*or( $%""# s%pports c"!ss,
inherit!nce, &ethods, properties, eents, po"#&orphis&, constr%ctors !nd other o)jects
oriented constr%cts+
T1' C#**#n L$n.u$.' S0'"-"$!"#n
The co&&on =!n'%!'e Speci$ic!tion HC=SI de$ines the co&&on st!nd!rds to *hich
"!n'%!'es !nd dee"opers &%st !dhere i$ the# *!nt their co&ponents !nd !pp"ic!tions to )e
*ide"# %se!)"e )# other +NET co&p!ti)"e "!n'%!'es, The C=S !""o*s 3is%!" 4!sic +NET
dee"opers to cre!te !pp"ic!tions !s p!rt o$ ! &%"tip"e "!n'%!'e te!& *ith the (no*"ed'e th!t
there *i"" )e no pro)"e&s inte'r!tin' the di$$erent "!n'%!'es+ The C=S een !""o*s 3is%!"
4!sic +NET dee"opers to inherit $ro& c"!sses de$ined in di$$erent "!n'%!'es+
V",u$% S!u4"# .NET
In the +NET <r!&e*or(, 3is%!" St%dio +NET proides the too"s #o% c!n %se $or r!pid
!pp"ic!tion dee"op&ent+
In this topic, #o% *i"" "e!rn !)o%t so&e o$ the )ene$its o$ the +NET <r!&e*or(+
G#$%, #- !1' .NET F)$*'3#)=
The +NET <r!&e*or( *!s desi'ned to &eet the $o""o*in' 'o!"s:
1+ 4!sed on -e) st!nd!rds !nd pr!ctices
The +NET <r!&e*or( $%""# s%pports the e.istin' Internet techno"o'ies, inc"%din'
H#perte.t M!r(%p =!n'%!'e HHTM=I, >M=, SOAP, E.tensi)"e St#"e sheet
=!n'%!'e $or Tr!ns$or&!tions H>S=TI, P!th, !nd other -e) st!nd!rds+ The +NET
<r!&e*or( $!ors "oose"# connected, st!te"ess -e) serices+
7+ E.tensi)"e
JIET, Jind
1C
Project Report on SPEECH RECOGNITION SYSTEM
The hier!rch# o$ the +NET <r!&e*or( is not hidden $ro& the dee"oper+ Yo% c!n
!ccess !nd e.tend +NET c"!sses H%n"ess the# !re se!"edI )# %sin' inherit!nce+ Yo%
c!n !"so i&p"e&ent crossG"!n'%!'e inherit!nce+
9+ E!s# $or dee"opers to %se
In the +NET <r!&e*or(, code is or'!ni6ed into hier!rchic!" n!&esp!ces !nd
c"!sses+ The $r!&e*or( proides ! co&&on t#pe s#ste&, re$erred to !s the %ni$ied
t#pe s#ste&, th!t is %sed )# !nd +NET <r!&e*or( co&p!ti)"e "!n'%!'e+ In the
%ni$ied t#pe s#ste&, eer#thin' is !n o)ject+ There !re no !ri!nt t#pes, there is
on"# one strin' t#pe !nd !"" strin' d!t! is ;nicode+
?+ /esi'ned %sin' %ni$ied !pp"ic!tion &ode"s
+NET c"!ss $%nction!"it# is !!i"!)"e $ro& !n# +NET <r!&e*or( co&p!ti)"e
"!n'%!'e or pro'r!&&in' &ode"+
JIET, Jind
1D
Project Report on SPEECH RECOGNITION SYSTEM
enefits of the .NET Framework
ased on %e& standards and practices
E'tensi&le
Eas( for developers to use
)esigned using unified application models
%indows *+, %indows *+,
Visual asic Forms Visual asic Forms -FC.*TL -FC.*TL *S+ *S+
.NET Framework .NET Framework
A4;$n!$.', #- .NET
ASP+NET is the "!test Microso$t pro'r!&&in' $r!&e*or( th!t !""o*s $or the r!pid
dee"op&ent o$ po*er$%" *e) !pp"ic!tions:
<!ster *e) !pp"ic!tions: T*o !spects o$ ASP+NET &!(e it $!st N co&pi"ed code !nd c!chin'+
In the p!st, the code *!s interpreted into &!chine "!n'%!'e *hen #o%r *e)site isitor
ie*ed #o%r p!'e+ No* *ith ASP+NET, the code is co&pi"ed into &!chine "!n'%!'e
)e$ore #o%r isitor eer co&es to #o%r site+
No need o$ third p!rt# too": In ASP+NET $or !%to&!ted eG&!i" s#ste& !nd %p"o!din'
the $i"es no need o$ %se o$ third p!rt# too" "i(e A4C ;p"o!d !nd ASP E&!i" /"" !s+ NET
JIET, Jind
1E
Project Report on SPEECH RECOGNITION SYSTEM
<r!&e*or( is !"re!d# h!in' this c"!ss+ C!chin' is the stor!'e o$ in$or&!tion th!t *i"" )e
re%sed in ! &e&or# "oc!tion $or $!ster !ccess in the $%t%re+ASP+NET !""o*s pro'r!&&ers to
set %p p!'es or !re!s o$ p!'es th!t !re co&&on"# re%sed to )e c!ched $or ! set period o$ ti&e
to i&proe the per$or&!nce o$ *e) !pp"ic!tions+ In !ddition, ASP+NET !""o*s the c!chin' o$
d!t! $ro& ! d!t!)!se so #o%r *e)site isn,t s"o*ed do*n )# $re8%ent isits to ! d!t!)!se *hen
the d!t! doesn,t ch!n'e er# o$ten+
ASP+NET *!s tested !nd $o%nd to )e oer 1F ti&es $!ster $or the !er!'e %ser th!n
!n# other techno"o'#+ -hi"e there h!e )een so&e de)!tes !)o%t the &ethods o$ testin', it is
interestin' to note th!t this h!s )een !"id!ted )# 9
rd
p!rties+
Me&or# "e!(s !nd cr!shes protection: ASP+NET !%to&!tic!""# recoers $ro&
&e&or# "e!(s !nd errors to &!(e s%re th!t #o%r *e)site is !"*!#s !!i"!)"e to #o%r isitors+
M%"tip"e "!n'%!'e s%pport: Pro'r!&&ers c!n !ct%!""# *rite their code in &ore th!n
7@ +NET "!n'%!'es Hinc"%din' 34+NET, C1, !nd Jscript+NETI+ This !""o*s pro'r!&&ers to
dee"op #o%r site in the "!n'%!'e+
An#one *ho h!s dee"oped in J!! h!s enco%ntered the *onders o$ J!! Re$"ection
s#ste&+ Re$"ection is the ter& %sed to descri)e the !)i"it# to retriee t#pe in$or&!tion !)o%t !
J!! c"!ss r%nti&e+ Thro%'h Re$"ection, ! J!! c"!ss *i"" te"" #o% !)o%t the &ethods it
cont!ins, *hether the# !re p%)"ic or pri!te, the !r'%&ents it e.pects, the &e&)er !ri!)"es
JIET, Jind
7F
C22
E.ec%t!)"e Code
E.ec%t!)"e Code
R%nti&e
R%nti&e
E.ec%t!)"e Code
34
C22
I=
C
=
R
Code
E.ec%ted
34
Project Report on SPEECH RECOGNITION SYSTEM
cont!ined inside the c"!ss, etc+ Not )ein' the sort to i'nore 'ood ide!s, Microso$t h!s
inc"%ded Re$"ection in+ Net, !nd h!s ens%red th!t it is de$ined !s p!rt o$ the core C=R Hin
other *ords, eer# con$or&!nt +Net r%nti&e &%st s%pport re$"ectionI+ Microso$t, ho*eer,
h!s t!(en re$"ection to the ne.t "ee", !""o*in' pro'r!&&ers to inc"%de c%sto& in$or&!tion
*ith ! +Net c"!ss, *hich c!n )e retrieed %sin' the +Net re$"ection APIs+ C%sto&i6!)"e t#pe
in$or&!tion is !n i&port!nt, &!(es #o%r pro'r!& si&p"er !nd e!sier to &!n!'e+
T1' C#**#n L$n.u$.' Run!"*'
One o$ the &!jor co&ponents o$ the +NET <r!&e*or( is the Co&&on =!n'%!'e
R%nti&e, or C=R+ The C=R proides ! n%&)er o$ )ene$its to the dee"oper, s%ch !se.ception
h!nd"in', sec%rit#, de)%''in', !nd ersionin' !nd these )ene$its !re !!i"!)"e to !n#
"!n'%!'e )%i"t $or the C=R+ This &e!ns th!t the C=R c!n host ! !riet# o$ "!n'%!'es, !nd c!n
o$$er ! co&&on set o$ too"s !cross those "!n'%!'es+ Microso$t B Ch!pter 1: -h# Sho%"d Yo%
Moe to 3 i s % ! " 4 ! s i c+ N E TM h!s &!de 34, C22, !nd C1pre&ier "!n'%!'es $or the
C=R, *hich &e!ns th!t these three "!n'%!'es $%""# s%pport the C=R+ In !ddition, other
endors h!e si'ned %p to proide i&p"e&ent!tions o$ other "!n'%!'es, s%ch !s Per", P#thon,
!nd een CO4O=+
-hen ! co&pi"er co&pi"es $or the C=R, this code is s!id to )e &!n!'ed code+
M!n!'ed code is si&p"# code th!t t!(es !d!nt!'e o$ the serices o$$ered )# the C=R+ <or
the r%nti&e to *or( *ith &!n!'ed code, th!t code &%st cont!in &et!d!t!+ This &et!d!t! is
cre!ted d%rin' the co&pi"!tion process )# co&pi"ers t!r'etin' the C=R+ The &et!d!t! is
stored *ith the co&pi"ed code !nd cont!ins in$or&!tion !)o%t the t#pes, &e&)ers, !nd
re$erences in the code+ A&on' other thin's, the C=R %ses this &et!d!t! to
O =oc!te c"!sses
O =o!d c"!sses
O Gener!te n!tie code
O Proide sec%rit#
The r%nti&e !"so h!nd"es o)ject "i$eti&es+ J%st !s COMLCOM2 proided re$erence
co%ntin' $or o)jects, the C=R &!n!'es re$erences to o)jects !nd re&oes the& $ro& &e&or#
*hen !"" the re$erences !re 'one, thro%'h the process (no*n !s '!r)!'e co""ection+ A"tho%'h
'!r)!'e co""ection !ct%!""# 'ies #o% s"i'ht"# "ess contro" th!n #o% h!d in 34, #o% '!in so&e
JIET, Jind
71
Project Report on SPEECH RECOGNITION SYSTEM
i&port!nt )ene$its+ <or e.!&p"e, #o%r errors sho%"d decre!se )ec!%se the n%&)er o$ o)jects
th!t end %p h!n'in' !ro%nd d%e to circ%"!r re$erences sho%"d )e red%ced or co&p"ete"#
e"i&in!ted+ In !ddition, '!r)!'e co""ection ends %p )ein' &%ch $!ster th!n the o"d *!# o$
destro#in' o)jects in 34+
Inst!nces o$ o)jects #o% cre!te th!t !re &!n!'ed )# the r%nti&e !re c!""ed &!n!'ed
d!t!+ Yo% c!n inter!ct *ith )oth &!n!'ed !nd %n&!n!'ed d!t! in the s!&e !pp"ic!tion,
!"tho%'h &!n!'ed d!t! 'ies #o% !"" the )ene$its o$ the r%nti&e+ The C=R de$ines ! st!nd!rd
t#pe s#ste& to )e %sed )# !"" C=R "!n'%!'es+ This &e!ns th!t !"" C=R "!n'%!'es *i"" h!e
the s!&e si6e inte'ers !nd "on's, !nd the# *i"" !"" h!e the s!&e t#pe o$ strin'Kno &ore
*orr#in' !)o%t 4Strs !nd CStrsP This st!nd!rd t#pe s#ste& opens %p the door $or so&e
po*er$%" "!n'%!'e interoper!)i"it#+ <or e.!&p"e, #o% c!n p!ss ! re$erence o$ ! c"!ss $ro&
one co&ponent to !nother, een i$ those co&ponents !re *ritten in di$$erent "!n'%!'es+ Yo%
!"so c!n derie ! c"!ss in C1 $ro& ! )!se c"!ss *ritten in 34+NET, or !n# other co&)in!tion
o$ "!n'%!'es t!r'eted to the r%nti&e+ /on,t $or'et th!t COM h!d ! set o$ st!nd!rd t#pes !s
*e"", )%t the# *ere )in!r# st!nd!rds+ This &e!nt th!t *ith COM, #o% h!d "!n'%!'e
interoper!)i"it# !t r%n ti&e+ -ith +NET,s t#pe st!nd!rd, #o% h!e "!n'%!'e interoper!)i"it# !t
desi'n ti&e+
The Co&&on =!n'%!'e R%nti&e C
A$ter it is co&pi"ed, &!n!'ed code inc"%des &et!d!t!, *hich cont!ins in$or&!tion
!)o%t the co&ponent itse"$, !nd the co&ponents %sed to cre!te the code+ The r%nti&e c!n
chec( to &!(e s%re th!t reso%rces on *hich #o% depend !re !!i"!)"e+ The &et!d!t! re&oes
the need to store co&ponent in$or&!tion in the re'istr#+ Th!t &e!ns &oin' ! co&ponent to
! ne* &!chine does not re8%ire re'istr!tion H%n"ess it *i"" )e ! '"o)!" !sse&)"#, *hich is
descri)ed in Ch!pter ?, 4%i"din' C"!sses !nd Asse&)"ies *ith 34+NETI, !nd re&oin'
co&ponents is !s si&p"e !s de"etin' the&+ As #o% c!n see, the Co&&on =!n'%!'e R%nti&e
proides ! n%&)er o$ )ene$its th!t !re not on"# ne*, )%t sho%"d enh!nce the e.perience o$
)%i"din' !pp"ic!tions+ Other )ene$its th!t #o% *i"" see in &ore det!i" inc"%de so&e o$ the ne*
o)jectGoriented $e!t%res to 34+NET+ M!n# o$ these ne* $e!t%res !re not so &%ch !dditions to
the "!n'%!'e !s the# !re $e!t%res o$ the r%nti&e th!t !re si&p"# )ein' e.posed to the
34+NET+
C#*0"%$!"#n $n4 E/'u!"#n #- $ .NET A00%"$!"#n
JIET, Jind
77
Project Report on SPEECH RECOGNITION SYSTEM
-hen #o% co&pi"e ! +NET !pp"ic!tion, it is not co&pi"ed to )in!r# &!chine codeJ
r!ther, it is conerted to I=+ This is the $or& th!t #o%r dep"o#ed !pp"ic!tion t!(esKone or
&ore !sse&)"ies consistin' o$ e.ec%t!)"e $i"es !nd /== $i"es in I= $or&+ At "e!st one o$ these
!sse&)"ies *i"" cont!in !n e.ec%t!)"e $i"e th!t h!s )een desi'n!ted !s the entr# point $or the
!pp"ic!tion+
-hen e.ec%tion o$ #o%r pro'r!& )e'ins, the $irst !sse&)"# is "o!ded into &e&or#+ At
this point, the co&&on "!n'%!'e r%nti&e e.!&ines the !sse&)"# &!ni$est !nd deter&ines the
re8%ire&ents to r%n the pro'r!&+ It e.!&ines sec%rit# per&issions re8%ested )# the !sse&)"#
!nd co&p!res the& *ith the s#ste&,s sec%rit# po"ic#+ I$ the s#ste&,s sec%rit# po"ic# does not
!""o* the re8%ested per&issions, the !pp"ic!tion *i"" not r%n+ I$ the !pp"ic!tion p!sses the
s#ste&,s sec%rit# po"ic#, the co&&on "!n'%!'e r%nti&e e.ec%tes the code+ It cre!tes !
process $or the !pp"ic!tion to r%n in !nd )e'ins !pp"ic!tion e.ec%tion+ -hen e.ec%tion st!rts,
the $irst )it o$ code th!t needs to )e e.ec%ted is "o!ded into &e&or# !nd co&pi"ed into n!tie
)in!r# code $ro& I= )# the co&&on "!n'%!'e r%nti&e,s J%stGInGTi&e HJITI co&pi"er+ Once
co&pi"ed, the code is e.ec%ted !nd stored in &e&or# !s n!tie code+ Th%s, e!ch portion o$
code is co&pi"ed on"# once *hen !n !pp"ic!tion e.ec%tes+ -heneer pro'r!& e.ec%tion
)r!nches to code th!t h!s not #et r%n, the JIT co&pi"er co&pi"es it !he!d o$ e.ec%tion !nd
stores it in &e&or# !s )in!r# code+ This *!#, !pp"ic!tion per$or&!nce is &!.i&i6ed )ec!%se
on"# the p!rts o$ ! pro'r!& th!t !re e.ec%ted !re co&pi"ed+
2.4.2 A2OUT C>
CSh!rp H!"so *ritten !s C1I is ! pro'r!&&in' "!n'%!'e $or dee"opin' !pp"ic!tions
$or Microso$t,s +Net p"!t$or&+ It,s !n o)jectGoriented "!n'%!'e deried $ro& C !nd C22, !nd
!i&s to incorpor!te 3is%!" 4!sic,s e!se o$ %se+ It,s )%i"t *ith the -e) in &ind !nd c"!i&s to
JIET, Jind
79
Project Report on SPEECH RECOGNITION SYSTEM
proide !n eniron&ent th!t,s in s#nc *ith HTM= >M=, !nd SOAP+
4e$ore *e "oo( !t its $e!t%res, "et,s $irst "oo( !t the +Net eniron&ent !nd its (e# $e!t%res+
The +Net p"!t$or& c"!i&s to )e "!n'%!'eGne%tr!", th!t is, it,s desi'ned to s%pport !n#
"!n'%!'e !nd o$$ers interG"!n'%!'e !nd interG&!chine interoper!)i"it#+ -h!t this &e!ns is
th!t &od%"es *ritten in C1 *o%"d !"so )e co&p!ti)"e *ith those *ritten in 3C22 !nd 3is%!"
4!sic+
The +Net eniron&ent centers !ro%nd ! Co&&on =!n'%!'e R%nti&e HC=RI !nd ! set
o$ "i)r!ries th!t c!n )e %sed )# ! *ide !riet# o$ "!n'%!'es+ A C=RGco&p!ti)"e "!n'%!'e
co&pi"es its code to !n Inter&edi!te =!n'%!'e HI=I inste!d o$ the n!tie code+ The I= in t%rn
%ses ! j%stGinGti&e co&pi"er to conert this code to n!tie &!chine code+
Another %se$%" $e!t%re o$ the +Net p"!t$or& is -e)G)!sed serices+ -e) serices !re
%sed to e.ch!n'e d!t! oer the -e)+ The# %se st!nd!rd $or&!ts !nd protoco"s !nd en!)"e
*e)sites to inte'r!te *ith other sites !nd serices+ C1 h!s )%i"tGin s%pport to t%rn !n#
co&ponent into ! -e) serice+ This c!n then )e ino(ed oer the Internet $ro& !n#
!pp"ic!tion r%nnin' on !n# p"!t$or&+
As ! dee"oper, #o% j%st need the +Net S/0 !nd ! te.t editor "i(e Notep!d to *rite
#o%r code+ Yo% c!n do*n"o!d the )et! o$ the S/0 $ro& http:LL&sdn+&icroso$t+ co&Lnet+ It,s
!n DF M4 do*n"o!d !nd !"so cont!ins the C1 co&&!ndG"ine co&pi"er HCSC+e.eI+ The ne.t
ersion o$ 3is%!" St%dio C *i"" h!e co&p"ete s%pport $or +Net dee"op&ent+ In !ddition to
C1, 3is%!" St%dio !"so inc"%des 3is%!" 4!sic, 3C22, 34Script, !ndJscript+
=et,s "oo( !t ! si&p"e C1 pro'r!& to see *h!t the C1 code "oo(s "i(e+ A$ter
inst!""in' the +Net S/0, t#pe the $o""o*in' "ines o$ code in ! te.t editor+ S!e this
$i"e *ith ! CS e.tension, $or e.!&p"e, te.t+cs+
;sin' S#ste&J
C"!ss he""o
Q
St!tic oid &!in H I
Q
Conso"e+-rite=ine HHe""o, C1 -or"dI J
JIET, Jind
7?
Project Report on SPEECH RECOGNITION SYSTEM
R
R
To co&pi"e the pro'r!&, *rite CSC test+cs+ This *i"" *rite the te.t 5He""o, C1 *or"d, in the
*indo*+
F'$!u)',
C1 h!s ! set o$ $e!t%res+ -e,"" )rie$"# coer so&e o$ the&+
A ,"n.%' ?.@ 4#! #0')$!#)
;n"i(e C22, C1 h!s ! sin'"e dot oper!tor $or eer#thin'+ C22 h!s di$$erent oper!tors,
s%ch !s 5::, , 5GS, , !nd 5+ 5$or n!&esp!ces, &e&)ers, !nd re$erences+ This c!n 'et er#
con$%sin' $or the pro'r!&&er !s the# h!e to re&e&)er *hen to %se 5GS, pointer indic!tor,
*hen to %se 5: :, $or ! c"!ss &e&)er, !nd *hen to %se the dot+ C1 does !*!# *ith the
di$$erent oper!tors !nd %ses ! sin'"e 5+, H/otI+ So #o% no "on'er need to tr!c( *hich oper!tor
to %se $or &e&)ers, c"!sses, n!&esp!ces, etc+
D'"*$% $n4 S!)"n. 4$!$ !+0',
C1 s%pports ! *ide !riet# o$ d!t! t#pes s%ch !s )oo", )#te, %)#te, short, %short, int,
%int, "on', %"on', $"o!t, do%)"e, etc+ In !ddition to these, it introd%ces the deci&!" !nd strin'
d!t! t#pes too+
A!!)":u!',
E!ch &e&)er o$ ! c"!ss h!s !n !ccess !ttri)%te+ Ap!rt $ro& the p%)"ic, pri!te, !nd
protected, C1 introd%ces !n intern!" !ttri)%te too+ Th%s #o% h!e p%)"ic, protected, intern!",
protected intern!", or pri!te+ Si&p"# spe!(in', ! p%)"ic &ethod is one th!t,s !ccessi)"e to !""+
A protected &ethod is !ccessi)"e on"# $ro& the deried c"!ss+ An intern!" &ethod is
!ccessi)"e on"# $ro& *ithin the !sse&)"# !nd ! protected intern!" &ethod is !ccessi)"e on"#
$ro& deried c"!sses *ithin the !sse&)"#+ Asse&)"ies !re E>Es or /==s 'ener!ted $ro&
co&pi"in' ! project o$ $i"es+ A pri!te &ethod is !ccessi)"e on"# $ro& the c"!ss itse"$+
JIET, Jind
7@
Project Report on SPEECH RECOGNITION SYSTEM
N# *#)' >"n%u4', "n +#u) 0)#.)$*
As seen in the !)oe e.!&p"e, in C1 #o% don,t need to !dd 1inc"%des in #o%r
pro'r!&+ Yo% j%st need to inc"%de ! p!rtic%"!r n!&esp!ce to '!in !ccess to the c"!sses !nd
o)jects *ithin it+ A n!&esp!ce is ! co""ection o$ +Net c"!sses+ <or e.!&p"e, inste!d o$ %sin'
1inc"%de Tstd"i)+hS, 1inc"%de Tstdio+hS, 1inc"%de Tstrin'+hS, etc, in #o%r pro'r!&s #o% j%st
need to *rite 5;sin' S#ste&,+
G$):$.' #%%'!"#n
In C1 &e&or# &!n!'e&ent is no "on'er #o%r d%t#+ The r%nti&e proides ! '!r)!'e
co""ector th!t,s responsi)"e $or &e&or# &!n!'e&ent in #o%r pro'r!&s+ Yo% don,t h!e to
&!n%!""# &!n!'e it+ G!r)!'e co""ection is ! s#ste& *here)# ! r%nGti&e co&ponent t!(es the
responsi)i"it# o$ &!n!'in' the "i$eti&e o$ the o)jects !nd the &e&or# the# occ%p#+
O:A'! #)"'n!'4
C1 is !n o)jectGoriented "!n'%!'e !nd s%pports !"" the &!in o)jectGoriented concepts
s%ch !s enc!ps%"!tion, inherit!nce, !nd po"#&orphis&+ There !re no '"o)!" $%nctions,
!ri!)"es or const!nts, !nd eer#thin' is enc!ps%"!ted inside ! c"!ss, either !s !n inst!nce or !
st!tic &e&)er+ A"so, !ri!)"es in C1 !re !%to&!tic!""# initi!"i6ed )# the eniron&ent+
Object Oriented Programming Paradigm
The &!jor &oti!tin' $!ctor in the eniron&ent o$ o)jectGoriented !ppro!ch is to
re&oe so&e o$ the $"!*s enco%ntered in the proced%r!" !ppro!ch+ OOP tre!ts d!t! !s !
critic!" e"e&ent in the pro'r!& dee"op&ent !nd does not !""o* it to $"o* $ree"# !ro%nd the
s#ste&+ It ties d!t! &ore c"ose"# to the $%nctions th!t oper!te on it, !nd protect it $ro&
!ccident!" &odi$ic!tion $ro& o%tside $%nctions+ OOP !""o*s deco&position o$ ! pro)"e&
into ! n%&)er o$ entities c!""ed o)jects !nd then )%i"ds d!t! !nd $%nctions !ro%nd these
o)jects+ The d!t! o$ !n o)ject c!n )e !ccessed on"# )# the $%nctions !ssoci!ted *ith th!t
o)ject+ Ho*eer $%nctions o$ one o)ject !ccess the $%nction o$ other o)jects+
So&e o$ the stri(in' $e!t%res o$ o)ject N oriented pro'r!&&in' !re:
JIET, Jind
7B
Project Report on SPEECH RECOGNITION SYSTEM
E&ph!sis is on d!t! r!ther th!n proced%re+
Pro'r!&s !re diided into *h!t !re (no*n !s o)jects+
<o""o*s )otto& %p !ppro!ch in pro'r!& desi'n+
T+0' ,$-'
C1 i&p"e&ents strict t#pe s!$et#+ Yo% c!n,t %se %nGiniti!"i6ed !ri!)"es+ 4o%nds
chec(in' !re p!rt o$ C1+ So it,s no "on'er possi)"e to %se &ore n%&)er o$ e"e&ents th!n
dec"!red in !n !rr!#+ This !"so &!(es it i&possi)"e to oer*rite %n!""oc!ted &e&or#+ Arr!#s
!re considered !nd h!nd"ed "i(e o)jects in C1 !nd not "i(e !n !ddress!)"e stre!& o$ )#tes !s
in C22+ The# !re !"so !%to&!tic!""# '!r)!'e co""ected, so #o% don,t need to destro# the&
!$ter %sin' the&+
V'),"#n $:%'
-hen #o% inst!"" &%"tip"e !pp"ic!tions, di$$erent ersions o$ the s!&e /== !re
inst!""ed on #o%r PC+ This &!# cre!te pro)"e&s, !s !t ti&es o"der !pp"ic!tions &!# not *or(
*ith the ne*er ersion o$ the /== !nd c!n )re!(+ C1 does its )est to s%pport this ersionin'+
-ith this s%pport in p"!ce, !s #o%r c"!ss "i)r!r# eo"es it,"" ret!in )in!r# co&p!ti)i"it# *ith
e.istin' c"ient !pp"ic!tions+ Th%s, )oth the o"d !nd ne* ersions o$ the so$t*!re *i"" r%n
*itho%t !n# pro)"e&s+
P)#.)$**"n. "n C>
C1 is one o$ the pre&ier *e!pons in the +Net !r&or# !nd is &%ch t!"(ed !)o%t these
d!#s+ Oer the p!st $e* &onths, *e,e c!rried !rtic"es *here *e,e %sed code *ritten in C1+
St!rtin' this &onth, *e,"" sho* #o% ho* to pro'r!& in C1+ The !rtic"es *i"" )e *ritten $ro&
JIET, Jind
7C
Project Report on SPEECH RECOGNITION SYSTEM
! )e'inner,s point o$ ie*, tho%'h there !re $e* !ss%&ptions *e,"" &!(e+ These !re th!t
#o%,re $!&i"i!r *ith o)ject oriented pro'r!&&in' HOOPI !nd ter&s "i(e c"!sses, o)jects,
&ethod, irt%!" $%nctions, et !"J !nd th!t #o% do h!e so&e pro'r!&&in' e.perience,
pre$er!)"# in ! "!n'%!'e "i(e C, C22, or J!! Hp"e!se re$er to the !rtic"e on o)ject oriented
pro'r!&&in', tit"ed OOPS E.p"!ined, p!'e 1BE, in this iss%e i$ #o% need to $!&i"i!ri6e
#o%rse"$ *ith these conceptsI+
=et,s not st!rt )# )re!(in' tr!ditions+ So, *e,"" 'et 'oin' *ith the He""o -or"dP C1 pro'r!&:
LL This is &# $irst C1 pro'r!&
%sin' S#ste&J
c"!ss CHe""o-or"d
Q
p%)"ic st!tic oid M!inHI
Q
Conso"e+-rite=ineHHe""o -or"dPIJ
R
R
This *i"" see& $!&i"i!r to CLC22LJ!! '%#s+ =et,s dissect it to %nderst!nd C1
$%rther+To )e'in *ith, re&!r(s !re identi$ied %sin' the $!&i"i!r CLC22 st#"eKt*o $or*!rd
s"!shes, LL+ Yo% c!n !"so %se the st!nd!rd C LU UL re&!r( indic!tors i$ #o% h!e &%"ti"ine
re&!r(s co&in' %p in #o%r code+ No* *e co&e to %n$!&i"i!r territor#K%sin' S#ste&J+ To
%nderst!nd *h!t this does, 'o )!c( to the 1inc"%de preprocessor directies *hich #o% %se in
CLC22+ -hi"e the 1inc"%de directie he"ps dec"!re the protot#pes o$ the $%nctions to )e %sed
in the pro'r!& !"on' *ith !n# other c"!ss, str%ct%re, or %nion dec"!r!tionsJ the %sin' (e#*ord
in C1 de$ines the n!&esp!ce to )e %sed )# the pro'r!&+ Si&p"# p%t, ! n!&esp!ce is !
co""ection o$ c"!sses 'ro%ped to'ether, %s%!""# on the )!sis o$ the $%nction!"it# the# proide+
So, *hen the pro'r!& s!#s
%sin' S#ste&J
-h!t this re!""# &e!ns is th!t the pro'r!& is 'oin' to %se c"!sses de$ined in the
S#ste& n!&esp!ce+ The S#ste& n!&esp!ce h!ppens to )e the &ost %sed !nd %se$%", 'ener!"G
JIET, Jind
7D
Project Report on SPEECH RECOGNITION SYSTEM
p%rpose +Net n!&esp!ce, proidin' $!ci"ities "i(e *or(in' *ith strin's, inte'ers, !rr!#s, !nd
&ore+ J!! pro'r!&&ers *i"" $ind the $%nction!"it# o$ the %sin' (e#*ord si&i"!r to th!t o$ the
i&port (e#*ord+
Moin' on, *e co&e to the "ine *here the CHe""o-or"d c"!ss h!s )een de$ined+ This
is !nother ch!n'e $ro& tr!dition!" CLC22 pro'r!&&in'+ -hi"e #o% c!n h!e $%nctions
o%tside ! c"!ss in CLC22, in C1, "i(e in J!!, !"" $%nctions !re &e&)ers o$ so&e c"!ss or the
other+ And !n# one o$ the c"!sses sho%"d de$ine !nd i&p"e&ent the M!in &ethod, *hich
seres the s!&e p%rpose !s &!in in CLC22, to st!rt pro'r!& e.ec%tion+ Ho*eer, there is !
di$$erenceKC1,s M!in h!s ! c!pit!" M inste!d o$ the "o*erc!se & in CLC22+-e no* co&e
to the si'n!t%re o$ the M!in &ethod+p%)"ic st!tic oid M!inHIP!rsin' $ro& ri'ht to "e$t, *e
$irst enco%nter oid, the &e!nin' o$ *hich is th!t the M!in &ethod isn,t 'oin' to ret%rn !n#
!"%e to its c!""erKthe +Net r%nti&e eniron&ent+ 3!"%es !re %s%!""# ret%rned $ro& the M!in
&ethod to ret%rn error codes, i$ !n#, to the oper!tin' s#ste& or r%nti&e eniron&ent+ Ne.t,
*e h!e the st!tic (e#*ord+ This ho"ds the s!&e &e!nin' !s it ho"ds %nder C22 !nd J!!+ So,
i$ #o% !re $!&i"i!r *ith it, #o% c!n s(ip the $o""o*in' disc%ssion+
OOP he"ps %s desi'n so$t*!re to t!c("e re!"G"i$e pro)"e&s )etter )# introd%cin' the
concept o$ %serGde$ined d!t! t#pes, *hich he"p !)str!ct re!"G"i$e o)jects !s c"ose"# !s
possi)"e+ These %serGde$ined d!t! t#pes !re ter&ed !s c"!sses+ To %se ! c"!ss, #o% h!e to
inst!nti!te it+ Th!t is, #o% h!e to dec"!re ! !ri!)"e *hose t#pe is the %serGde$ined d!t! t#pe
Hthe c"!ssI+ So, i$ CHe""o-or"d is ! c"!ss, then it is inst!nti!ted !s:
CHe""o-or"d, o)jJ
-here o)j is ! !ri!)"e o$ the t#pe CHe""o-or"d c"!ss+ Technic!""#, o)j is s!id to )e
!n o)ject o$ the c"!ss CHe""o-or"d+
No*, *ithin the c"!ss dec"!r!tion, *e dec"!re the $%nctions !nd !ri!)"es th!t de$ine
the $%nction!"it# !nd ch!r!cteristics o$ the c"!ss respectie"#+ In OOP ter&ino"o'#, these
$%nctions !re c!""ed &ethods !nd the !ri!)"es !re c!""ed properties+ Tr!dition!""#, &ethods
!nd properties !re %sed %pon the inst!nti!ted o)ject, !nd not the *ho"e c"!ss+ Th!t is, i$ si6e
h!ppens to )e the propert# o$ the CHe""o-or"d c"!ss, !nd o)j is !n o)ject o$ the t#pe
JIET, Jind
7E
Project Report on SPEECH RECOGNITION SYSTEM
CHe""o-or"dV then si6e *o%"d re$erred to !s: o)j+si6eW1FJ i$ it *ere )ein' !ssi'ned ! !"%e+
In the s!&e &!nner, the &ethods !re c!""ed %pon the o)ject !ri!)"es+ Hence, $or t*o
di$$erent o)jects, the si6e propert# co%"d )e c!rr#in' di$$erent !"%es+ Hence, properties !nd
&ethods !re %s%!""# *or(ed %pon ! perGo)ject )!sis+
Ho*eer, there !re ti&es *hen properties or &ethods need to )e *or(ed %pon ! perG
c"!ss )!sis+ In s%ch ! c!se, the#,re pre$i.ed )# the st!tic (e#*ord, *hich te""s the co&pi"er
th!t the propert# or &ethod sho%"d )e &!de e.istent on ! perGc"!ss )!sis, !nd not on perG
o)ject )!sis+ And th!t,s *h!t the M!in &ethod o$ the c"!ss CHe""o-or"d is+ It,s ! perGc"!ss
&ethod, !nd the c!""in' conention o$ st!tic &ethods is:
CHe""o-or"d+M!in
The str%ct%re is: Tc"!ssGn!&eS+T&ethodGn!&eS+ <in!""#, *e 'et to the p%)"ic portion o$ the
&ethod si'n!t%re+ In OOP, *e c!n de$ine *h!t &ethods !nd properties !re !ccessi)"e to *h!t
portions o$ the pro'r!&+ The p%)"ic (e#*ord speci$ies th!t the &ethod is !ccessi)"e to !""
p!rts o$ the pro'r!& *hich c!n s%ccess$%""# inst!nti!te the c"!ss cont!inin' the &ethod+No*
*e co&e to the cr%. o$ the pro'r!&, *hich disp"!#s He""o -or"dP on the
screen:Conso"e+-rite=ineHHe""o -or"dPXnIJ
-rite=ine is ! st!tic &ethod o$ the Conso"e c"!ss in the S#ste& n!&esp!ce !nd hence,
is *ritten %sin' the Tc"!ssGn!&eS+T&ethodGn!&eS $or&!t+ In the i&p"e&ent!tion sho*n
here, -rite=ine *or(s $%nction!""# identic!" to print$ o$ C or co%t in C22+ There !re &!n#
i&p"e&ent!tions o$ the -rite=ine &ethod, *hich t!(e !rio%s (inds o$ inp%t p!r!&eters+
Th!t is, Conso"e+-rite=ine is oer"o!ded in OOP ter&ino"o'#+ Moin' on, *e c"ose the
)r!ces o$ the M!in &ethod, $o""o*ed )# the c"osin' o$ the )r!ces o$ the c"!ss
CHe""o-or"d+4e$ore I end this disc%ssion, one i&port!nt point re'!rdin' the ret%rn !"%e o$
the M!in &ethod+ It c!n on"# ret%rn oid, th!t is, ret%rn nothin' to the c!""erJ or int, th!t is,
ret%rn !n inte'er !"%e, !nd nothin' e"se+ -e"", so &%ch $or the dissection o$ this si&p"eG
"oo(in' pro'r!&, *hich si&p"# disp"!#s ! strin'+ No*, "et,s do so&e ILO *ith the %ser+
-or(in' *ith inp%t
JIET, Jind
9F
Project Report on SPEECH RECOGNITION SYSTEM
P!r!""e" to Conso"e+-rite=ine is the st!tic &ethod o$ the Conso"e c"!ss, *hich re!ds in ! "ine
o$ strin' $ro& the %ser+ Here,s ! si&p"e pro'r!& to i""%str!te this:
LL This is &# second C1 pro'r!&
LL !nd it t!(es !n inp%t $ro& the %ser
%sin' S#ste&J
c"!ss CHe""o-or"d
p%)"ic st!tic oid M!inHI
Q
Conso"e+-rite=ineHEnter #o%r n!&e: IJ
strin' strN!&eWConso"e+Re!d=ineHIJ
Conso"e+-rite=ineHHe""o 2 strN!&eIJ
R
R
The ne* thin' here is th!t *e %se the Conso"e+Re!d=ine &ethod to re!d in ! strin' o$
ch!r!cters !nd store it in the !ri!)"e strN!&e, *hich is o$ the t#pe strin'+ strin' is ! )%i"tG
in +Net d!t! t#pe $or *or(in' *ith strin's !nd other ch!r!cter d!t!+ The Re!d=ine &ethod
contin%es to re!d in ch!r!cters %nti" ! c!rri!'e ret%rn is enco%ntered, !$ter *hich it stores the
re!d ch!r!cters in the !pp"ic!)"e !ri!)"e+ Once the %ser enters his n!&e, *hich is then stored
in the strN!&e !ri!)"e, *e disp"!# it %sin' the second Conso"e+-rite=ine+ The 52, oper!tor
conc!ten!tes the contents o$ the strN!&e !ri!)"e *ith the portion *ithin do%)"e 8%otes !nd
disp"!#s it+ So, i$ I *ere to enter 5G!%r!, *hen pro&pted, it *o%"d disp"!# He""o G!%r!+ In
the !)oe e.!&p"e o$ %ser inp%t, *e direct"# conc!ten!ted the !ri!)"e contents to the strin'+
Ho*eer, th!t,s not the on"# *!# to do it+ Here,s !nother ersion o$ the s!&e pro'r!&:
LL This is &# second C1 pro'r!&
LL !nd it t!(es !n inp%t $ro& the %ser
LL !nd disp"!#s it %sin' &!r(ers
%sin' S#ste&J
c"!ss CHe""o-or"d
Q
JIET, Jind
91
Project Report on SPEECH RECOGNITION SYSTEM
p%)"ic st!tic oid M!inHI
Q
Conso"e+-rite=ineHEnter #o%r n!&e: IJ
strin' strN!&eWConso"e+Re!d=ineHIJ
Conso"e+-rite=ineHHe""o QFR ,strN!&eIJ
R
R
The on"# ch!n'e o)sered here is in the second Conso"e+-rite=ine, *hich no* %ses !
$or&!tted strin' i&p"e&ent!tion+ -ithin the $or&!tted strin', *e c!n h!e &!r(ers "i(e QFR,
Q1R, !nd so on+ -h!t the# &e!n is th!t QFR sh!"" )e rep"!ced )# the contents o$ the $irst
!ri!)"e in the !ri!)"e "ist, Q1R *i"" )e rep"!ced )# the contents o$ the second !ri!)"e in the
!ri!)"e "ist !nd so on+ Here,s !nother e.!&p"e+
%sin' S#ste&J
c"!ss CHe""o-or"d
Q
p%)"ic st!tic oid M!inHI
Q
Conso"e+-rite=ineHEnter #o%r n!&e: IJ
strin' strN!&eWConso"e+Re!d=ineHIJ
Conso"e+-rite=ineHEnter #o%r cit#: IJ
strin' strCit#WConso"e+Re!d=ineHIJ
Conso"e+-rite=ineH<ro& Q1R, I *e"co&e QFR ,strN!&e, strCit#IJ
R
R
In this c!se, i$ I *ere to enter &# n!&e !s G!%r! !nd &# cit# !s Ch!ndi'!rh, then
the o%tp%t *i"" )e:<ro& Ch!ndi'!rh I *e"co&e G!%r!M!r(ers !re 6ero )!sed, so QFR re$ers
to the $irst !ri!)"e, Q1R re$ers to the second !nd so on+ -rite=ine c!n s%pport %pto three
s%ch &!r(ers, th!t is, ti"" Q7RE!ch o$ the pro'r!&s %sed !)oe !re $%""# $%nction!" !nd c!n )e
JIET, Jind
97
Project Report on SPEECH RECOGNITION SYSTEM
co&pi"ed+ To do so, s!e the& to ! $i"e, *ith e.tension CS H$or C1I, !nd co&pi"e $ro& the
co&&!nd "ine !s $o""o*s+C:XScsc T$i"en!&e+e.tScsc is #o%r co&&!nd "ine C1 co&pi"er,
!!i"!)"e i$ #o% h!e +Net S/0 4et! 1 or 3is%!" St%dio+NET inst!""ed+ The co&&!nd, %pon
e.ec%tion, *i"" prod%ce !n e.ec%t!)"e $i"e *ith the s!&e n!&e !s the so%rce, !nd in c!se #o%
notice, there !ren,t !n# inter&edi!te o)ject $i"es )ein' prod%ced+
-e hope th!t this introd%ction to C1 h!s he"ped #o% st!rt s&ooth"# *ith this ne*
dee"op&ent
eniron&ent, !nd th!t #o% enjo#ed it !s &%ch !s *e did+
P)#.)$* C#n!)#% "n C>
This ti&e *eY"" "oo( !t !$$ectin' the *!# C1 code *or(s *hen itYs e.ec%ted+ One o$
the $irst thin's t!%'ht in pro'r!&&in' is ho* to contro" the pro'r!& $"o*, ho* to !$$ect the
*!# the e.ec%ted code *or(s+ ;se o$ condition!"s, "oops, !nd )r!nchin' he"ps %s contro" the
*!# the code *or(s *hen e.ec%ted+ And th!t,s *h!t pro'r!& contro" is !"" !)o%t+ In this
!rtic"e, *eY"" see the $%nd!&ent!"s o$ C1 pro'r!& contro"+
The i$
The i$ st!te&ent "ets %s e!"%!te ! condition $or )ein' tr%e, !nd then e.ec%tes the !ppropri!te
code+ Its 'ener!" s#nt!. is !s $o""o*s:
i$ HconditionI
e.ec%te st!te&ent 1
Ze"se
e.ec%te st!te&ent 7[
St!rtin' $ro& top, this 'ener!" s#nt!. &e!ns th!t the condition enc"osed *ithin
)r!c(ets !$ter i$ *i"" )e chec(ed $or )ein' tr%e+ I$ the condition e!"%!tes to tr%e, then
st!te&ent 1 is e.ec%ted+ Ho*eer, i$ the condition e!"%!tes to $!"se, then st!te&ent 7 is
e.ec%ted )ec!%se it co&es !$ter the e"se c"!%se+ St!te&ents !$ter the e"se c"!%se !re e.ec%ted
on"# *hen the condition $o""o*in' i$ doesn,t e!"%!te to tr%e+
JIET, Jind
99
Project Report on SPEECH RECOGNITION SYSTEM
I$ #o% notice, the e"se c"!%se !nd the st!te&ent 7 !re enc"osed *ithin )o. )r!c(ets+
This &e!ns th!t the e"se !nd hence the correspondin' st!te&ent 7 !re option!"+ -e co%"d
h!e !n i$ st!te&ent coded so&ethin' "i(e this !s *e"":
i$ HconditionI
e.ec%te st!te&ent 1
st!te&ent 7
-h!t this &e!ns is th!t i$ the condition e!"%!tes to tr%e, on"# then st!te&ent 1 *i""
)e e.ec%ted+ St!te&ent 7V on the other h!nd, sh!"" )e e.ec%ted irrespectie o$ *hether the i$
condition e!"%!tes to tr%e or $!"se, since it doesnYt $o""o* !n e"se c"!%se+ No*, i$ *e *ere to
h!e the code e.ec%te &ore th!n one st!te&ent either %pon the condition )ein' e!"%!ted to
tr%e or $!"se, !"" *e h!e to do is to enc"ose the st!te&ents *ithin c%r"# )r!c(ets, !s sho*n
)e"o*:
i$ HconditionI
Q
e.ec%te st!te&ent 1
e.ec%te st!te&ent 7
e.ec%te st!te&ent 9
R
Ze"se
Q
e.ec%te st!te&ent ?
e.ec%te st!te&ent @
e.ec%te st!te&ent B
R[
As e.p"!ined e!r"ier, the e"se c"!%se !nd its correspondin' st!te&ent or set o$
st!te&ents !re option!", !s indic!ted !)oe )# )ein' enc"osed *ithin )o. )r!c(ets+ -e c!n
th%s see th!t the pro'r!& contro" is )ein' in$"%enced )# j%st one condition+ Ho*eer, i$
JIET, Jind
9?
Project Report on SPEECH RECOGNITION SYSTEM
needed, *e c!n co&)ine the e"se c"!%se !nd the i$ st!te&ent to proide &%"tip"e conditions
$or deter&inin' the pro'r!& contro", !s sho*n )e"o*:
i$ Hcondition1I
e.ec%te st!te&ent 1
e"se i$ Hcondition7I
e.ec%te st!te&ent 7
e"se
e.ec%te st!te&ent 9
In the s#nt!. !)oe, $irst conditon1 is e!"%!ted+ I$ it is $!"se, the i$ st!te&ent
conjoined *ith the $irst e"se c"!%se is e.ec%ted, !nd condition7 is e!"%!ted+ I$ it is e!"%!ted
to tr%e, then st!te&ent 7 is e.ec%ted, e"se st!te&ent 9 is $in!""# e.ec%ted+ No*, "etYs t!(e !
"oo( !t the C1 speci$ic $or the i$ st!te&ent+ C1 re8%ires th!t the condition )ein' e!"%!ted
'ets e!"%!ted to ! 4oo"e!n !"%e+ This is in contr!st to CLC22 *here !n# nonG6ero !"%e *!s
t!(en to )e tr%e !nd ! 6ero !"%e *!s t!(en to )e $!"se+ Th%s, the $o""o*in' code *o%"d )re!(
in C1:
int !W1J
i$ H!I
LL condition is tr%e
e"se
LL condition is $!"se
The corrected ersion *o%"d )e "i(e this:
int !W1J
i$ H!SFI
LL condition is tr%e
e"se
LL condition is $!"se
JIET, Jind
9@
Project Report on SPEECH RECOGNITION SYSTEM
The so%rce code o$ this !rtic"e c!rries ! C1 pro'r!& to %se the i$ st!te&ent to chec(
$or ! n%&)er entered )# the %ser $or )ein' een or odd+ Yo% re$er to it to see the i$ in !ction+
No*, "et,s &oe onto "oopin'+ =oopin'
=oopin' is the pro'r!&&!tic i&p"e&ent!tion o$ code to e.ec%te ! n%&)er o$ ti&es in
s%ccession, either r%nnin' in$inite"#, or contro""ed )# so&e condition+ In C1, !rio%s
st!te&ents he"p %s i&p"e&ent "oops+ An#one *ho h!s eer pro'r!&&ed *o%"d (no* the $or
st!te&ent+ Its s#nt!. is prett# &%ch the s!&e !s in C22, !nd is sho*n )e"o*: $or Hiniti!"i6erJ
conditionJ iter!torI St!te&entJ
Here, initi!"i6er e.pression "ets #o% dec"!re ! !ri!)"e "oc!" to the "oop !nd set its
!"%e+ Yo% c!n dec"!re the !ri!)"e o%tside the "oop, !nd si&p"# %se the initi!"i6er e.pression
to initi!"i6e the !ri!)"e,s !"%e+ The condition p!rt is %sed to speci$# the condition, *hich
*i"" )e e!"%!ted, !nd i$ it e!"%!tes to tr%e, on"# then the st!te&ent p!rt *i"" )e e.ec%ted+
Note th!t the st!te&ent c!n co&prise o$ ! sin'"e C1 st!te&ent or &%"tip"e C1 st!te&ents
enc"osed *ithin c%r"# )r!c(ets+ A$ter the st!te&ent portion is e.ec%ted once, the iter!tor
portion co&es into p"!#, !nd is %s%!""# %sed to incre&ent the !"%e o$ the "oop !ri!)"e th!t
*!s initi!"i6ed %sin' the initi!"i6er e.pression+ A si&p"e e.!&p"e *o%"d )e "i(e this:
$orHint iW1JiTW1FJi22I
Conso"e+-rite=ineHQFR,iIJ
The initi!"i6er portion dec"!res ! !ri!)"e c!""ed i !nd initi!"i6es its !"%e to 1+ The
condition portion is chec(ed ne.t, !nd i$ it e!"%!tes to tr%e, the st!te&ent portion is then
e.ec%ted+ The iter!tor portion then incre&ents the !"%e o$ i, !nd the condition is tested
!'!in+ I$ it is tr%e, the st!te&ent portion is then e.ec%ted, !nd !'!in, the iter!tor portion is
c!""ed+ The "oopin' contin%es %nti" the condition e!"%!tes to $!"se, !$ter *hich the "oop
stops+ Hence, the !)oe sho*n "oop *i"" print the co%nt $ro& 1 to 1F+ In the $o""o*in' "oop:
$orHint iWFJiSFJi22I
Conso"e+-rite=ineHQFR,iIJ
JIET, Jind
9B
Project Report on SPEECH RECOGNITION SYSTEM
The "oop *on,t e.ec%te )ec!%se *hen the condition is e!"%!ted, it e!"%!tes to $!"se
since i *!s initi!"i6ed to 6ero, *hi"e the condition e.pects it to )e 're!ter th!n 6ero+ Note th!t
the !"" the three p!rts o$ the $or "oop !re option!"+ Th%s, *e co%"d h!e ! $or "oop !s sho*n
)e"o*:
$orHJJI
Conso"e+-rite=ine HQFR,iIJ
Since there !ren,t !n# conditions )ein' e!"%!ted, this "oop is in$inite in n!t%re+ I$ *e
*ish to co&e o%t o$ !n in$inite "oop *e sho%"d %se the )re!( (e#*ord+ -e chec( $or the
condition *ithin the "oop !nd *hen the condition e!"%!tes to tr%e, *e e.ec%te ! )re!(
st!te&ent:
int iW1J
$orHJJI
Q
i$ HiTW1FI
Q
Conso"e+-rite=ineHQFR,iIJ
i22J LL incre&ent i
R
e"se
)re!(J
R
In the !)oe in$inite "oop, *e initi!"i6e the !ri!)"e to )e %ti"i6ed o%tside the "oop,
!nd then chec( the condition *ithin the "oop+ I$ the !"%e o$ the !ri!)"e is "ess th!n or e8%!"
to 1F, the n%&)er sh!"" )e disp"!#ed on the screen, !nd then the !"%e o$ the !ri!)"e is
incre&ented )# one+ -hen it,s &ore th!n 1F, the e"se c"!%se 'ets e.ec%ted !nd hence, the
)re!( st!te&ent 'ets e.ec%ted, !nd the contro" )re!(s o%t o$ the in$inite $or "oop+ Th%s,
e$$ectie"#, this "oop !nd the one preio%s"# descri)ed !re e8%i!"ent+ And no* *e co&e to
JIET, Jind
9C
Project Report on SPEECH RECOGNITION SYSTEM
the *hi"e !nd the doG*hi"e "oops+ 4oth !re !"&ost identic!" to e!ch other e.cept th!t in *hi"e
"oop, the condition is e!"%!ted )e$ore e.ec%tin' the st!te&ents to )e e.ec%ted, !nd in the doG
*hi"e, it is e!"%!ted !$ter e.ec%tin' the st!te&ents to )e e.ec%ted+ The s#nt!. $or the& is !s
$o""o*s:
*hi"eHconditionI
Q
LL st!te&ents to )e e.ec%ted co&e here
R
do
Q
LL st!te&ents to )e e.ec%ted co&e here
R *hi"eHconditionIJ
In the *hi"e "oop, the st!te&ents *ithin the )r!c(ets !re e.ec%ted on"# *hen the
condition e!"%!tes to tr%e+ ;pon e.ec%tin' the st!te&ents, the condition is chec(ed !'!in+
The process 'oes on %nti" the condition e!"%!tes to $!"se+ S!&e is the c!se $or the doG*hi"e
"oop, e.cept th!t *hen the "oop is e.ec%ted $or the $irst ti&e, the enc"osed st!te&ents !re
e.ec%ted, !nd then the condition is chec(ed+ On"# i$ the condition e!"%!tes to tr%e !re the
st!te&ents e.ec%ted !'!in+
Another "oop st!te&ent *hich is speci$ic to C1 is the $ore!ch st!te&ent+ It "ets #o%
iter!te thro%'h e"e&ents in !rr!#s !nd co""ections Hde$ined !s ! 'ro%p o$ ite&s o$ ! si&i"!r
(ind, "i(e !"" ints or !"" "on'sI+ I$ #o% h!e eer pro'r!&&ed in 3is%!" 4!sic, #o% *i""
!"re!d# )e $!&i"i!r *ith this st!te&ent+ =etYs see !n e.!&p"e o$ its %s!'e:
int Z[ !rr W ne* int Z[ Q1,7,9,?,@,B,C,D,E,1FRJ
$ore!chHint i in !rrI
Conso"e+-rite=ineHQFR,iIJ
JIET, Jind
9D
Project Report on SPEECH RECOGNITION SYSTEM
-h!t this st!te&ent !)oe te""s the co&pi"er is to "oo( $or e!ch inte'er in the
co""ection !rr, !nd e!ch ti&e one is $o%nd, represent it *ith !ri!)"e i, *hich is o$ the s!&e
t#pe !s the e"e&ents )ein' iter!ted $ro& the co""ection+ The !ri!)"e i c!n then )e %sed to
*or( %pon the iter!ted contents o$ the co""ection+
The s*itch
The s*itch st!te&ent is %sed to se"ectie"# e.ec%te code, dependin' %pon the !"%e o$
the e.pression, %n"i(e the i$ st!te&ent th!t depends %pon the )oo"e!n !"%e o$ the e.pression+
=etYs see !n e.!&p"e:
s*itchHI
Q
c!se 1:
Conso"e+-rite=ineH3!"%e is 1IJ
)re!(J
c!se 7:
Conso"e+-rite=ineH3!"%e is 7IJ
)re!(J
de$!%"t:
Conso"e+-rite=ineH;n(no*n !"%eIJ
R
The e.pression )et*een the )r!c(ets !$ter the s*itch (e#*ord is c!""ed the s*itch
e.pression, !nd dependin' %pon it, th!t code is e.ec%ted *hose c!se h!s the s!&e !"%e !s
th!t o$ the s*itch e.pression+ So, i$ *ere to h!e ! !"%e o$ 7, the second c!se *o%"d h!e
)een e.ec%ted+ To c!tch ! !"%e *hich is not c!%'ht )# !n# o$ the c!ses, there is the de$!%"t
c!se+ Note th!t !"" c!se c"!%ses &%st )e $o""o*ed )# st!te&ents to )e e.ec%ted, $o""o*ed )# !
)re!( st!te&ent to indic!te the end o$ the c!se+ ;n"i(e CLC22, *here o&ittin' the c!se *o%"d
h!e res%"ted in ! $!"" thro%'h to the ne.t c!se, in C1, the co&pi"er *o%"d res%"t in !n error+
Yo% c!nnot $!"" thro%'h one c!se to !nother+ So, this code is erroneo%s:
JIET, Jind
9E
Project Report on SPEECH RECOGNITION SYSTEM
s*itchHI
Q
c!se 1:
Conso"e+-rite=ineH3!"%e is 1IJ
c!se 7:
Conso"e+-rite=ineH3!"%e is 7IJ
)re!(J
de$!%"t:
Conso"e+-rite=ineH;n(no*n !"%eIJ
R
I$ #o% *ish to $!"" thro%'h then #o% &%st %se the 'oto st!te&ent *hich )r!nches o$$ to the
re"e!nt c!se:
s*itchHI
Q
c!se 1:
Conso"e+-rite=ineH3!"%e is 1IJ
'oto c!se 7J
c!se 7:
Conso"e+-rite=ineH3!"%e is 7IJ
)re!(J
de$!%"t: Conso"e+-rite=ineH;n(no*n !"%eIJ
R
Yo% &!# !"so $!"" thro%'h i$ the s%ccessie c!ses h!e no "ines o$ code )et*een the&:
s*itchHI
Q
c!se 1:
c!se 7: Conso"e+-rite=ineH3!"%e is 1 or 7IJ
)re!(J
JIET, Jind
?F
Project Report on SPEECH RECOGNITION SYSTEM
de$!%"t:
Conso"e+-rite=ineH;n(no*n !"%eIJ
R
2.4.3 INTRODUCTION TO MICROSOFT AGENT API
JIET, Jind
?1
Project Report on SPEECH RECOGNITION SYSTEM
The Microso$t A'ent API !$$ords serices th!t s%pport the disp"!# !nd !ni&!tion o$
!ni&!ted ch!r!cters+ Microso$t A'ent consists o$ option!" s%pport $or speech reco'nition !s !
res%"t !pp"ic!tions c!n respond to oice co&&!nds+ Ch!r!cters c!n re!ct %sin' s#nthesi6ed
speech, recorded !%dio, or te.t in ! c!rtoon *ord )!""oon+
R'(u")'*'n!,:
To )e pro$icient to %se this techno"o'#, *e &%st h!e:
The Microso$t A'ent Core co&ponents+
The Microso$t A'ent Ch!r!cters Genie, Mer"in, Ro))#, !nd Peed#+
The Microso$t Speech API ?+F! r%nti&e+
The Microso$t Speech Reco'nition En'ine+
The =erno%t !nd H!%spie Te.tGtoGSpeech en'ines $or !t "e!st ;S En'"ish+

S='!1 !# S0''1 T'1n#%#."',:
Te.tGtoGspeech is the c!p!)i"it# o$ ! co&p%ter to tr!ns"!te te.t in$or&!tion into
s#nthetic speech o%tp%t+ Speech reco'nition is the c!p!)i"it# o$ ! co&p%ter to reco'ni6e the
spo(en *ord $or the p%rpose o$ receiin' co&&!nd !nd d!t! inp%t $ro& the spe!(er+
Speech reco'nition !nd te.tGtoGspeech &!(e %se o$ en'ines, *hich !re the pro'r!&s
th!t do the re!" *or( o$ reco'ni6in' speech or p"!#in' te.t+ Ne!r"# !"" speechGreco'nition
en'ines tr!ns"!te inco&in' !%dio d!t! to en'ineGspeci$ic phone&es, *hich !re then
interpreted into te.t th!t !n !pp"ic!tion c!n %se+ HA phone&e is the s&!""est str%ct%r!" %nit o$
so%nd th!t c!n )e %sed to distin'%ish one %tter!nce $ro& !nother in ! spo(en "!n'%!'e+I
T3# !+0', #- T'/! T# S0''1:
1+S#nthesi6ed te.tGtoGspeech
7+ Conc!ten!ted te.tGtoGspeech+
S+n!1',"B'4 T'/! T# S0''1:
JIET, Jind
?7
Project Report on SPEECH RECOGNITION SYSTEM
In S#nthesi6ed speech the *ords !re e.!&ined !nd prod%ce the phonetic
pron%nci!tions $or the *ords+ The phone&es !re then &oed into ! co&p"e. !"'orith& th!t
i&it!tes the h%&!n oc!" tr!ct !nd prod%ce the so%nd+
C#n$!'n$!'4 T'/! T# S0''1:
In Conc!ten!ted te.tGtoGspeech it st%dies the te.t !nd p%""s recordin's, *ords, !nd
phr!ses o%t o$ ! prerecorded "i)r!r#+ The di'it!" !%dio recordin's !re conc!ten!ted+
S0''1 A00%"$!"#n P)#.)$**"n. In!')-$':
The Microso$t Speech App"ic!tion Pro'r!&&in' Inter$!ce HAPII %ses the O=E
Co&ponent O)ject Mode" HCOMI !rchitect%re %nder -in97 H-indo*s E@ !nd -indo*s
NTI+ Microso$t A'ent,s !rchitect%re %ses Microso$t SAPI $or s#nthesi6ed speech o%tp%t+
Microso$t A'ent %ses the Microso$t Speech App"ic!tion Pro'r!&&in' Inter$!ce HSAPII to
s%pport speech inp%t Hspeech reco'nition, or SRI !nd speech o%tp%t Hte.tGtoGspeech, or TTSI+
Microso$t A'ent descri)es inter$!ces th!t per&it !pp"ic!tions to !ccess its serices, en!)"in'
!n !pp"ic!tion to contro" the !ni&!tion o$ ! ch!r!cter, s%pport %ser inp%t eents, !nd speci$#
o%tp%t+
T1' C1$)$!') W"n4#3:
In Microso$t A'ent !pp"ic!tions the !ni&!ted ch!r!cters !re disp"!#ed in their
indiid%!" *indo*s th!t !"*!#s !ppe!r !t the top o$ the *indo* 6Gorder+ A %ser c!n &oe !
ch!r!cter,s *indo* )# dr!''in' the ch!r!cter *ith the "e$t &o%se )%tton+ The ch!r!cter
i&!'e &oes *ith the pointer+
T1' W#)4 2$%%##n:
In !ddition to spo(en !%dio o%tp%t, the ch!r!cter !"so s%pports te.t%!" c!ptionin' in
the $or& o$ te.t o%tp%t in c!rtoonGst#"e *ord )!""oons+ -ords sho* in the )!""oon !s the# !re
spo(en+ The )!""oon hides $ro& ie* *hen spo(en o%tp%t is co&p"eted+
Oerie* o$ Speech Reco'nition:
JIET, Jind
?9
Project Report on SPEECH RECOGNITION SYSTEM
Speech reco'nition !nd te.tGtoGspeech %se en'ines, *hich !re the pro'r!&s th!t do
the !ct%!" *or( o$ reco'ni6in' speech or p"!#in' te.t+ Most speechGreco'nition en'ines
conert inco&in' !%dio d!t! to en'ineGspeci$ic phone&es, *hich !re then tr!ns"!ted into te.t
th!t !n !pp"ic!tion c!n %se+ HA phone&e is the s&!""est str%ct%r!" %nit o$ so%nd th!t c!n )e
%sed to distin'%ish one %tter!nce $ro& !nother in ! spo(en "!n'%!'e+I
Speech reco'nition is ! )it &ore co&p"e. to c!te'ori6e th!n te.tGtoGspeech+ Eer#
speech reco'nition en'ine h!s three ch!r!cteristics:
1+ Contin%o%s s+ discrete:
In contin%o%s speech reco'nition, c"ients c!n spe!( to the s#ste& n!t%r!""#+ In
discrete, c"ients re8%ire to '!p )et*een e!ch *ord+ C"e!r"#, contin%o%s reco'nition is desired
oer discrete reco'nition, )%t contin%o%s reco'nition needs &ore processin' po*er+
7+ 3oc!)%"!r# si6e:
Speech reco'nition c!n s%pport ! s&!"" or "!r'e oc!)%"!r#+ S&!""Goc!)%"!r#
reco'nition per&its %sers to 'ie si&p"e co&&!nds to their co&p%ters+ To dict!te ! te.t, the
s#ste& &%st h!e "!r'eGoc!)%"!r# reco'nition+
9+ Spe!(er /ependence:
Spe!(erGindependent speech reco'nition *or(s proper"# *ith o%t !n# tr!inin', *hi"e
spe!(erGdependent s#ste&s re8%ire th!t e!ch %ser spend !)o%t 9F &in%tes tr!inin' the s#ste&
to his or her oice+
MS!'ent %ses Co&&!nd !nd Contro" speech reco'nition *hich is contin%o%s,
s&!"" oc!)%"!r#, !nd spe!(er independent+ So the %sers c!n cre!te seer!" h%ndred di$$erent
co&&!nds or phr!ses+ I$ ! %ser s!#s ! co&&!nd th!t is not in the "ist, the speechGreco'nition
s#ste& *i"" ret%rn either not reco'ni6ed, or *i"" thin( it he!rd ! si&i"!rGso%ndin'
co&&!nd+ <or the re!son th!t %sers o$ Co&&!nd !nd Contro" c!n s!# on"# speci$ic phr!ses,
the phr!ses &%st )e either isi)"e on the screenKso int%itie th!t !"" %sers *i"" (no* *h!t to
s!#Kor the %sers &%st "e!rn *h!t phr!ses the# c!n s!#+
JIET, Jind
??
Project Report on SPEECH RECOGNITION SYSTEM
T1' C#**$n4 W"n4#3:
I$ !n !tt%ned speech en'ine is inst!""ed, Microso$t A'ent s%pp"ies ! speci!" *indo*
c!""ed the Co&&!nds -indo* th!t sho*s the co&&!nds th!t h!e )een oiceGen!)"ed $or
speech reco'nition+ The Co&&!nds -indo* seres !s ! is%!" pro&pt $or *h!t c!n )e
spo(en !s inp%t+
T1' %",!'n"n. T"0:
I$ speech is en!)"ed, ! speci!" too" tip *indo* !ppe!rs *hen the %ser presses the
p%shGtoGt!"( (e# to )e'in oice inp%t+ The =istenin' Tip disp"!#s conte.t%!" in$or&!tion
!ssoci!ted to the c%rrent inp%t st!te+
M")#,#-! A.'n!
-hen *e !cti!te the en'ine the initi!"i6!tion step t!(es p"!ce+ There !re &!in"# 9
o)jects ino"ed:
JIET, Jind
?@
Project Report on SPEECH RECOGNITION SYSTEM
1+ A SpSh!redRecoConte.t th!t st!rts the reco'nition process H&%st )e sh!red so it c!n
!pp"# to !"" processesI+ It i&p"e&ents !n ISpeechRecoConte.t inter$!ce+ A$ter this
o)ject is cre!ted *e !dd the eents *e !re interested in Hin o%r c!se A%dio =ee" !nd
Reco'nitionI
7+ ! st!tic 'r!&&!r o)ject th!t c!n )e "o!ded $ro& >M= $i"e or pro'r!&&!tic!""#
i&p"e&ents ISpeechRecoGr!&&!r the "ist o$ st!tic reco'ni6!)"e *ords is sho*n in
<i' 7 !nd !tt!ched $or do*n"o!din' d#n!&ic 'r!&&!r th!t "ets !ddin' r%"es
i&p"e&ents ISpeechGr!&&!rR%"eJ the r%"e h!s t*o &!in p!rts :
The phr!se !ssoci!ted
The n!&e o$ the r%"e
Three )!sic $%nctions th!t *e *i"" need+++
initSAPIHI : To cre!te 'r!&&!r inter$!ce !nd !cti!tin' interested eents+
SAPIGr!&&!r<ro&<i"eHstrin' <i"eN!&eI : To "o!d 'r!&&!r $ro& $i"e+
SAPIGr!&&!r<ro&Arr!#=istHArr!#=ist Phr!se=istI : To ch!n'e 'r!&&!r
pro'r!&&!tic!""#+
2.4. INTRODUCTION TO XML
XML 6E/!'n,":%' M$)=u0 L$n.u$.'75
JIET, Jind
?B
Project Report on SPEECH RECOGNITION SYSTEM
E.tensi)"e M!r(%p =!n'%!'e, !))rei!ted >M=, descri)es ! c"!ss o$ d!t! o)jects
c!""ed >M= doc%&ents !nd p!rti!""# descri)es the )eh!ior o$ co&p%ter pro'r!&s *hich
process the&+ >M= is !n !pp"ic!tion pro$i"e or restricted $or& o$ SGM=, the St!nd!rd
Gener!"i6ed M!r(%p =!n'%!'e+ 4# constr%ction, >M= doc%&ents !re con$or&in' SGM=
doc%&ents+
>M= doc%&ents !re &!de %p o$ stor!'e %nits c!""ed entities, *hich cont!in either
p!rsed or %np!rsed d!t!+ P!rsed d!t! is &!de %p o$ ch!r!cters, so&e o$ *hich $or& ch!r!cter
d!t!, !nd so&e o$ *hich $or& &!r(%p+ M!r(%p encodes ! description o$ the doc%&entYs
stor!'e "!#o%t !nd "o'ic!" str%ct%re+ >M= proides ! &ech!nis& to i&pose constr!ints on the
stor!'e "!#o%t !nd "o'ic!" str%ct%re+
/e$inition: A so$t*!re &od%"e c!""ed !n >M= processor is %sed to re!d >M=
doc%&ents !nd proide !ccess to their content !nd str%ct%re+[ Z/e$inition: It is !ss%&ed th!t
!n >M= processor is doin' its *or( on )eh!"$ o$ !nother &od%"e, c!""ed the !pp"ic!tion+
The >M= st!nd!rd s%pports "o'ic!" doc%&ents co&posed o$ possi)"# seer!" entities+
It &!# )e desir!)"e to ie* or edit one or &ore o$ the entities or p!rts o$ entities *hi"e h!in'
no interest, need, or !)i"it# to ie* or edit the entire doc%&ent+ The pro)"e&, then, is ho* to
proide to ! recipient o$ s%ch ! $r!'&ent the !ppropri!te in$or&!tion !)o%t the conte.t th!t
$r!'&ent h!d in the "!r'er doc%&ent th!t is not !!i"!)"e to the recipient+
In the c!se o$ &!n# >M= doc%&ents, it is s%)opti&!" to h!e to receie !nd p!rse the
entire doc%&ent *hen on"# ! $r!'&ent o$ it is desired+ I$ the %ser !s(ed to "oo( !t ch!pter 7F,
one sho%"dnYt need to p!rse 1E *ho"e ch!pters )e$ore 'ettin' to the p!rt o$ interest+ The 'o!"
o$ this !ctiit# is to de$ine ! *!# to en!)"e processin' o$ s&!"" p!rts o$ !n >M= doc%&ent
*itho%t h!in' to process eer#thin' %p to the p!rt in 8%estion+ This c!n )e done re'!rd"ess
o$ *hether the p!rts !re entities or not, !nd the p!rts c!n either )e ie*ed i&&edi!te"# or
!cc%&%"!ted $or "!ter %se, !sse&)"#, or other processin'+
Concept%!""#, the ho"der o$ the co&p"ete so%rce doc%&ent considers ! $r!'&ent o$
th!t doc%&ent !nd, %sin' the not!tion to )e de$ined )# this !ctiit#, constr%cts ! $r!'&ent
conte.t speci$ic!tion+ The o)ject representin' the $r!'&ent re&oed $ro& its so%rce
JIET, Jind
?C
Project Report on SPEECH RECOGNITION SYSTEM
doc%&ent is c!""ed the $r!'&ent )od#+ The $r!'&ent conte.t speci$ic!tion !nd the $r!'&ent
)od# !re tr!ns&itted to the recipient+ The stor!'e o)ject in *hich the $r!'&ent )od# is
tr!ns&itted is c!"" the $r!'&ent entit#+ HIn so&e p!c(!'in' sche&es, the $r!'&ent conte.t
speci$ic!tion &!# !"so )e e&)edded in the $r!'&ent entit#+I The recipient processes the
$r!'&ent conte.t speci$ic!tion to deter&ine the proper p!rser st!te $or the conte.t !t the
)e'innin' o$ the $r!'&ent !nd %ses th!t in$or&!tion to en!)"e the >M= p!rser to p!rse the
$r!'&ent )od#+ HThe ter&s sender, recipient, tr!ns&it, !re %sed thro%'ho%t this
doc%&ent to descri)e the process o$ $r!'&ent interch!n'e+ It sho%"d )e noted, ho*eer, th!t
there !re &!n# $e!si)"e !nd %se$%" scen!rios $or $r!'&ent interch!n'e, !nd in so&e c!ses, the
sender !nd recipient &!# )e on the s!&e &!chine, node, s#ste&, or net*or(, !nd &!#
een )e the s!&e too" in di$$erent '%ises+I
The ch!""en'e is th!t !n iso"!ted e"e&ent $ro& !n >M= doc%&ent &!# not cont!in
8%ite eno%'h in$or&!tion to )e p!rsed correct"#+ The 'o!" o$ this !ctiit# is to en!)"e senders
to proide the re&!inin' in$or&!tion re8%ired so th!t s#ste&s c!n interch!n'e !n# >M=
e"e&ents the# choose, $ro& )oo(s or ch!pters !"" the *!# do*n to p!r!'r!phs, t!)"es,
$ootnotes, )oo( tit"es, !nd so on, *itho%t h!in' to &!n!'e e!ch !s ! sep!r!te entit# or
h!in' to ris( incorrect p!rsin' d%e to "oss o$ conte.t+
To !cco&p"ish these ends, this Reco&&end!tion de$ines:
e.!ct constr!ints on *h!t portions o$ !n >M= doc%&ent &!# constit%te $r!'&ents to
)e s%pported )# this Reco&&end!tionJ
the set o$ in$or&!tion H$r!'&ent conte.t in$or&!tionI th!t !""o*s $or s%ccess$%"
p!rsin' !s *e"" !s $or ie*in' or editin' o$ ! $r!'&ent in ! %se$%" !nd i&port!nt set o$
c!sesJ
the not!tion Hi+e+, "!n'%!'eI in *hich this in$or&!tion *i"" )e descri)ed Hthe $r!'&ent
conte.t speci$ic!tionIJ
so&e &ech!nis&s $or !ssoci!tin' this in$or&!tion *ith ! $r!'&ent+
The >M= =in(in' =!n'%!'e de$ines E.tensi)"e M!r(%p =!n'%!'e H>M=I
constr%cts to descri)e "in(s )et*een reso%rces+ One o$ the st!ted re8%ire&ents on >=in( is to
JIET, Jind
?D
Project Report on SPEECH RECOGNITION SYSTEM
s%pport HTM= "in(in' constr%cts in ! 'eneric *!#+ The HTM= 4ASE e"e&ent is one s%ch
constr%ct *hich the >=in( -or(in' Gro%p h!s considered+ 4ASE !""o*s !%thors to
e.p"icit"# speci$# ! doc%&entYs )!se ;RI $or the p%rpose o$ reso"in' re"!tie ;RIs in "in(s
to e.tern!" i&!'es, !pp"ets, $or&Gprocessin' pro'r!&s, st#"e sheets, !nd so on+
This doc%&ent descri)es ! &ech!nis& $or proidin' )!se ;RI serices to >=in(, )%t
!s ! &od%"!r speci$ic!tion so th!t other >M= !pp"ic!tions )ene$itin' $ro& !ddition!" contro"
oer re"!tie ;RIs )%t not )%i"t %pon >=in( c!n !"so &!(e %se o$ it+ The s#nt!. consists o$ !
sin'"e >M= !ttri)%te n!&ed .&":)!se+
The dep"o#&ent o$ >M= 4!se is thro%'h nor&!tie re$erence )# ne* speci$ic!tions,
$or e.!&p"e >=in( !nd the >M= In$oset+ App"ic!tions !nd speci$ic!tions )%i"t %pon these
ne* techno"o'ies *i"" n!tie"# s%pport >M= 4!se+ The )eh!ior o$ .&":)!se !ttri)%tes in
!pp"ic!tions )!sed on speci$ic!tions th!t do not h!e direct or indirect nor&!tie re$erence to
>M= 4!se is %nde$ined+
>M= *!s dee"oped )# !n >M= -or(in' Gro%p Hori'in!""# (no*n !s the SGM=
Editori!" Reie* 4o!rdI $or&ed %nder the !%spices o$ the -or"d -ide -e) Consorti%&
H-9CI in 1EEB+ It *!s ch!ired )# Jon 4os!( o$ S%n Micros#ste&s *ith the !ctie
p!rticip!tion o$ !n >M= Speci!" Interest Gro%p Hpreio%s"# (no*n !s the SGM= -or(in'
Gro%pI !"so or'!ni6ed )# the -9C+ The &e&)ership o$ the >M= -or(in' Gro%p is 'ien in
!n !ppendi.+ /!n Conno""# sered !s the -GYs cont!ct *ith the -9C+
The desi'n 'o!"s $or >M= !re:
1+ >M= sh!"" )e str!i'ht$or*!rd"# %s!)"e oer the Internet+
7+ >M= sh!"" s%pport ! *ide !riet# o$ !pp"ic!tions+
9+ >M= sh!"" )e co&p!ti)"e *ith SGM=+
?+ It sh!"" )e e!s# to *rite pro'r!&s *hich process >M= doc%&ents+
@+ The n%&)er o$ option!" $e!t%res in >M= is to )e (ept to the !)so"%te &ini&%&,
ide!""# 6ero+
JIET, Jind
?E
Project Report on SPEECH RECOGNITION SYSTEM
B+ >M= doc%&ents sho%"d )e h%&!nG"e'i)"e !nd re!son!)"# c"e!r+
C+ The >M= desi'n sho%"d )e prep!red 8%ic("#+
D+ The desi'n o$ >M= sh!"" )e $or&!" !nd concise+
E+ >M= doc%&ents sh!"" )e e!s# to cre!te+
1F+ Terseness in >M= &!r(%p is o$ &ini&!" i&port!nce+
D#u*'n!5
/e$inition: A d!t! o)ject is !n >M= doc%&ent i$ it is *e""G$or&ed, !s de$ined in this
speci$ic!tion+ A *e""G$or&ed >M= doc%&ent &!# in !ddition )e !"id i$ it &eets cert!in
$%rther constr!ints+
E!ch >M= doc%&ent h!s )oth ! "o'ic!" !nd ! ph#sic!" str%ct%re+ Ph#sic!""#, the
doc%&ent is co&posed o$ %nits c!""ed entities+ An entit# &!# re$er to other entities to c!%se
their inc"%sion in the doc%&ent+ A doc%&ent )e'ins in ! \root\ or doc%&ent entit#+
=o'ic!""#, the doc%&ent is co&posed o$ dec"!r!tions, e"e&ents, co&&ents, ch!r!cter
re$erences, !nd processin' instr%ctions, !"" o$ *hich !re indic!ted in the doc%&ent )# e.p"icit
&!r(%p+
>M= is ! s%)set o$ SGM=+ /escri)e !nd E.ch!n'e /!t! in Str%ct%red <or&!t+
Si'ni$ic!nce o$ %sin' >M= *ith HTTP+
Po*er ] 4e!%t# o$ inte'r!tin' the d!t! $ro& dierse so%rces+
-h# do *e need >M=M
It proides ! *!# o$ cre!tin' do&!inGspeci$ic 3oc!)%"!r#+
It !""o*s d!t! interch!n'e )et*een di$$erent co&p%ter s#ste&s+
It en!)"es s&!rt se!rches+
JIET, Jind
@F
Project Report on SPEECH RECOGNITION SYSTEM
It !""o*s 'r!n%"!r %pd!tes
There !re no Prede$ined t!'s in >M=+ *e c!n Cre!te o%r o*n t!'s to store the d!t!+
-e c!n cre!te o%r o*n &!r(%p "!n'%!'e %sin' >M=+
Seer!" M!r(%p "!n'%!'es h!e )een cre!ted %sin' >M=
1+ M!thM=*hich is ! reco&&end!tion )# the -9C H-or"d -ide -e) Consorti%&I $or
the represent!tion o$ &!the&!tic!" $or&%"!e !nd Scienti$ic d!t!, )!sed on >M=+
/!t! interch!n'e is essenti!" to c!rr# o%t eCo&&erce tr!ns!ction+ >M= proides
str%ct%re $or storin' d!t! in te.t $or&!t, *hich c!n )e %sed !s ! st!nd!rd $or&!t or protoco"
$or d!t! interch!n'e
>M= !oids p"!t$or&Gdependenc#+ It p"!#s !n e.tended ro"e !s interch!n'e $or&!t+
-hen the d!t! in !n >M= doc%&ent needs to )e %pd!ted, the entire p!'e need not )e
re$reshed+ on"# the ch!n'ed e"e&ents need to )e do*n"o!ded, th%s &!(in' %pd!tes $!ster+
E.!&p"eGS/!t! !t stoc( e.ch!n'e is d#n!&ic, %pd!tin' the entire p!'e *i"" t!(e
&%ch "on'er, *ith >M=, on"# the ch!n'ed In$or&!tion c!n )e %pd!ted+
Differences with H!" #
/%e to the $!ct th!t >HTM= is !n >M= !pp"ic!tion, cert!in pr!ctices th!t *ere
per$ect"# "e'!" in SGM=G)!sed HTM= ? &%st )e ch!n'ed+
1+/oc%&ents &%st )e *e""G$or&ed
-e""G$or&edness is ! ne* concept introd%ced )# >M= Essenti!""# this &e!ns th!t !""
e"e&ents &%st either h!e c"osin' t!'s or )e *ritten in ! speci!" $or& H!s descri)ed )e"o*I,
!nd th!t !"" the e"e&ents &%st nest+
7+E"e&ent !nd !ttri)%te n!&es &%st )e in "o*er c!se
JIET, Jind
@1
Project Report on SPEECH RECOGNITION SYSTEM
>HTM= doc%&ents &%st %se "o*er c!se $or !"" HTM= e"e&ent !nd !ttri)%te n!&es+
This di$$erence is necess!r# )ec!%se >M= is c!seGsensitie e+'+ T"iS !nd T=IS !re di$$erent
t!'s+
9+<or nonGe&pt# e"e&ents, end t!'s !re re8%ired
In SGM=G)!sed HTM= ? cert!in e"e&ents *ere per&itted to o&it the end t!'J *ith
the e"e&ents th!t $o""o*ed i&p"#in' c"os%re+ This o&ission is not per&itted in >M=G)!sed
>HTM=+ A"" e"e&ents
?+Attri)%te !"%es &%st !"*!#s )e 8%oted
A"" !ttri)%te !"%es &%st )e 8%oted, een those *hich !ppe!r to )e n%&eric+
@+Attri)%te Mini&i6!tion
>M= does not s%pport !ttri)%te &ini&i6!tion+ Attri)%teG!"%e p!irs &%st )e *ritten
in $%""+ Attri)%te n!&es s%ch !s co&p!ct !nd chec(ed c!nnot occ%r in e"e&ents *itho%t their
!"%e )ein' speci$ied+
B+E&pt# E"e&ents
E&pt# e"e&ents &%st either h!e !n end t!' or the st!rt t!' &%st end *ith LS+ <or
inst!nce, T)rLS or ThrSTLhrS+ $or in$or&!tion on *!#s to ens%re this is )!c(*!rd co&p!ti)"e
*ith HTM= ? %ser !'ents+
C+-hitesp!ce h!nd"in' in !ttri)%te !"%es
In !ttri)%te !"%es, %ser !'ents *i"" strip "e!din' !nd tr!i"in' *hitesp!ce $ro&
!ttri)%te !"%es !nd &!p se8%ences o$ one or &ore *hitesp!ce ch!r!cters Hinc"%din' "ine
)re!(sI to ! sin'"e interG*ord sp!ce H!n ASCII sp!ce ch!r!cter $or *estern scriptsI+
JIET, Jind
@7
Project Report on SPEECH RECOGNITION SYSTEM
D+Script !nd St#"e e"e&ents
In >HTM=, the script !nd st#"e e"e&ents !re dec"!red !s h!in' 1PC/ATA content+
As ! res%"t, T !nd ] *i"" )e tre!ted !s the st!rt o$ &!r(%p, !nd entities s%ch !s ]"tJ !nd
]!&pJ *i"" )e reco'ni6ed !s entit# re$erences )# the >M= processor to T !nd ]
respectie"#+ -r!ppin' the content o$ the script or st#"e e"e&ent *ithin ! C/ATA &!r(ed
section
$uture Directions
>HTM= 1+F proides the )!sis $or ! $!&i"# o$ doc%&ent t#pes th!t *i"" e.tend !nd
s%)set >HTM=, in order to s%pport ! *ide r!n'e o$ ne* deices !nd !pp"ic!tions, )#
de$inin' &od%"es !nd speci$#in' ! &ech!nis& $or co&)inin' these &od%"es+ This
&ech!nis& *i"" en!)"e the e.tension !nd s%)Gsettin' o$ >HTM= 1+F in ! %ni$or& *!#
thro%'h the de$inition o$ ne* &od%"es+
1+Mod%"!ri6in' HTM=
As the %se o$ >HTM= &oes $ro& the tr!dition!" des(top %ser !'ents to other
p"!t$or&s, it is c"e!r th!t not !"" o$ the >HTM= e"e&ents *i"" )e re8%ired on !"" p"!t$or&s+
<or e.!&p"e ! h!nd he"d deice or ! ce""Gphone &!# on"# s%pport ! s%)set o$ >HTM=
e"e&ents+
The process o$ &od%"!ri6!tion )re!(s >HTM= %p into ! series o$ s&!""er e"e&ent
sets+ These e"e&ents c!n then )e reco&)ined to &eet the needs o$ di$$erent co&&%nities+
7+S%)sets !nd E.tensi)i"it#
Mod%"!ri6!tion )rin's *ith it seer!" !d!nt!'es:
It proides ! $or&!" &ech!nis& $or s%)Gsettin' >HTM=+
It proides ! $or&!" &ech!nis& $or e.tendin' >HTM=+
It si&p"i$ies the tr!ns$or&!tion )et*een doc%&ent t#pes+
JIET, Jind
@9
Project Report on SPEECH RECOGNITION SYSTEM
It pro&otes the re%se o$ &od%"es in ne* doc%&ent t#pes+
9+/oc%&ent Pro$i"es
A doc%&ent pro$i"e speci$ies the s#nt!. !nd se&!ntics o$ ! set o$ doc%&ents+
Con$or&!nce to ! doc%&ent pro$i"e proides ! )!sis $or interoper!)i"it# '%!r!ntees+ The
doc%&ent pro$i"e speci$ies the $!ci"ities re8%ired to process doc%&ents o$ th!t t#pe, e+'+
*hich i&!'e $or&!ts c!n )e %sed, "ee"s o$ scriptin', st#"e sheet s%pport, !nd so on+
<or prod%ct desi'ners this en!)"es !rio%s 'ro%ps to de$ine their o*n st!nd!rd
pro$i"e+<or !%thors this *i"" o)i!te the need to *rite seer!" di$$erent ersions o$ doc%&ents
$or di$$erent c"ients+
<or speci!" 'ro%ps s%ch !s che&ists, &edic!" doctors, or &!the&!tici!ns this !""o*s !
speci!" pro$i"e to )e )%i"t %sin' st!nd!rd HTM= e"e&ents p"%s ! 'ro%p o$ e"e&ents 'e!red to
the speci!"istYs needs+
2'n'-"!"n. -)#* XML
More &e!nin'$%" se!rches
/ee"op&ent o$ $"e.i)"e -e) !pp"ic!tions
S#ste&Gindependent, interoper!)"e d!t! e.ch!n'e
/!t! $ro& &%"tip"e !pp"ic!tions
M%"tip"e *!#s to !pp"# se&!ntics to the d!t!, Gr!n%"!r %pd!tes
Sep!r!tion o$ content $ro& $or&!t !nd )eh!io%r
<or&!t $or -e) de"ier#, Enh!nces sc!"!)i"it#, <!ci"it!tes co&pression
Consider ! si&p"e >M= represent!tion o$ !n e&!i" !ddress )oo(:
<addressBook>
JIET, Jind
@?
Project Report on SPEECH RECOGNITION SYSTEM
<card>
<name>John Smith</name>
<email>[email protected]</email>
</card>
<card>
<name>Fred Bloggs</name>
<email>[email protected]</email>
</card>
</addressBook>
JIET, Jind
@@
Project Report on SPEECH RECOGNITION SYSTEM
2.< OUTCOME OF REQUIREMENT ANALYSIS 6SRS7
1+ There sho%"d so&e p!ss*ord !"id!tion to !""o* tr!ined %sers to !ccess the s#ste&+
7+ It *i"" $%"$i"" the perspectie re8%est o$ eer# %sers !ccordin' to their re8%ire&ents+
9+ More th!n one %ser c!n not %se the s!&e s#ste& !t the s!&e ti&e $ro& !rio%s
ter&in!"s+

S#ste& Ch!r!cteristics:
1. ;SER <RIEN/=Y
7+ OPTION =IST
9+ TE>T TO SPEECH <ACI=ITY A=SO
?+ <ACI=ITY <OR A//ING NE- PROGRAM IN THE <A3IRATES
Per$or&!nce Ch!r!cteristics:
1+ ;SER <RIEN/=INESS
7+ =O- RESPONSE TIME
9+ ;SERS TRAINING <ACI=ITES
?+ CORRECTNESS
@+ SEC;RITY
Accept!nce Criteri!:
1+ The s#ste& sho%"d )e !cc%r!te *ith the "e!st error r!te !nd ! consistent
o%tp%t r!te +
7+ The e.ec%tion ti&e sho%"d )e $!st !nd the response ti&e sho%"d )e "ess+
9+ It sho%"d )e c!p!)"e o$ &!int!in!)i"it# !nd enh!nce&ent+
?+ It sho%"d s!tis$# the st!nd!rds o$ 'ood so$t*!re+
JIET, Jind
@B
Project Report on SPEECH RECOGNITION SYSTEM

JIET, Jind
@C
R'(u")'*'n!, G$!1')"n.
Qu"= D',".n
2u"%4 P)#!#!+0' R'-"n' R'(u")'*'n!,
Cu,!#*') E;$%u$!"#n #-
!1' P)#!#!+0'
/esi'n
I&p"e&ent
Test
M!int!in
Project Report on SPEECH RECOGNITION SYSTEM
CHAPTER 3
SYSTEM ANALYSIS AND DESIGN
SPECIFICATION
JIET, Jind
@D
Project Report on SPEECH RECOGNITION SYSTEM
3.1 SYSTEM ANALYSIS
I4'n!"-"$!"#n #- N''45
The project SPEECH RECOGNITION SYSTEM is speech s#ste& th!t is &!de in
order to st%d# the !rio%s $e!t%res th!t !re co&&on"# )ein' %sed )# the !rio%s %sers $or
oper!tion on the co&p%ter+ These $e!t%res !re the er# co&&on $e!t%res th!t !re )ein'
proided )# the &ost co&&on"# %sed+ These $e!t%res !re:
1+ St!rtin' !nd rest!rtin', Sh%tdo*n the s#ste&
7+ Oper!te !rio%s pro'r!&s o$ the s#ste& $or *or(in' )# (e#)o!rd or &o%se
9+ Adopt !ccordin' to !n# s#ste& con$i'%r!tion
?+ Te.t d!t! is spe!(in' )# the s#ste&
@+ ;ser $riend"# eniron&ent+
P)#:%'* $n$%+,",:
Pro)"e& !n!"#sis is done to o)t!in ! c"e!r %nderst!ndin' o$ the needs o$ the c"ients
!nd the %sers !nd *h!t e.!ct"# is desired $ro& the so$t*!re in$or&!tion $ro& doc%&ent!tion
!nd so $orth+ One o$ the &!jor pro)"e&s d%rin' !n!"#sis is ho* to or'!ni6e the in$or&!tion
o)t!ined th!t c!n )e e$$ectie"# e!"%!ted $or co&p"eteness !nd consistenc#+ Second &!jor
d%rin' !n!"#sis is reso"in' the contr!diction th!t &!# e.ists in the in$or&!tion $ro&
di$$erent so%rces+
F'$,":"%"!+ An$%+,",5
<e!si)i"it# o$ ! s#ste& re$ers to the potenti!"it# !nd *or(!)i"it# o$ the s#ste&+ A
s#ste& is s!id to )e ! $e!si)"e one i$ its dee"op&ent is )ene$ici!" to !n or'!ni6!tion+
<e!si)i"it# !n!"#sis is the process o$ !n!"#6in' the s#ste& so !s to deter&ine *hether
*o%"d )e $e!si)"e or not+ <e!si)"e !n!"#sis sho%"d )e per$or&ed thro%'ho%t the s#ste&
dee"op&ent "i$e c#c"e+
F'$,":"%"!+ C1'=0#"n!5
<e!si)i"it# st%d# is done !t !rio%s points in the s#ste& dee"op&ent "i$e c#c"e+ The
scope !nd co&p"e.it# o$ !n !pp!rent"# $e!si)"e project c!n ch!n'e !$ter the c%rrent pro)"e&s
!re $%""# %nderstood, !$ter the endG%ser,s needs h!e )een de$ined in det!i", or !$ter the
JIET, Jind
@E
Project Report on SPEECH RECOGNITION SYSTEM
technic!" re8%ire&ents h!e )een est!)"ished+ The project $e!si)"e !t one st!'e &!# )eco&e
in$e!si)"e or "ess $e!si)"e !t !n# other chec(point+
3!rio%s chec(points in the s#ste& dee"op&ent "i$e c#c"e *here $e!si)i"it# st%d# is
per$or&ed !re:
1+ S%re# ph!se chec(point
7+ St%d# ph!se chec(point
9+ Se"ection ph!se chec(point
?+ Ac8%isition ph!se chec(point
B+ /esi'n ph!se chec(point
T'1n"$% -'$,":"%"!+
The proposed s#ste& is to )e dee"oped %sin' the $o""o*in' techno"o'ies Microso$t
3is%!" St%dio+net, -indo*s >P,SPI o$ Microso$t+ The h!rd*!re *!s needed &ic, spe!(ers
to )e p%rch!sed i$ di$$erent dep!rt&ents r%n this !pp"ic!tion )ec!%se !"re!d# e.istin'
co&p%ters *i"" )e !)"e to r%n it *itho%t !n# ch!n'es +
2'1$;"#)$% F'$,":"%"!+
Peop"e !re inherent"# resist!nt to ch!n'e !nd co&p%ters h!e )een (no*n to $!ci"it!te
ch!n'e )%t since the prod%ct is 'oin' to so"e !"" the di$$ic%"ties o$ the %sers consider!)"#
here is ! *e"co&in' sense o$ e.pect!tion $or the ne* s#ste&+
O0')$!"#n$% F'$,":"%"!+
Oper!tion!" $e!si)i"it# criteri! &e!s%re the %r'enc# o$ the pro)"e& thro%'h the s%re#
!nd st%d# ph!ses !nd the !ccept!)i"it# o$ ! so"%tion thro%'h se"ection, !c8%isition !nd
desi'nin' ph!ses+
The proposed projects !re )ene$ici!" on"# i$ the# c!n &eet the oper!tin' re8%ire&ents
o$ the or'!ni6!tion+ This test chec(s *hether the s#ste& *i"" *or( or not, *hen it is
dee"oped !nd dee"opedM The t*o !spects o$ oper!tion!" $e!si)i"it# st%d# !re:
1+ Is the pro)"e& *orth so"in'M
7+ Ho* do endG%sers !nd &!n!'e&ent $ee" !)o%t the pro)"e& so"%tionM
L'.$% F'$,":"%"!+
The ne* proposed s#ste& is per$ect"# "e'!" i+e+ it is !%dit!)"e !ccordin' to r%"es !nd
re'%"!tions o$ the or'!ni6!tion+
JIET, Jind
BF
Project Report on SPEECH RECOGNITION SYSTEM
3.2 DESIGN SPECIFICATION
S#ste& desi'n is the $irst step in so$t*!re dee"op&ent, *hich needs c!re$%" !nd
intric!te p"!nnin'+ It he"ps %s to prep!re det!i"ed technic!" desi'n o$ the !pp"ic!tionG)!sed
s#ste&+ It is )!sed on Re8%ire&ent An!"#sis+ It proides the speci$ic!tion !nd desi'n $or
s#ste& 'iin' ! )rie$ oerie* o$ %ser $%nctions, re8%ire&ents !nd their !ct%!"
i&p"e&ent!tion+
D',".n O:A'!";',5
The 'o!" th!t *!s (ept in &ind *hi"e desi'nin' the s#ste& is:
1+ To &!(e the s#ste& %ser $riend"# !s &%ch !s possi)"e+
7+ To &!(e the $"o* o$ pro'r!& co&prehensi)"e to the %ser+
9+ To h!e tr!nsp!renc# in *or( i+e+ sho* ho* eer#thin' is )ein'
done )# the s#ste& step*ise+
D',".n D'","#n5
The s#ste& h!s )een dee"oped %sin' C1 .NET !s ! pro'r!&&in' "!n'%!'e+
DATA FLOW DIAGRAM
The /</ sere these p%rposes:
1+ A /+<+/+ c"!ri$ies s#ste& re8%ire&ents !nd identi$ies &!jor
tr!ns$or&!tions th!t *i"" )eco&e pro'r!&s in s#ste& desi'n+
7+ It is the st!rtin' point o$ desi'n ph!se th!t $%nction!""# deco&poses
the re8%ire&ents do*n to the "o*est "ee" o$ det!i"+
JIET, Jind
B1
Project Report on SPEECH RECOGNITION SYSTEM
Speech Reco'nition S#ste& /</
/</ <or >M= <i"es
JIET, Jind
;ser
P!rse
S#ste&
Process
>M=
<i"es
<ire Action
>M=
<i"es
Acti
!te
/e!cti!t
e
<!or
ites
A)o%t N%&eric
st!te
A"ph!)etic
st!te
B7
Project Report on SPEECH RECOGNITION SYSTEM
/</ <or /e!cti!te <i"e
/</ <or Acti!te <i"e
A)1"!'!u)$% D',".n5
JIET, Jind
/e!cti!t
e
Te.t To
Speech
E.it ;ser
Pro$i"e
Tr!inin'
-i6!rd
Sho*
Co&&!nds
<!orites
Acti!te
=e$t
St!rt Ri'ht ;p /o*n
Enter
B9
Project Report on SPEECH RECOGNITION SYSTEM
Architect%r!" desi'n represents the d!t! str%ct%re !nd pro'r!& co&ponents th!t !re
re8%ired to )%i"d the co&p%ter )!sed s#ste&+ It consider the str%ct%res !nd properties
O$ the co&ponents th!t constit%te the s#ste& !nd re"!tionship th!t e.ist )et*een !""
!rchitect%r!" co&ponents o$ the s#ste&+
It )e'ins *ith the d!t! desi'n !nd then proceeds to the deri!tion o$ one or &ore
represent!tions o$ the !rchitect%r!" str%ct%re o$ the s#ste&+ A"tern!tie !rchitect%r!" st#"es or
p!tterns !re !n!"#6ed to derie the str%ct%re th!t is )est s%ited to the re8%ire&ents !nd 8%!"it#
!ttri)%te+ Once !n !"tern!tie h!s )een se"ected, the !rchitect%re is e"!)or!ted %sin'
!rchitect%r!" desi'n &ethod+
P)#0')!"', #- C#*0#n'n!,5
The# !re the ch!r!cteristics th!t !re necess!r# $or %nderst!ndin' the co&ponents th!t
inter!ct *ith other co&ponents+ At the !rchitect%r!" "ee", intern!" det!i"s o$ !"'orith& !re not
speci$ied+ The re"!tionship )et*een co&ponents c!n )e !s si&p"e !s ! proced%re c!"" $ro& one
&od%"e to other or !s co&p"e. !s ! d!t!)!se !ccess protoco"+
S;MMARY
Architect%r!" desi'n $oc%ses on the represent!tion o$ the so$t*!re co&ponents, their
properties !nd inter!ction !nd there$ore $or& the core o$ !n# s#ste& dee"op&ent+
P)#'4u)$% D',".n5
Proced%r!" desi'n or co&ponent "ee" desi'n, occ%r !$ter d!t!, !rchitect%r!", !nd
inter$!ce desi'n h!e )een est!)"ished+ The intent is to tr!ns"!te the desi'n &ode" into
oper!tion!" so$t*!re+ 4%t the "ee" o$ !)str!ction o$ the e.istin' desi'n &ode" is re"!tie"#
hi'h, !nd the !)str!ction "ee" o$ the oper!tion!" pro'r!& is "o*+ The tr!ns"!tion c!n )e
ch!""en'in', openin' the door to the introd%ction o$ s%)t"e errors th!t !re di$$ic%"t to $ind !nd
correct in "!ter st!'es o$ the so$t*!re process+
3.3 A2OUT THE PROJECT
JIET, Jind
B?
Project Report on SPEECH RECOGNITION SYSTEM
Eer# speech reco'nition !pp"ic!tion consists o$ :
!n en'ine th!t tr!ns"!tes *!es into te.t
! "ist o$ speech co&&!nds
Need"ess to s!# th!t !s the 'r!&&!r incre!ses the pro)!)i"it# o$ &isinterpret!tions
'ro*s+ -e tried to (eep the 'r!&&!r !s s&!"" !s possi)"e *itho%t "oosin' in$or&!tion+ The
'r!&&!r $or&!t is e.p"!ined "!tter+
R'(u")'*'n!,
-e need SAPI@ Hships *ith >PI+
Microso$t En'ine $or En'"ish Hi$ not $o%nd c!n )e do*n"o!ded $ro& Microso$tYs siteI
A %"!!%' '/0%$n$!"#n #- !1' M$"n Fun!"#n #- !1' P)#A'!
\St!rt "isten\L\Stop "isten:
To en!)"eLdis!)"e the &ic HitYs s*itched !ccordin' to *h!t #o% chooseI, !$ter
dis!)"in' the "!)e"Ys )eco&es red H!cc%r!c# !nd st!teI indic!tin' o%r st!te+
\;se !'ent\ :
Tho%'h the !'ent is %sed on"# $or 'iin' $eed)!c( itYs co%"d )e %se$%" to (no* i$ #o%r
co&&!nd is he!rd or not+ Een tho%'h #o% c!n dis!)"e it i$ #o% *!nt or i$ #o% donYt
h!e !n !'ent $i"e, i$ it is not *or(in' !nd #o% sti"" *!nt to %se the reco'nition Hthere
is no connection )et*een the !'ent !nd the reco'nitionPI+
This !"so is )ein' t!(e c!re i$ the pro'r!& didnYt $ind the !'ent $i"e or co%"d not )e
"o!ded $ro& !n# other re!son+
\Add $!orites:
In the \!cti!te\ st!te #o% c!n s!# the co&&!nd %fa&orites programs% !nd open !
$or& *ith #o%r $!orites pro'r!&s !nd r%nnin' the& )# s!#in' the pro'r!& n!&e+
JIET, Jind
B@
Project Report on SPEECH RECOGNITION SYSTEM
This &en% *i"" open ! $or& sho*in' #o%r $!orites pro'r!&s so #o% c!n !ddLde"ete
or edit the& !s #o% *!nt+ =i(e *e i$ *e s!# *ord it open the Microso$t -ord+
\Ch!n'e ch!r!cter\ :
This *i"" !""o* #o% ch!n'in' the !'ent then #o% p"!ce other !'ent in !'ent $i"e c!""in'
p"!ce+ =i(e in o%r project *e t!(e three !'ent *e c!n ch!n'e then !t !n# ti&e *hich
*e *!nt "i(e $ro& the&+
\Ch!n'e !cc%r!c# "i&it\ :
Eer# reco'nition !cc%r!c# is disp"!#ed in the \Acc%r!c#\ "!)e", #o% c!n choose this
&en% !nd ch!n'e the !cc%r!c# "i&it th!t #o% *!nt the pro'r!& to respond to the
co&&!nd th!t he he!rs+ #o% sho%"d do this to !oid respondin' to !n# oice or so%nd
th!t he he!rs+ #o% c!n rise this &ore eer# ti&e th!t #o% tr!in #o%r co&p%ter !nd
incre!se the reco'nition+
\Ch!n'e %ser pro$i"e\ :
I$ the pro'r!& is )ein' %sed )# seer!" %sers #o% c!n choose to e!ch %ser ! pro$i"e
!nd tr!in the co&p%ter $or e!ch one Hto !dd ! %ser pro$i"e enter \contro" p!ne" GS
speech\, here #o% c!n on"# choose e.istin' oneYsI+
\Mic tr!inin' *i6!rd+++\ :
A er# "*0#)!$n! H!s I e.p"!ined )e$oreI $or the reco'nition+
The $irst thin' to do in eer# co&p%ter Hon"# !t the $irst ti&eI is to !cti!te this &en%
!nd settin' %p #o%r &ic or i$ #o% ch!n'ed #o%r &ic to ! ne* one+
\;ser tr!inin' *i6!rd+++\ :
<or ! )etter reco'nition Hnotice th!t the tr!inin' is $or the se"ected %ser pro$i"e+++I+
E.it++:
JIET, Jind
BB
Project Report on SPEECH RECOGNITION SYSTEM
<or Stoppin' the Project *e %se E.it+ 4# this *e stop the s#ste& )# the oice+
Te.tGtoGSpeech:
<or Te.t To Speech *e direct %se this co&&!nd )# this co&&!nd *e "isten !n# te.t
t#pe doc%&ent+ This option &!(e e!s# $or %s th!t *e do not need to re!d doc%&ent+

S!$)! S0'$="n.
start% to !cti!te the st!rt &en%, then #o% c!n s!# %programs% to enter the pro'r!&s
&en%, $ro& this point #o% c!n n!i'!te )# s!#in' %down%'% up%' %right%((( %O)% !ccordin'
the co&&!nds "ist+ Yo% c!n !"so s!# %commands list% $ro& !n# point to see ! $or& *ith the
"ist o$ the co&&!nds th!t #o% c!n s!#+++
One o$ the i&port!nt st!tes in the pro'r!& is \&en%\ st!te, &e!nin' th!t i$ ! pro'r!&
is r%nnin' H!nd $oc%sedI #o% c!n s!# %menu% to hoo( !"" &en% ite&s !nd st!rt %sin' the&+++
<or e.!&p"e i$ #o% !re r%nnin' notep!d #o% co%"d open ne* $i"e )# s!#in' %menu%*
+%$ile%*+%new file%( Eer# ti&e th!t #o% hoo( &en% #o% co%"d see ho* &!n# &en%s the
pro'r!& hoo(ed so #o% c!n st!rt %sin' the& !s co&&!nds HI h!d ! "itt"e pro)"e& *ith so&e
&en%Ys "i(e \*ord\ !nd \e.ce"\ th!t i co%"dnYt hoo( )%t+++ iY"" chec( it "!ter+++I+
Another nice st!te is \N%&eric st!te\, $or e.!&p"e s!# the co&&!nds +++ C-$;#)"!',
0)#.)$*,CDC$%u%$!#)CDC'n!') nu*')" ,!$!'CD C#n'CDC0%u,CDC!3#CDC'(u$%C !nd see
the res%"t+++
Or #o% c!n open ! site in \A"ph!)etic st!te\, $or e.!&p"e s!# the co&&!nds +++
C-$;#)"!', 0)#.)$*,CDC"n!')n'! '/0%#)')CDC'n!') $%01$:'!" ,!$!'CD
C*'nuCDC4#3nCDC4#3nCDCO ECD C'n!') $%01$:'!"
,!$!'CDCCDC#CDC4CDC'CD...DC4#!CDCCDC#CDC*C !nd see the res%"t+++
JIET, Jind
BC
Project Report on SPEECH RECOGNITION SYSTEM
G'!!"n. 1'%0
One o$ the &!in pro)"e&s *ith the oice !cti!ted s#ste&s is *h!t h!ppens i$ #o%
donYt (no* e.!ct"# *hich co&&!nds the co&p%ter e.pects+ No pro)"e&P I$ #o% !re %n!)"e to
proceed j%st s!# \co&&!nds "ist \ !nd the pro'r!& *i"" sho* #o% *h!t !re the !!i"!)"e
co&&!nds $ro& here+
St!tes Hco&&!ndsI !!i"!)"e in the pro'r!&:
de!cti!te
o c"ose speech reco'nition
o !)o%t speech reco'nition
c"ose ^ hide
o !cti!te
de!cti!te
%p
do*n
ri'ht
"e$t
enter ^ r%n ^ o(
esc!pe ^ c!nce"
t!)
&en% ^ !"t
o A"" \!cti!te\ st!te 2 &en%
ite&s
st!rt
o de!cti!te
o %p
o do*n
o ri'ht
o "e$t
o enter ^ r%n ^ o(
o esc!pe
s*itch pro'r!&
o t!) ^ ri'ht
o shi$t t!) ^ "e$t
o enter ^ o(
o esc!pe ^ c!nce"
press (e#
o re"e!se ^ stop
o %p
o do*n
o ri'ht
o "e$t
sh%t do*n
o ri'ht ^ t!)
o "e$t ^ shi$t t!)
o esc!pe ^ c!nce"
o enter ^ o(
p!'e %p
p!'e do*n
#es
no
enter n%&eric st!te
o e.it n%&eric st!te
o )!c( ^ )!c( sp!ce
JIET, Jind
BD
Project Report on SPEECH RECOGNITION SYSTEM
o t!)
o co&&!nds "ist
o pro'r!&s
o doc%&ents
o settin's
o se!rch
o he"p
o r%n
co&&!nds "ist
o c"ose ^ hide
o p!'e %p
o p!'e do*n
c"ose
$!orites ^ $!orites pro'r!&s
o c"ose ^ hide
o A pro'r!& n!&e $ro& the "ist
o p"%s
o &in%s
o &%" ^ &%"tip"#
o di ^ diide
o e8%!"
o N%&)ers $ro& F G
E
enter !"ph!)etic st!te
o e.it !"ph!)etic
st!te
o )!c( sp!ce
o enter
o !t H\_\I
o %nder"ine H\`\I
o d!sh H\G\I
o dot H\+\I
o )!c( s"!sh H\L\I
o =etters $ro& A to
a
Microso$t h!e )een dee"opin' oice reco'nition $or ! $e* #e!rs no* !nd the# h!e
! *e)site speci!"i6e in th!t+ In order to st!rt pro'r!&&in' oice co&&!nd reco'nition, #o%
&%st h!e Microso$t Speech Reco'nition En'ine inst!""ed++
JIET, Jind
BE
Project Report on SPEECH RECOGNITION SYSTEM
In !1' #*0#n'n!, D"$%#. ,'%'! M")#,#-! D")'! S0''1 R'#.n"!"#n !#
1$;' !1' #*0#n'n! $;$"%$:%' !# +#u) 0)#A'!. T1", #0!"#n ", #n%+
$;$"%$:%' "- +#u 1$;' !1' M")#,#-! S0''1 En."n' "n,!$%%'4.
So "etYs st!rt ! project in 3is%!" 4!sic+ Se"ect St!nd!rd E>E !nd *hen !"" the 'ien
codes !nd $or&s !re "o!ded, 'o to Project X Co&ponents+ In the Co&ponents di!"o', $ind !nd
se"ect the Microso$t /irect Speech Reco'nition Hpic+ 1I+ Re&e&)er, this option is !!i"!)"e
on"# i$ #o% h!e the Microso$t Speech En'ine inst!""ed+ No*, !n icon )%tton th!t "oo(s "i(e
!n e!r, #es !n e!r, sho%"d !ppe!r in the Too")o. )!r Hpic+ 7I, th!t is the Speech Reco'nition
co&ponent+ C"ic( on the )%tton !nd dr!* it o%t on the $or&+ No* #o%r $or& *i"" h!e the
/irectSR co&ponent icon !nd !"so sho*n in the code *indo* Hpic+ 9I+ /irectSR st!nds $or
JIET, Jind
CF
Project Report on SPEECH RECOGNITION SYSTEM
\/irect Speech Reco'nition\ !nd #o% '%essed it, /irectSS st!nds $or \/irect Speech
S#nthesis\+

An E$) "#n 3"%% $00'$) "n !1' !##%:$)
)'0)','n!"n. !1' D")'!SR #*0#n'n!.
No* in the code *indo* o$ the $or& *ith the /irectSR, se"ect /irectSR on the top
ri'ht p%"" do*n &en%+ P%"" do*n the &en% to the ri'ht o$ th!t !nd #o% c!n see the !rio%s
&ethods, eents !nd properties the /irectSR co&ponent proides+ In this !rtic"e the one
/irectSR *e *i"" concern o%rse"es *ith is the Phr!se<inish proced%re+ This is the proced%re
th!t *i"" )e c!""ed )# /irectSR *hen it h!s $inish processin' ! oice co&&!nd+
JIET, Jind
C1
Project Report on SPEECH RECOGNITION SYSTEM
W"!1 !1' C#4' W"n4#3 S'%'! D")'!SR1 "n !#0 %'-! 0u%% 4#3n *'nu $n4 ,'%'! P1)$,'F"n",1
"n !1' !#0 )".1! 0u%% 4#3n *'nu.
-hen #o% se"ect Phr!se<inish, the code th!t is p%t in p"!ce $or #o% is the $o""o*in':
Pri!te S%) /irectSR1`Phr!se<inishH4#3!" $"!'s As =on', `
4#3!" )e'inhi As =on', 4#3!" )e'in"o As =on', 4#3!" endhi As =on', `
4#3!" end"o As =on', 4#3!" Phr!se As Strin', 4#3!" p!rsed As Strin', `
4#3!" res%"ts As =on'I
ThereYs ! "ot o$ p!r!&eters #o% s!#+ 4%t donYt )e $ri'htened, the one th!t *e *i"" need
to )e concern *ith is the Phr!se p!r!&eter, this is the p!r!&eter strin' th!t *i"" cont!in the
reco'ni6ed *ord th!t *!s processed )# the /irectSR en'ine+
No* th!t *e 'ot th!t set %p, *e *i"" h!e to inp%t ! set o$ *ords $or the Speech
En'ine to reco'ni6e+ The jo) is er# si&p"e, *e j%st $eed in the set o$ *ords d%rin' the
<or&Ys On"o!d proced%re+ 4%t ho* do *e do th!t #o% !s(M Si&p"e, /irectSR h!e t*o *!#s
$or #o% to $eed the *ords in, the# !re /irectSR1+Gr!&&!r<ro&Strin' *hich t!(es in ! Strin'
!ri!)"e th!t cont!ins the *ords !nd /irectSR1+Gr!&&!r<ro&<i"e *hich t!(es in ! $i"e p!th
to ! $i"e th!t cont!ins the *ords in ! te.t $i"e+ Si&p"e eno%'hM The &ethod *e *i"" %se is
/irectSR1+Gr!&&!r<ro&Strin' )ec!%se this proides the 're!test $"e.i)i"it# )ec!%se #o%
c!n d#n!&ic!""# !dd !ddition!" *ords to the en'ine !nd sti"" !dd *ords in $ro& ! $i"e "i(e
/irectSR1+Gr!&&!r<ro&<i"e )# p%ttin' the te.t in the $i"e into ! !ri!)"e+
In the =o!d $%nction o$ the $or& inp%t the $o""o*in' code:
/i& tot!"d!t! As Strin'
tot!"d!t! W tot!"d!t! `
] \Tst!rtSWNotep!d\ ] )Cr=$ `
] \Tst!rtSW3o"%&e\ ] )Cr=$ `
] \Tst!rtSWMedi! P"!#er\ ] )Cr=$
JIET, Jind
C7
Project Report on SPEECH RECOGNITION SYSTEM

/irectSR1+Gr!&&!r<ro&Strin' Htot!"d!t!I
/irectSR1+Acti!te
So this is ho* the strin' "oo(s+ <or e!ch "ine th!t cont!ins ! *ord, ! t!' \Tst!rtSW\ is
%sed to si'ni$# ! *ord th!t $o""o*s $or the /irectSR to reco'ni6e+ In the s!&p"e code, three
*ords !re %sed, the# !re Notep!d, 3o"%&e !nd Medi! P"!#er+ G%ess *h!tM Ri'ht, *e *i"" %se
these *ords $or the oice co&&!nd to "o!d these pro'r!&s+ In !ddition, the
/irectSR1+Acti!te is %sed to st!rt the en'ine to )e'in reco'ni6in' oice co&&!nds+
/irectSR1+/e!cti!te is %sed to stop the en'ine $ro& reco'ni6in' oice co&&!nds+
-e !re !"&ost set+ A"" *e h!e to do is ret%rn to the Phr!se<inish proced%re to p!rse
the co&&!nd+ <ro& here on is prett# si&p"e, re&e&)er th!t the Phr!se p!r!&eter is !"" *e
need to )e concern !)o%t, *e"" here is ho* *e do it in the $o""o*in' code+
/i& s<i"e As Strin'
/i& noth As =on'
Se"ect C!se Phr!se
C!se \Notep!d\
s<i"e W \Xs#ste&97Xnotep!d+e.e\
noth W She""E.ec%teHF, \OPEN\, `
EnironH\S#ste&Root\I ] s<i"e, \\, \\, 1I
C!se \3o"%&e\
s<i"e W \Xs#ste&97Xsndo"97+e.e\
noth W She""E.ec%teHF, \OPEN\, `
EnironH\S#ste&Root\I ] s<i"e, \\, \\, 1I
C!se \Medi! P"!#er:
s<i"e W \C:XPro'r!& <i"esX-indo*s Medi!
P"!#erX&p"!#er7+e.e\
JIET, Jind
C9
Project Report on SPEECH RECOGNITION SYSTEM

noth W She""E.ec%teHF, \OPEN\, `
s<i"e, \\, \\, 1I
End Se"ect
Here is the "o* do*n or "odo*n :I+ -hen the /irectSR reco'ni6es ! so%nd, it *i""
process the so%nd into ! *ord th!t &!# c"ose"# &!tch the one #o% proided+ I$ it &!tches, the
Phr!se !ri!)"e *i"" cont!in the &!tched *ord+ And "o !nd )eho"d, the code *e %se is !
Se"ect C!se j%st $or the Phr!se !ri!)"e $or the *ords *e $ed in the en'ine in the "o!d
$%nction+ -hen ! &!tch occ%rs *e *i"" %se !n API $%nction She""E.ec%teHI to "o!d the
pro'r!&+
To dec"!re the API p%t the $o""o*in' code on top o$ the $or& &od%"e+
/ec"!re <%nction She""E.ec%te =i) \she""97+d""\ `
A"i!s \She""E.ec%teA\ H4#3!" h*nd As =on', 4#3!" `
"pOper!tion As Strin', 4#3!" "p<i"e As Strin', 4#3!" `
"pP!r!&eters As Strin', 4#3!" "p/irector# As Strin', `
4#3!" nSho*C&d As =on'I As =on'
The core o$ the s!&p"e is )!sic!""# done, ho*eer, !s #o% (no*, nothin' is re!""#
done *itho%t so&e st#"e *ith the G;I+ Here is the p"!n, "ets p%t ! )%tton on the $or& to stop
the reco'nition en'ine !nd !"so to st!rt the en'ine *hen its stopped+ A"so, "ets p%t ! "!)e" to
sho* the st!t%s o$ the en'ine !nd the reco'ni6ed *ord+
P"!ce ! "!)e" on the $or&+ Ne.t p"!ce ! )otto& on the $or& !nd do%)"e c"ic( on the
)%tton to open the code+ P"!ce the $o""o*in' code inside:
Pri!te S%) Co&&!nd1`C"ic(HI
Se"ect C!se Co&&!nd9+C!ption
C!se Is W \/is!)"e\
/irectSR1+/e!cti!te
Co&&!nd9+C!ption W \En!)"e\
JIET, Jind
C?
Project Report on SPEECH RECOGNITION SYSTEM
=!)e11 W \/is!)"ed\
C!se Is W \En!)"e\
/irectSR1+Acti!te
Co&&!nd9+C!ption W \/is!)"e\
=!)e11 W \Re!d#\
End Se"ect
End S%)
The code is str!i'ht $or*!rd+ A se"ect c!se to test the c!ption o$ the )%tton+ I$ /is!)"e,
/e!cti!te en'ine, set )%tton c!ption to \En!)"e\ !nd set the "!)e" c!ption to \/is!)"ed\+ I$
En!)"e, Acti!te en'ine, set )%tton c!ption to \/is!)"e\ !nd set the "!)e" c!ption to \Re!d#\+
Re&e&)er, its "!)e" c!ption !nd )%tton c!ption, t*o di$$erent thin's+
O(!# $e""o* discip"es, *e !re !"&ost ho&e+ The $in!" st#"in' *e *i"" do is to sho*
the Phr!se in the "!)e" so the %ser *i"" (no* *h!t *!s spit o%t )# speech en'ine+ -e c!n
!cco&p"ish this )# p%ttin' so&e code in the Phr!se<inish proced%re+
P%t the $o""o*in' code in Phr!se<inish proced%re+
I$ Phr!se TS \\ Then
=!)e"1+c!ption W \M!tched *ord is \ ] Phr!se
E"se : =!)e"1+c!ption W \No *ord &!tched\
End I$
S!e #o%r project !nd (eep it c"ose to #o%+ Press <@ !nd "et the )!)# r%n+ S!# the
co&&!nds "i(e Notep!d !nd *!tch the pro'r!& open+ R!dic!""# coo" ri'htMP P%ts ! *ho"e
ne* &e!nin' to \He# Mo&, no h!ndsP\+ As #o% c!n see, this is on"# the )e'innin' !nd the
potenti!" o$ oice co&&!nd is !s $!r !s #o%r i&!'in!tion *i"" t!(e #o%+ In o%r ne.t !rtic"e,
*e *i"" !dd &ore $e!t%res to the pro'r!& "i(e, h!in' o%r co&p%ter t!"( )!c( to #o%+ I c!n
see so&e %ser !r'%in' *ith their co&p%ter !"re!d#+ -e"" 'ood "%c( !nd h!pp# pro'r!&&in'+
S0''1 T'1n#%#."', E/0%$"n'4
JIET, Jind
C@
Project Report on SPEECH RECOGNITION SYSTEM
Te.tGtoGspeech is the c!p!)i"it# o$ ! co&p%ter to tr!ns"!te te.t in$or&!tion into s#nthetic
speech o%tp%t+ Speech reco'nition is the c!p!)i"it# o$ ! co&p%ter to reco'ni6e the spo(en
*ord $or the p%rpose o$ receiin' ! co&&!nd or d!t! inp%t $ro& the spe!(er+
Speech reco'nition !nd te.tGtoGspeech &!(e %se o$ en'ines, *hich !re the pro'r!&s
th!t do the re!" *or( o$ reco'ni6in' speech or p"!#in' te.t+ Ne!r"# !"" speechGreco'nition
en'ines tr!ns"!te inco&in' !%dio d!t! to en'ineGspeci$ic phone&es, *hich !re then
interpreted into te.t th!t !n !pp"ic!tion c!n %se+ HA phone&e is the s&!""est str%ct%r!" %nit o$
so%nd th!t c!n )e %sed to distin'%ish one %tter!nce $ro& !nother in ! spo(en "!n'%!'e+I
There !re t*o t#pes o$ te.tGtoGspeech reco'nition:
1+ S#nthesi6ed te.tGtoGspeech
7+ Conc!ten!ted te.tGtoGspeech
S+n!1',"B'4 T'/!F!#FS0''1
In s#nthesi6ed speech, the *ords !re e.!&ined !nd prod%ce the phonetic
pron%nci!tions $or the *ords+ The phone&es !re then &oed into ! co&p"e. !"'orith& th!t
i&it!tes the h%&!n oc!" tr!ct !nd prod%ce the so%nd+
C#n$!'n$!'4 T'/!F!#FS0''1
In conc!ten!ted te.tGtoGspeech the !"'orith& st%dies the te.t !nd p%""s recordin's,
*ords, !nd phr!ses o%t o$ ! preGrecorded "i)r!r#+ The di'it!" !%dio recordin's !re
conc!ten!ted Hjoined to'etherI to $or& the $in!" res%"t+
S0''1 A00%"$!"#n P)#.)$**"n. In!')-$'6API7
The Microso$t Speech App"ic!tion Pro'r!&&in' Inter$!ce HAPII %ses the O=E
Co&ponent O)ject Mode" HCOMI !rchitect%re %nder -in97 H-indo*s E@ !nd -indo*s
JIET, Jind
CB
Project Report on SPEECH RECOGNITION SYSTEM
NTI+ Microso$t A'entYs !rchitect%re %ses Microso$t SAPI $or s#nthesi6ed speech o%tp%t+
Microso$t A'ent %ses the Microso$t Speech App"ic!tion Pro'r!&&in' Inter$!ce HSAPII to
s%pport speech inp%t Hspeech reco'nition, or SRI !nd speech o%tp%t Hte.tGtoGspeech, or TTSI+
Microso$t A'ent descri)es inter$!ces th!t per&it !pp"ic!tions to !ccess its serices, en!)"in'
!n !pp"ic!tion to contro" the !ni&!tion o$ ! ch!r!cter, s%pport %ser inp%t eents, !nd speci$#
o%tp%t+
T1' C1$)$!') W"n4#3
In Microso$t A'ent !pp"ic!tions, the !ni&!ted ch!r!cters !re disp"!#ed in their
indiid%!" *indo*s th!t !"*!#s !ppe!r !t the top o$ the *indo* 6Gorder+ A %ser c!n &oe !
ch!r!cterYs *indo* )# dr!''in' the ch!r!cter *ith the "e$t &o%se )%tton+ The ch!r!cter
i&!'e &oes *ith the pointer+
T1' W#)4 2$%%##n
In !ddition to spo(en !%dio o%tp%t, the ch!r!cter !"so s%pports te.t%!" c!ptionin' in
the $or& o$ te.t o%tp%t in c!rtoonGst#"e *ord )!""oons+ -ords sho* in the )!""oon !s the# !re
spo(en+ The )!""oon hides $ro& ie* *hen spo(en o%tp%t is co&p"eted+
U,"n. !1' M")#,#-! A.'n! "n W': P$.',
To %se the Microso$t A'ent serices in ! *e) p!'e, %se the HTM= TO4JECTS t!'
*ithin the THEA/S or T4O/YS e"e&ent o$ the p!'e, speci$#in' the Microso$t C=SI/
Hc"!ss identi$ierI $or the contro"+ In !ddition, %se ! CO/E4ASE p!r!&eter to speci$# the
"oc!tion o$ the Microso$t A'ent inst!""!tion $i"e !nd its ersion n%&)er+
-e c!n %se 34Script, J!!Script !nd JScript to pro'r!& the Microso$t A'ent in *e)
p!'es+
U,"n. !1' M")#,#-! A.'n! W"!1 !1' .NET F)$*'3#)=
JIET, Jind
CC
Project Report on SPEECH RECOGNITION SYSTEM
Microso$t A'ent is !!i"!)"e !s !n Actie> /== contro"+ To %ti"i6e it *ithin +NET,
*e c!n %se the A.I&p+e.e %ti"it# proided *ith the +NET <r!&e*or( S/0:
A.I&p GGSS Actie> Contro" to -in <or&s Asse&)"# Gener!tor+
S#nt!.: A.I&p ZLM ^ ZZLso%rce[ OC>N!&e[[
A.i&p !'entct"+d""
The !)oe co&&!nd cre!tes t*o $i"es n!&e"# A.A'entO)jects+d"" !nd
A'entO)jects+d""+ -ith the %se o$ !)oe t*o $i"es *e !re no* 'e!red %p to %ti"i6e the
Microso$t A'ent contro" *ith +NET+
3.4 SCREEN SHOTS
JIET, Jind
CD
Project Report on SPEECH RECOGNITION SYSTEM
M$"n S)''n #- !1' S0''1 S+,!'*5
<irst"# *hen *e st!rt o%r project this $or& sho*s !t th!t ti&e+ In this sho* the st!t%s
!nd !cc%r!c# o$ the so%nd "ee" o$ the %ser ] !"so sho* the st!te o$ &ic o"%&e+ In st!tin'
the st!t%s is de!cti!te+ A$ter "istenin' !cti!te its st!t%s ch!n'e+
Here *e h!e !cc%r!c#J &e!ns ho* &%ch ! *ord spo(en )# the %ser !cc%r!te"#+ The
&ini&%& !"%e o$ this is Fb ] it er# %p to 1FFb+
S!$!u, #- $.'n!5
JIET, Jind
CE
Project Report on SPEECH RECOGNITION SYSTEM
In this $or&, !'ent 'ies the in$or&!tion to the %ser !)o%t its st!te either it is re!d# $or
%se or not "i(es !s sho*n )e"o*+ Mess!'e is sho*n on top o$ !'ent j%st !cti!te &e
*heneer #o% *!nt+
A!";$!' S0''1 R'#.n"!"#n S+,!'*5
JIET, Jind
DF
Project Report on SPEECH RECOGNITION SYSTEM
4# !cti!te co&&!nd, the s#ste&,s st!t%s is !cti!ted !nd st!rt its *or(in'+ No* !""
co&&!nds o$ the project *or( proper"# si&p"# )# spe!(in'+
C#n!'/! M'nu "n D'$!";$!':
JIET, Jind
D1
Project Report on SPEECH RECOGNITION SYSTEM
In this &en%, *e 'ie di$$erent options to %ser "i(e St!rt "isten, ;se !'ent !nd Add
$!orites etc+ A$ter se"ectin' the st!rt "isten option, this is !)"e to %nderst!nd o%r oice !nd
per$or& di$$erent !ctions+ I$ its !"%e is stop "isten then it is en!)"e to per$or& !n# !ction+
JIET, Jind
D7
Project Report on SPEECH RECOGNITION SYSTEM
A44 F$;#)"!',:
In Add <!orites $or&, *e h!e ! (e#G!"%e p!ir *here (e# is the pro'r!& n!&e !nd
!"%e sho*s the phr!se *hich %ser spe!( to !cti!te ! pro'r!& th!t he *!nt+ In this, *e h!e
di$$erent options $or !ddin' ne* pro'r!& in "ist, $or )ro*sin' the pro'r!& p!th, s!e th!t
pro'r!& in the "ist !nd c"ose this $or&+
JIET, Jind
D9
Project Report on SPEECH RECOGNITION SYSTEM
C1$n.' C1$)$!')5
There !re di$$erent MSG!'ent ch!r!cters "i(e Ro))#, p!dd#, Mer"in !nd Genie+ The#
h!e er# s&!"" di$$erence in their *or(in'+ -e c!n ch!n'e these ch!r!cters *hich *e *!nt+
So&e ch!r!cters !re !s $o""o*s:
1 Genie ch!r!cter:
7+Mer"in ch!r!cter:
JIET, Jind
D?
Project Report on SPEECH RECOGNITION SYSTEM
9+Ro))# ch!r!cter:
?+Pedd# ch!r!cter:
JIET, Jind
D@
Project Report on SPEECH RECOGNITION SYSTEM
Au)$+ %"*"!5
Acc%r!c# "i&it &e!ns ho* !cc%r!te"# ! %ser c!n spe!( !nd then s#ste& %nderst!nd
th!t oice+ A$ter %nderst!ndin' his oice s#ste& per$or& or $ire oper!tion !ccordin' to th!t
co&&!nd+
JIET, Jind
DB
Project Report on SPEECH RECOGNITION SYSTEM
U,') P)#-"%' C1$n.'5
As the n!&e s%''est, *e c!n ch!n'e o%r %ser pro$i"e $ro& the s#ste& )ec!%se o%r
project *i"" t!(e the pro$i"es $ro& s#ste&+ Here on"# *e see *hich %ser is se"ected !nd
ch!n'e th!t $ro& s#ste& %ser pro$i"e+
JIET, Jind
DC
Project Report on SPEECH RECOGNITION SYSTEM
T1' M")#01#n' W"B$)45
The &icrophone *i6!rd !dj%st #o%r &icrophone o"%&e $or %se *ith speech
reco'nition+ 4e$ore #o% )e'in, &!(e s%re th!t #o%r &icrophone !nd spe!(ers !re propere"#
connected to #o%r co&p%ter+
JIET, Jind
DD
Project Report on SPEECH RECOGNITION SYSTEM
C#**$n4, L",!5
This sn!p shot sho*s %s the co&&!nds !!i"!)"e in the project+ A"" these co&&!nds
!re st!tic in n!t%re+ I$ *e *!nt to hide this $or&, *e spe!( hide or c"ose+
JIET, Jind
DE
Project Report on SPEECH RECOGNITION SYSTEM
T'/! T# S0''15
I$ *e *!nt "isten o%r te.t d!t! *ritten in ! $i"e then *e spe!( te.t to speech+ A$ter
this *e open o%r $i"e !nd press )%tton spe!(+
JIET, Jind
EF
Project Report on SPEECH RECOGNITION SYSTEM
S!$)! M'nu5
As sho*n in $or&, *e st!rt *or(in' $ro& the st!rt+ -hen *e spe!( st!rt then st!rt
*indo* open !nd *e in this step )# step+
JIET, Jind
E1
Project Report on SPEECH RECOGNITION SYSTEM
CHAPTER 4
TESTING
JIET, Jind
E7
Project Report on SPEECH RECOGNITION SYSTEM
4.1 TESTING
Since the $!%"ts c!n occ%r d%rin' !n# ph!se in the so$t*!re dee"op&ent "i$e c#c"e,
di$$erent "ee"s o$ testin' !re %sed in the testin' process+ E!ch "ee" o$ testin' !i&s to test
di$$erent !spects o$ the s#ste&+ Th%s the s#ste& *!s p%t thro%'h the $o""o*in' tests:
1. Un"! T',!"n.
In %nit testin' the pro'r!&s th!t &!(e %p the s#ste& *ere tested+ This "ee" $oc%ses
$irst on the independent &od%"e to "oc!te the error+
2. In!'.)$!"#n !',!"n.
In inte'r!tion testin' &!n# &od%"es, *hich p!ssed the ;nit, testin' *!s co&)ined
into s%)s#ste&s !nd *!s then tested+
1. S+,!'* T',!"n.
In S#ste& Testin' the entire So$t*!re s#ste& is tested to $ind !n# t#pe o$ discrep!nc#
th!t sti"" e.ist )et*een the desi'ned s#ste& !nd the so$t*!re re8%ire&ents doc%&ent+
;nit Testin' !nd o%tp%t pro'r!& is e.ec%ted sep!r!te"# !nd tested $or )%'s+ -ho"e o$
the s#ste& is e.ec%ted !nd test d!t! is p!rted !nd is $i. into the s#ste& !nd the o%tp%t reports
!re co&p!red *ith the p!r!&eters+
Testin' $or&s ! er# i&port!nt p!rt o$ the s#ste& dee"op&ent "i$e c#c"e+ It is
)!sic!""# this st!'e th!t he"ps the pro'r!&&er to (no* !"" the possi)"e $"!*s re"!ted *ith the
*or(in' o$ his so$t*!re !nd !"so he"ps to chec( the $%nctionin' o$ the !rio%s chec(s th!t
h!e )een %sed in the pro'r!&s+
The co&p"ete project *!s tested in top do*n !ppro!ch+ <or &od%"!r testin' o$
pro'r!&s the pro'r!& !re e.ec%ted one )# one !nd there inp%ts *ere t!(en o%t+The o%tp%ts
th%s $or&ed *ere t!(en in the $or& o$ reports o$ the project, *hich is 'ien in the "!ter p!rt
o$ the doc%&ent!tion+ The reports th%s $or&ed *ere $o%nd o%t to )e correct *hen co&p!red
*ith the d!t! entered in the $i"es+
O:A'!";' #- S+,!'* T',!"n.5
Once ! s#ste& h!s )een desi'ned it is necess!r# to %nder'o !n e.h!%stie to )e$ore
inst!""in' the s#ste&+ This is i&port!nt )ec!%se in so&e c!ses ! s&!"" error not detected !nd
corrected e!r"# )e$ore inst!""!tion, &!# e.p"ode into ! &%ch "!r'e pro)"e& "!ter on+ Testin'
JIET, Jind
E9
Project Report on SPEECH RECOGNITION SYSTEM
is )ein' per$or&ed *hen %sers !re !s(ed to !ssist in identi$#in' !"" possi)"e sit%!tions+ Th!t
&i'ht !rise !s re'!rds the $!ctor th!t e$$orts *ere p%t to t!c("e the pro)"e& %nder
consider!tion+ A p"!n *!s decided to )e $o""o*ed $or testin' the s#ste&+ The co&p"ete testin'
proced%re *!s diided into seer!" steps, to )e per$or&ed !t di$$erent st!'es+ Test *!s to )e
done !s $o""o*s:
4.2 TESTING CRITERIA
W1"!' 2#/ T',!"n.5
T)$n,$!"#n 0$!1 T',!"n.
In this ph!se e!ch !nd eer# condition *ith in ! %nit pro'r!& *ere tested+ As !nd
*hen ! "oop or condition st!te&ent *ere incorpor!ted in to ! %nit the "oops *here tested $or
correctness, $or $o%ndr# condition !nd $or not 'ettin' into in$inite e.ec%tion c#c"e+ The d!t!
%sed *!s *h!teer necess!r# !t the inst!nce+ The p!th o$ e!ch tr!ns!ction $ro& ori'in to
destin!tion *!s tested $or re"i!)"e res%"ts+
M#4u%' T',!"n.
This *!s c!rried o%t d%rin' the pro'r!&&in' st!'e itse"$+ Indiid%!" pro'r!&s *ere
tested !t the ti&e o$ codin' !nd necess!r# ch!n'es !re &!de there on to &!(e s%re th!t the
tested !t the ti&e o$ codin' !nd necess!r# ch!n'es !re &!de there on to &!(e s%re th!t the
&od%"es in the $or& pro'r!& is *or(in' s!tis$!ctor# !s re'!rds the e.pected o%tp%t $ro& the
&od%"e+ A"" !spects o$ the pro'r!& i6+ !"" choices !!i"!)"e !re proper"# tested+
2%$= 2#/ T',!"n.
S+,!'* T',!"n.
A$ter &od%"e !nd strin' testin', the s#ste&s *ere tested !s *ho"e s#ste& testes *ere
%ndert!(en to chec( )%nd"ed &od%"es $or errors+ The errors $o%nded in the co%p"e s#ste& !s
! *ho"e *!s corrected+ A testin' on the !ct%!" d!t! o$ the co&p!n# $o""o*ed this+ /%rin' this
ph!se the e.istin' s#ste& !nd this p!c(!'e *!s r%nnin' in p!r!""e" to en!)"e %s to eri$# !nd
co&p!re the res%"t sets+ The $o""o*in' criteri! *ere to )e %sed *hi"e testin' the s#ste&+
Ou!0u! T',!"n.
JIET, Jind
E?
Project Report on SPEECH RECOGNITION SYSTEM
No s#ste&s co%"d )e %se$%" i$ it does not prod%ced the re8%ired oper!tion $or th!t
&!tter oper!tion in the re8%ired $or&!t the o%tp%t 'ener!ted or disp"!#ed )# the s#ste& %nder
consider *!s tested )# !s(in' the $or&!t re8%ired )# the&+
T',!"n. P)#'4u)'
/i$$erent t#pe o$ chec(s "i(e d%p"ic!te chec(s, co&p"eteness chec(, !"idit# chec(s
etc+ !re incorpor!ted in this s#ste&, !s the d!t! h!s to )e entered in di$$erent c!rds+
The %ser is not $!&i"i!r *ith ne* s#ste& the d!t! entr# screens !re desi'ned in s%ch ! *!#
th!t the# !re:
1+ Consistent
7+ Co&p!ti)"e
9+ E!s# to %se
?+ H!d 8%ic( response
The $o""o*in' conentions !re %sed *hi"e desi'nin' o$ the !rio%s screens to &!(e
the s#ste& %ser $riend"#+
1+ A"" the ite&s th!t !re "o'ic!""# re"!ted !re to'ether+
7+ <or ! p!rtic%"!r c!rd, 8%er# h!s )een proided+
9+ Error !nd !"id!tion &ess!'es !re proided *hereer re8%ired+
?+ S#ste& testin' is !'!inst its initi!" o)jecties, it is done either in ! si&%"!ted
eniron&ent+
T',! R';"'3
Test reie* is the process, *hich ens%res th!t testin' is c!rried o%t, !s p"!nned test
reie* decides *hether or not the pro'r!& is re!d# to shipped o%t $or the i&p"e&ent!tion+
<or e!ch d!t! entr# screen, *e prep!red test d!t! *ith e.tre&e !"%es !nd %nder !"" re"e!nt
d!t! screen !'!inst re!" this process he"ps in recti$#in' the &od%"es ti&e+
JIET, Jind
E@
Project Report on SPEECH RECOGNITION SYSTEM
4.3 TESTING ON THE CHECES AND VALIDATION APPLIED

ATTRI4;TE
ACCEPTA4=E

3A=;ES
INP;T
SYSTEM
4EHA3IO;R

RES;=T
U,')
P1$),'
N#!
Un"(u'
Du0%"$!'4
;$%u',
Un'/0'!'4
O0
P1$),' E/",!"n.
P1$),'
Du0%"$!'4
;$%u',
A, E/0'!'4
O0
JIET, Jind
EB
Project Report on SPEECH RECOGNITION SYSTEM
CHAPTER <
CONCLUSION
JIET, Jind
EC
Project Report on SPEECH RECOGNITION SYSTEM
<.1 CODE EFFICIENCY
-ith the he"p o$ d!t! !)str!ction it tried to red%ce the code si6e !s &%ch !s possi)"e+
The in$or&!tion $"o* is &!de thro%'h !r'%&ents !nd ret%rned !"%es !nd '"o)!" !ri!)"es
!re !oided !s &%ch !s possi)"e+ Codin' is &!int!ined in ter&s o$ hier!rch# o$ c"!sses !nd
c!n )e e.tended to 're!ter code re!d!)i"it#+ E$$icienc# in codin' is &!int!ined thro%'h
indent!tion th!t proes the re!d!)i"it# o$ the code+ O)ject Oriented Pro'r!&&in' !ppro!ch is
!pp"ied so th!t pro'r!&s or &od%"es )eco&e &ore &!int!in!)"e !nd tr!ce!)"e+ ;se o$ 5.# !#,
is !oid!)"e $or the s!(e o$ re!d!)i"it# !nd tr!ct!)i"it#+ 4# !pp"#in' OOPS pro'r!&&in',
codin' )eco&es &%ch e$$icient+
O0!"*"B$!"#n #- C#4'
Opti&i6!tion o$ code &e!ns i&proe&ent in per$or&!nce to &!.i&%& e.tent+
Opti&i6!tion codin' is done in ter&s o$ &%"tithre!din' so$t*!re dee"op&ent+ The desi'n is
$"e.i)"e !s it per&its the e.ec%tion o$ the processes in si&%"t!neo%s &!nner+ The OOPS code
is &ore &!n!'e!)"e+ The serer so$t*!re is opti&i6ed to the )est %ti"i6!tion o$ reso%rces s%ch
!s CP; !nd &!in &e&or#+ The &%"tithre!din' !ppro!ch prod%ces possi)i"it# o$ $%""est %se o$
reso%rces+ The &%"tithre!din' !rchitect%re h!nd"es the process in ! si&%"t!neo%s"# &!nner
r!ther th!n se8%enti!" &!nner+ The &!jor o)jectie o$ the so$t*!re dee"op&ent is to &!(e
the code opti&i6ed to test per$or&!nce )# dee"opin' it %sin' &%"tithre!din' !ppro!ch+
V$%"4$!"#n 1'=
In the so$t*!re desi'n, speci!" !ttention is 'ien to the !"id!tion o$ the d!t! entr#+
A"" the d!t! entr# is done (eepin' the !"id!tion chec( in &ind+ A"" the $ie"ds !re chec(ed $or
consistenc# !nd inte'rit# o$ the d!t!+ The &od%"e inter$!ces !re chec(ed $or !r'%&ent
!"id!tion !nd ret%rned !"%es+ The !"id!tion is done in s%ch !n !ppropri!te &!nner, so th!t
in!"id d!t! entr# c!n )e $%""# denied+ A"" the $ie"ds !re chec(ed $or correspondin' d!t! t#pes
!nd "en'th de$ined in the d!t!)!se+ The !"id!tion chec(s ens%re th!t the 'ener!ted o%tp%t is
consistent *ith the inp%t+ The &!in o)jectie o$ the !"id!tion chec( is to '%ide the %ser o$
the s#ste& $or !"id d!t! entr#+ 3!rio%s "o'ic is !"so !pp"ied $or chec(s+ The OOPS code !re
&ore &!int!in!)"e+
JIET, Jind
ED
Project Report on SPEECH RECOGNITION SYSTEM
<.2 CONCLUSION
This project h!s )een &!de $or the %sers to &et the &ost o$ their needs in hospit!"s+
-e h!e tried o%r )est to + This represents ! re!" *or"d sit%!tion+
In order to 'ener!te the $in!" reports, !"" the steps ino"ed in d!t!)!se desi'nin' h!d
to )e &etic%"o%s"# $o""o*ed+ This h!s stren'thened o%r %nderst!ndin' o$ the d!t!)!se desi'n+
Initi!""# there *ere pro)"e&s *ith the !"id!tion )%t *ith the '%id!nce o$ the project
'%ide, *e *ere !)"e to so"e the pro)"e& !nd i&p"e&ent the !"id!tions+
In co%rse o$ the dee"op&ent o$ this project *e *ere introd%ced to 3is%!" 4!sic !nd
Or!c"e !s ! po*er$%" desi'nin' too"+
<in!""# *e *o%"d "i(e to &ention th!t this project h!s 'ien %s !n ide! o$ h!nd"in'
re!" "i$e sit%!tions concernin' d!t! &!n!'e&ent in !n e$$icient *!#+
JIET, Jind
EE
Project Report on SPEECH RECOGNITION SYSTEM
CHAPTER G
REFERENCES
JIET, Jind
1FF
Project Report on SPEECH RECOGNITION SYSTEM
G.12I2LIOGRAPHIES
The $o""o*in' p!pers !nd p%)"ic!tions h!e )een %sed, $or re$erences, in the st%d#:

1 COMP=ETE RE<ERENCE O< C1
7 THE A/3ANCE/ C1 T;TORIA= 4Y GOPA= S;RESH RAJ
9 MASTERING 3IS;A= C1 +NET
? SO<T-ARE ENGINEERINGG A PRACTITIONER,S APPROACH
@ THE COMP=ETE G;I/E TO C1 PROGRAMMING 4Y Er+ 3+0+ JAIN
JIET, Jind
1F1
Project Report on SPEECH RECOGNITION SYSTEM
G.2 REFERENCES
1+ ***+'oo'"e+co&
7+ ***+csh!rpcorner+co&
9+ ***+&icroso$t!'ent+co&
JIET, Jind
1F7

You might also like