You are on page 1of 19

Abstract

This is a project report on the summer internship done by Mr Tapas Sarkar and Miss Angshusmita Baruah under the guidance of Dr.P.K.Das period from May 1 to !une "# $##%. The main area of interest is speech recognition and the project can be di&ided into " parts 1. 'ami(iari)ation *ith a sound recording soft*are+ ,oo( -dit and using recorded data to spot recurring patterns $. De&e(opment of a sound recording soft*are ". De&e(opment of course materia( on Data structure

Ackno*(edgement
.e e/press our sincere gratitude to a(( the peop(e *ho ha&e he(ped us during the course of the project. 'irst and foremost our heartfe(t thanks to our guide Dr. P.K.Das under *hose guidance *e comp(eted this project. .e *ou(d a(so (ike to thank Director T0P+Dept of ,S-+11T 2u*ahati *ho ga&e us the permission to initiate the project. A(so *e ackno*(edge the he(p pro&ided by the Dept of T0P of our respecti&e co((eges. 3ast but not the (east *e thank our fami(y and friends for their support and encouragement

1.Introduction
The summer internship program *as a 4 days program main(y dea(ing *ith the area of Speech recognition. The *ho(e project can be di&ided into " phases 1. Familiarization with a sound recording software, Cool Edit and using recorded data to spot recurring patterns: The first $ days of the project *as used to study in detai( a sound recording soft*are ,oo( -dit. 5arious inbui(t functions of the abo&e soft*are *as studied. The soft*are *as app(ied to record &arious sounds. And no* recurring patterns *ere obser&ed. This *as on(y a pre(iminary study of *hat is ca((ed the Accoustic Phonetic approach and it has scope of further study $. Development of a sound recording software: The ne/t 1 days *ere de&oted to de&e(oping a soft*are that records sound. This *as done a(ong the guide(ines of a simi(ar program but our the main feature of the program is that one can record sound *ithout c(icking any*here. 1t a(so faci(itates the data to be stored in a te/t fi(e ". Development of course material : A(so some course de&e(opment *ork *as done a(ong *ith the project . The materia(s de&e(oped *as topics inc(uded in data structure and 6bject oriented programming and are form of po*er point s(ides

The *ork co&ered in each phase of the project has been described in detai(s in the fo((o*ing pages.

2.Details of the pro ect


1.Familiarization with a sound recording software, Cool Edit and using recorded data to spot recurring patterns:
The first phase of the project inc(uded the study of a recording soft*are ca((ed ,oo( -dit and using the recorded data to ana(y)e repetiti&e pattern. This ho*e&er *as a pre(iminary ana(ysis *hich can be used for further study

a. !tud" of Cool Edit and recording data with it7 As mentioned ,oo( -dit is a
soft*are that can be used for recording data as *e(( as disp(aying data. 1t records in a format that is specified by the user and a(so stores the data in a user defined format. This soft*are disp(ays data in a *a&eform format and a(so disp(ays &arious parameters. Data is recorded using this in a user defined samp(ing rate. As the data used is human &oice a $$k8) 1%bit recording format is used. The recorded data is sa&ed in the te/t format and further ana(ysis is done.

'ig17 =ecording Data *ith ,oo( -dit

#. $nal"sis of data using Cool Edit : The ana(ysis procedure that is


used is ca((ed Acoustic9Phonetic ana(ysis. 1n this approach a *ord is segmented and attached some (abe(s ca((ed Phonetic 3abe(s. And these (abe(s are used for identification and spotting of *ord i. $im of $nal"sis: A *ord is considered and if its *a&eform is considered some pattern that is recurring in the data can be noticed. :o* the aim is to find out the properties the pattern *hich can be used for ana(ysis ii. %rocedure7 The &o*e( to be ana(y)ed is the &o*e( ;o< a. 5arious samp(es of the recorded &o*e( is taken. b. The samp(es contain a si(ence region. A , program is used to e(iminate the si(ence region c. :o* the the abso(ute &a(ues of the samp(es are taken and the *a&eform is &ie*ed d. A recurring pattern is spotted and Properties of the pattern is studied

'ig$7 =ecording the &o*e( ;o< Program17 To remo&e the si(ence region in a sound fi(e >inc(ude?stdio.h@ >inc(ude?conio.h@ >inc(ude?std(ib.h@ >define B36,K 1# int mainA&oidB C '13- Df+Df1+Df$+DtempE c(rscrABE (ong int read+i+sumF#+inde/F#+tE (ong int a&g+a&g1+a&g$E GD6pening a(( the fi(esDG

fF fopenAHc7IIprodataIIotestIIo.t/tH+HrHBE f1FfopenAHc7IIprodataIIotestIIo1.t/tH+H*JHBE f$FfopenAHc7IIprodataIIotestIIo$.t/tH+H*JHBE *hi(eAKfeofAfBB C fscanfAf+HL(dH+0readBE sumJFreadE inde/JJE M a&gFsumGinde/E printfAHL(d L(d H+a&g+sumBE sumF#E fc(oseAfBE fFfopenAHc7IIprodataIIotestIIo.t/tH+HrHBE tempFfopenAHc7IIprodataIIotestIItempo.t/tH+H*JHBE *hi(eAKfeofAfBB C fscanfAf+HL(dH+0readBE GGprintfAHL(d ItH+readBE readFread9a&gE GG sumJFreadE GGprintfAHInLd H+readBE fprintfAtemp+HL(dInH+readBE M fc(oseAtempBE tempFfopenAHc7IIprodataIIotestIItempo.t/tH+HrHBE inde/F#E *hi(eAKfeofAtempBB C fscanfAtemp+HL(dH+0readBE GG printfAHL(dH+readBE ifAread ?F a&g1 00 read @F a&g$B inde/JJE e(se breakE M printfAH.ritten Successfu(yHBE printfAHInThe inde/ &a(ue is L(dH+inde/BE fc(oseAfBE tempF fopenAHc7IIprodataIIotestIItemp .t/tH+HrHBE iF#E *hi(eAKfeofAfBB C GGprintfAHL(d H+iBE fscanfAtemp+HL(dH+0tBE ifAi?Finde/B

C GGprintfAH.ritting in Si(ence.........InHBE fprintfAf1+HL(dInH+tBE M e(se C GGprintfAHItIt .ritting in =est...........InHBE fprintfAf$+HL(dInH+tBE M iJJE M printfAHIn.ritten Successfu(yHBE fc(oseAfBE fc(oseAf1BE fc(oseAf$BE fc(oseAtempBE getchABE return #E M

'ig"7 Dig sho*ing the recurring pattern in the document

iii. =esu(ts and discussion7 1t is seen that there e/ist t*o repetiti&e cur&e in the graph . The gradient of the tangents of both the ups(ope and the do*ns(ope are taken. 'ina((y from the data it is seen that the ratio of the gradients for the upper s(ope is a (iit(e (ess than one *hi(e for the do*ns(ope the ratio is a (itt(e more than 1 8o*e&er as mentioned this is a &ery pre(iminary approach and is just the beginning of future prospects in this approach.

'ig 47'igure Sho*ing the =esu(ts

2. Development of a sound recording software: The second phase of the project dea(s *ith the de&e(opment of a
soft*are. 1t can be used. The soft*are *sa de&e(oped a(ong the guide(ines of a simi(ar recording program by 'ister. 1. $im of development and functionalit" of the program : The de&e(oped programs can be used to record sound for seconds.8o*e&er there is no need to c(ick any objects to start recording. 1t stores the recorded sound in a .*a& sound fi(e.1t uses " buffers to store the sound *hich is P,M -ncoded and 1%bit *ith a samp(ing rate of $$ k8). 2. !tructure of the program: The program is de&e(oped in 5cJJ. The programAca((ed =ecorderB consists of the fo((o*ing header fi(es ha&ing the fo((o*ing functions7 recorder.dsp: This fi(e Athe project fi(eB contains information at the project (e&e( and is used to bui(d a sing(e project or subproject. 6ther users can share the project A.dspB fi(e+ but they shou(d e/port the make fi(es (oca((y. recorder.h This is the main header fi(e for the app(ication. 1t inc(udes other project specific headers Ainc(uding =esource.hB and dec(ares the ,recorderApp app(ication c(ass. recorder.cpp This is the main app(ication source fi(e that contains the app(ication c(ass ,recorderApp. recorder.rc This is a (isting of a(( of the Microsoft .indo*s resources that the program uses. 1t inc(udes the icons+ bitmaps+ and cursors that are stored in the =-S subdirectory. This fi(e can be direct(y edited in Microsoft 5isua( ,JJ. recorder.clw This fi(e contains information used by ,(ass.i)ard to edit e/isting c(asses or add ne* c(asses. ,(ass.i)ard a(so uses this fi(e to store information needed to create and edit message maps and dia(og data maps and to create prototype member functions. res&recorder.ico This is an icon fi(e+ *hich is used as the app(icationNs icon. This icon is inc(uded by the main resource fi(e recorder.rc. res&recorder.rc2 This fi(e contains resources that are not edited by Microsoft 5isua( ,JJ.

recorderDlg.h, recorderDlg.cpp ' These fi(es contain your ,recorderD(g c(ass. This c(ass defines the beha&ior of your app(icationNs main dia(og. The dia(ogNs temp(ate is in recorder.rc+ *hich can be edited in Microsoft 5isua( ,JJ. (esource.h This is the standard header fi(e+ *hich defines ne* resource 1Ds. Microsoft 5isua( ,JJ reads and updates this fi(e.

'ig 7 The -/ecuted Program

). Development of the front end7 The code for thhe front end is put in a fi(e ca((ed 'isterd(g.

Program$7 Program for the front end interface

>inc(ude Hstdaf/.hH >inc(ude H=ecorder.hH >inc(ude H=ecorderD(g.hH >ifdef OD-BP2 >define ne* D-BP2O:-. >undef T81SO'13static char T81SO'13-QR F OO'13-OOE int iF#E int f(ag F#E >endif ,=ecorderD(g dia(og ,=ecorderD(g77,=ecorderD(gA,.ndD pParent GDF:P33DGB 7 ,Dia(ogA,=ecorderD(g771DD+ pParentB C GGCCA'SODATAO1:1TA,=ecorderD(gB mOsTime F OTAHHBE GGMMA'SODATAO1:1T GG :ote that 3oad1con does not reTuire a subseTuent Destroy1con in .in"$ mOh1con F Af/2etAppAB9@3oad1conA1D=OMA1:'=AM-BE M &oid ,=ecorderD(g77DoData-/changeA,Data-/changeD pDSB C ,Dia(og77DoData-/changeApDSBE GGCCA'SODATAOMAPA,=ecorderD(gB DDSO,ontro(ApDS+ 1D,O=Button+ mO=buttonBE DDSO,ontro(ApDS+ 1D,OP3AU+ mOP(ayButtonBE DDSOTe/tApDS+ 1DOT1M-=+ mOsTimeBE GGMMA'SODATAOMAP M B-21:OM-SSA2-OMAPA,=ecorderD(g+ ,Dia(ogB GGCCA'SOMS2OMAPA,=ecorderD(gB 6:O.MOPA1:TAB

6:O.MOVP-=UD=A21,6:AB 6:OB:O,31,K-DA1D,OP3AU+ 6nP(ayB 6:O.MOT1M-=AB 6:O.MOSUS,6MMA:DAB GGMMA'SOMS2OMAP -:DOM-SSA2-OMAPAB B663 ,=ecorderD(g776n1nitDia(ogAB C ,Dia(og776n1nitDia(ogABE Set1conAmOh1con+ T=P-BE GG Set big icon Set1conAmOh1con+ 'A3S-BE SetTimerA1DOT1M-=+1###+:P33BE Start=ecordingTo'i(eABE return T=P-E GG return T=P- un(ess you set the focus to a contro( M G &oid ,=ecorderD(g776nPaintAB C if A1s1conicABB C ,PaintD, dcAthisBE GG de&ice conte/t for painting SendMessageA.MO1,6:-=AS-BK2:D+ A.PA=AMB dc.2etSafe8dcAB+ #BE int c/1con F 2etSystemMetricsASMO,S1,6:BE int cy1con F 2etSystemMetricsASMO,U1,6:BE ,=ect rectE 2et,(ient=ectA0rectBE int / F Arect..idthAB 9 c/1con J 1B G $E int y F Arect.8eightAB 9 cy1con J 1B G $E dc.Dra*1conA/+ y+ mOh1conBE M e(se C ,Dia(og776nPaintABE M M 8,P=S6= ,=ecorderD(g776nVueryDrag1conAB C return A8,P=S6=B mOh1conE

&oid ,=ecorderD(g776nP(ayAB C ,String stringE mOP(ayButton.2et.indo*Te/tAstringBE ifAstring FF HP(ayHB C StartP(aying'rom'i(eABE mOP(ayButton.Set.indo*Te/tAHStopHBE M e(se C StopP(aying'rom'i(eABE mOP(ayButton.Set.indo*Te/tAHP(ayHBE M M &oid ,=ecorderD(g776n-nd6fP(aying'i(eAB C mOP(ayButton.Set.indo*Te/tAHP(ayHBE M &oid ,=ecorderD(g776nTimerAP1:T n1D-&entB C ,Time curtime F ,Time 77 2et,urrentTimeABE static int tF curtime.2etSecondABE static int sF 1E mOsTime.'ormatAHLdH+sBE sFsJ1E ifAcurtime.2etSecondAB FF tB C mO=button.Set.indo*Te/tAH=ecording 1s Started.......HBE M ifAcurtime.2etSecondAB FF tJ B C f(ag F 1E mO=button.Set.indo*Te/tAH=ecording 1s StoppedHBE Ki((TimerA1DOT1M-=BE

M ifAf(ag FF1B C Stop=ecordingTo'i(eABE GG,(oseABE returnE M PpdateDataA'A3S-BE ,Dia(og776nTimerAn1D-&entBE M

". Development of course material:

The third phase of the project *as to de&e(op course materia(s. The course de&e(oped inc(udes t*o topics766P and Data structures using !a&a. The materia( *as de&e(oped as po*er point s(ides and the fo((*ing topics *ere co&ered7 1. 'undamenta(s of 6bject 6riented Programming $. Stacks ". Vueues 4. 3inked (ist . Trees %. Searching W. Sorting

). Conclusion
8ence the training program consisted of " different projected imp(anted in " phases. The first project main(y *as concerned *ith the ana(ysis of common pattern found in *ords 1n the second project+ a program *as de&e(oped to record and store sound The third project *as to de&e(op materia(s for students 8o*e&er for the first t*o phases there remains a (ot of scope for further study and de&e(opment. The *ork hence done can be used as the initia( effort for such de&e(opement

*. (eferences:
1. www.syntrillium.com $. Rabiner ". http7GG***.codeproject.comGaudioGfister.asp 4. en.wikipedia.org/wiki/ Object-oriented_programming
5. C Balaguruswamy : Object-oriented_programming in C

You might also like