ỨNG DỤNG CÔNG NGHỆ CORBA VÀO LÃNH VỰC ĐIỆN THOẠI VÀ NHẬN DẠNG TIẾNG NÓI
ĐỖ HOÀNG CƯỜNG
Trang nhan đề
Mục lục
Mục đích
Chương_1: Giới thiệu về CORBA.
Chương_2: Các thành phần cơ sở của CORBA.
Chương_3: Khảo sát chi tiết về ORB.
Chương 4: Tính tương tác của CORBA.
HAI PHÂN HỆ ỨNG DỤNG MINH HỌA
TÍCH HỢP MÁY TÍNH VỚI ĐIỆN THOẠI
Tài liệu tham khảo
53 trang |
Chia sẻ: maiphuongtl | Lượt xem: 2080 | Lượt tải: 0
Bạn đang xem trước 20 trang tài liệu Luận án Ứng dụng công nghệ corba vào lãnh vực điện thoại và nhận dạng tiếng nói, để xem tài liệu hoàn chỉnh bạn click vào nút DOWNLOAD ở trên
,1'dichchuy€nyangtrailvoiehu6icaexungcoehu
ky21tIN.fHp lingxungtudnglinghen)la tichcuawen)voidaycaexung
coehukyN. B€ giamdQphliet~ptinhtoannguaitachQnwen)codQdai
xaedinh.
2.1.1.4.Dtf baotuye'nHnb:
D~ngd1,1'baatuye"ntinh:
p
X(n) =Lakx(n - k)
k=1
61
k:. 32 ms
f1(t!
1 ..,
I
~t
/1;. , \\ ('V;
,\, I i
. ~. \l
/
/\/",
l
flJ.. ':.-
.- 'i..,
l
.'
-\-
;
it I
\"
\,
\\
I' .,
\j.'
", !.,,-
f"(t)
I I ,! I I I I' !, "' ',' h "
1\' I' 01\
' "
..., I , ,. , I' , '" ., t. " .' '
~ .1 ,0!~ ,.J.\,I\JV" ",.\(IJ\:.. J",/\V\~"!'I\"', "I/~,',I:,",- 0 Iv\~ '!\ii!Y i\lv;' , \ IfJ\ ~\IV' ~\j\" \\\'\ T. '~ \ . , , \
J
-1 j
. F, (jwJ i/N
0,3l
I F2(jw) :/N
0,3
0.2 0.2
0.1 -1 I
0.0 ~.U-"-rl
0
JJ~...~~ -, ,
0,1
2 4
Frequency(kHz)
62
0.0 !l.JV\, 'A
0 2 4
Frequency (kHz)
Trangd6,X(n) last!ke'thQptuye'ntinhcilap ghitritruck.Theod6bQdt!
baaP lamQtbQlQcvoidapling:
p
Fez)=I akz-k
k=l
Tin hi~utie'ngn6iX(n) c6duQckhi choden)quamQtbQlQcc6d(~mg:
1
- 1 = P -k
H(z) -1- Fez) 1- Iakz
k=!
Trangd6bQlQcdao I-P(z) chora den)voi ph6loi d~tc616iluQngh6a
nhonha"t.Do d6P (z)duQcchQnsaGchoH(z)~ X(z).Cach~sf)akduQc
chQntf)i u'usaGcho t~ora H(z) g'anvOiph6tie'ngn6i p h~sf)nha"t.Chi
tie'tcila ph'annay se duQctrlnhbay ky d ph'an"Phuongphapmah6adt!
baatuye'ntinh."
2.1.1.5.Ham cll'a86
Cuas61amQthamxung:
W(jco) =a(j0))
Hamnaychota: H (j0))=Hct(jO))
Trangd6 ph6hlnhdangcilaxungtuythuQcVaGdaycaccli'as6 c6
chi'eudaixacdinh.SaildaychungtalamquellmQtsf)caccli'as6c6ph6
lahamxung.
Saildaylacaccli'as6thuongdung:
63
I. RoctangulJr
IV. = I: In! S N
= 0: N1Jck. t...;
1, BanlotC
Inl
IV.= I - -: /nI s NtV
=0: ~~u'ocI~..i
J. Hann,"~
IV.= 05(10'" CDS(~")): H s.v
=0:
~11U~'-t~
.1. H"mm,"~
(
"""
)"'.=1J5-1-'-O..1oCt,,,--;: il/ISS
=0:
5. Blackman
(
rrn
)"'. = 0.-11-'-0.5CDS N
=0:
!\1'jH'~L(9-;
(
2rrn
).;-0.08 CDSN: Inl s .v
1--1~'.l'3<.I"!-J'
6 Kaisor
. /.,t{3\i1- "'IN)'): ",Is.v"'.= /,,1131
= 0:
N~'Jdc.!':'J
64
l1l',
-N 0 N
-"I 0 N
/1\,
-N 0 N
O
-N 0 N
1I 'N.
"
-"I 0 N
o
-N 0 N
2.1.1.6.Nendii'li~uamthanh.
Dli li~uamthanhla sl;r'mahoacacbiendQcuasongamrheathaigian.
Chonendli li~unayr:itIonvachitmnftnhi~utUtrongbQnho.Vi dV:1
tutrungblnhkhoang3-4Kb. Bi~unaygaytrang~iv~m~thaigianva
hill trlichocacbQxU'19titngnoi.VI v~y,dli li~utniockhi It(uho~cxU'19
thuangduQcnenl~id€ to'iUtihoathaigian.
1.Nenkhongma'tdii'lieu:
BO'ivoi dli li~uamthanhcoth€ xemnhub:itky lo~idli li~unao.Co
th€ dungcacphuongphapnenc6di€n nhuLZQ, HUFFMAW...Nhung
kh6ngduQcapdvngrQngraivaotrongcach~xU'19VIthaigiannenqua
lauvakh6ngth€ xU'dvngd€ nendQng.
2.Nenma'tdii'lieu:
Sail dayla mQtsO'phuongphapnenco lammatdli li~unhungv~n
kh6ngthayd6ititngnoikhiphatl~i.CacphuongphapnaytorahU'uhi~u
dO'ivoi cach~xU'19titngnoiVI thaigiannenvabungr:itnhanh,thich
hQpchoquatrlnhnendQng....
a.Nenzero:
PhuongphapnaycoduQcdod~ctinht~ptindli li~uamthanh.Truoc
khi tab:ltd'aunoivangaysailkhi ch:imdillmQttu,comQtkhoangl~ng
r:itnhogiliahaiquatrlnhnay.Cackhoangl~ngnayclingQuQcIUtinhu
amthanhl~ng.
Cackhoangl~ngnaykh6ngh~anhhuanggldtn chatluQngamthanh
dodocoth€ bodikhilUtitrliho~cxU'19.
fS(n)
N(s) ~ t
s(n)>I;
S(n)<1;,S(n-1) <1;, 05(0)<I;
S(n)<1;,S(n+)<1;, o5(max)<I;
hay
65
Hieuqua:
Hi~uquaDenduQCtuythuQcvaoca'utrucdfi'li~u.Nghlala khoang
l~ngnaydaihayngiln.Ti l~c6th6thayd6itup%d€n 0%,trangd6p la
1s6duong(p>O).
b.Phztdngphap nenlztdngbien
Phuongphapnayd1/avaod~cdi6mluQngh6acuabiendQkhimah6a
tinhi~ud6Dendfi'li~u.Trenth1/ct€ biendQamthanhra'tlOn,giasatu0
d€n +1OOOmv.Trangkhi d6d6In'lltrfi'dfi'li~unay t~im6ithaidi6mta
chic6 1byte,la'ygiatri t6ida-127d€n +128.V~ylamsaoghil~idu'Qc
giatfi tu0 d€n +1000mv?NguaitaluQngh6a,gi6ngnhuthunhobiendQ
l~irheamQtti l~tuongling.Vi d\lnhuchia dQcao1000mvthanh128
do~n.M6i do~nchigifi'l~i1giatfi d~ctIlingtuonglingvoi gia tfi cua
byte.
'i
LQi d\lngytudngtIeDtac6th6luQngh6adfi'li~ul~icon7 bit,6 bit...3
bit th~mchi 2 bitho~c1bit thayVI 8bit(lbyte).Tu th1/cnghi~mchotha'y
3 bit la mlict6i thi6ud6luQngh6a.Tuy nhienamthanhc6 it nhi~ubi anh
huangd€n cha'tluQngkhi ph<itra loa.
c.Phztdngphapnenlztdngtiln:
Tuongt1/nhuphuongphapluQngbien,nhungd6ivoi fans6.Khi rai
r~ch6atinhi~u,nguaitachigifi'l~imQts6cacgiatrirai r~ccuabiendQ.
S6cacgiatrinaytIeD1giayduQCgQilafans61a'ym§:uFs.
'8
,I
Ta c6 th6apd\lngla'ym§:uthemmQtfannfi'avoi din s6 nhohall.
Nghlala bobotdimQtchukynha'tdinh.Giasatac6mQtdaytinhi~urai
r~cvoi t'ans61a'ym§:ula Fs=16kHz,taDendfi'li~ub~ngcachbodi mQt
giatritrangmQtc~p2giatriraiqc lient\lc.
Nhuv~ykichthuocdfi'li~uchicon50%.Va di~unaytuongduongvoi
vi~cta la'ym§:udfi'li~uvoi t'ans61a'ym§:ula Fs/2=8kHz.Nhu v~ytuy
rheas6luQngcacgiatfi bodi va cacgiatri gifi'l~i,matac6duQcti l~
Den.Phuongphapnaykh6ngduQcdungvoit'ans61a'ym§:uquanhoVIse
lammeaamthanhkhiphatl~i.
66
NhuV?yvoicacphuongphapnenthongthuangthlh~khongsli'dl,mg
duQcVIdoih6ithaigianth1,1'c.Chicophuongphapnenzerothlb~tbuQc
phaidungd~luQtb6ph'anduli~uduthua.PhuongphapluQngbienva
luQngt'anthlsli'dl,lngtrongmQtgiOih~nchophep,tUGla v§:nbaadam
chc1tluQngamthanhsailkhi nell,VI nhuV?ymoi condu thongtin d~
nh?nd~ng.HaiphuongphapluQngbiencolQila lamgiamdu'Qcthaigian
tinhtoanVIs6li~udanh6di!
2.1.2.Caed~ihi(jngdijetru'ngeuaamthanh
Chuangnaychuye'unghienCUul~icacdi[ictIlingv'ebanchc1tV?tly cua
amthanhduQct~oravaIantruy'enhuthe'naotrongkhonggian.Ph'anhaila
cacdi[ictIlingv'etinhi~ucuaamthanhkhithuvahilltruduQcbtLngcacthie't
biv?tly.
2.1.2.1.Cae d~iIu'(jngv~itIy
Khi kichthichdaodQngamthanhtrongmoitruangth~khi se hlnh
thanhnhunglOpkhibinenvanhunglOpkhibigianl'anluQtIantruy'entu
ngu6namthanhduoid~ngsongdc(songamthanh).Di'eudoconghlala
s1,1'dichchuy~ndaodQngcuacacph'antli'm6itruangdi~nratheophuong
truy'ensongamthanhduQcgilatiaamthanh.
KhonggiantrongdosongamIantruy'engila truangamthanh.
T6e dQtruy'ensongamthanh,git~tla t6cdQamthanh,ph1,lthuQc
vaolo~imoitruangvatr~ngthaiV?tly cuamoitruangdo.
T'ans6daodQngmatainguaicamthl,lduQcgila t'ans6amthanh.
Cact'ans6dontLmtrongkhoangph~mvi tu16de'n20000Hz.Nhungdao
dQngxuc1thi~ntrongmoitruangcot'ans6thc1pbon16Hz gila h~am.
CaedaodQngcot'ans6caobon20000Hz gilasieuam.
QuatrlnhdaodQngtrongph~mvi t'ans6amthanhduQcdi[ictIlingbdi
s1,1'nenvagiando~n hi~tgiuanhunglOpkh6ngkhibinenvabi gian.
67
iN€u ngu6namthanhbucx~ciaodQngdi~uhoa,thl sail thaigian
ngu6nbucx~thlfchi~nmQtciaodQngd'aydu(mQtchuky)quatrlnham
thanhsetruy~nIandu'QcmQtquangdu'angb~ngbu'ocs6ng.
v~bancha'tv~tIy, khi truy~ns6ngamthanh,chuy~ndQngciaodQng
cuacamoitru'angIamQtchuy~ndQngcdhQc.TrongcaclOpbinenvabi
gian Kenke cuamoitru'angdienraslfbi€n thienapsua't(tinh)cuamoi
tru'ang.5lfchenhI~chgiuaapsua'tInhvaapsua't~imQthaidi~mchQn
tru'ocuatru'angamthanhgQiIaapsua'tamthanh.
Ngaycakhi phatamIOnnha'tcacngu6namthanhthlfct€ (nhud~m
nh~c,nguain6i)clingchit~oramQtapsua'tamthanhnh6honhangchl,lc
nganfansovoiapsua'tkhiquy~n.
Ap sua'tamthanhbi€n thientheothaigian,hdnnuaI~iphl,lthuQctQa
dQ(x,y,z)cua di~mkhaosattrongtru'angamthanh.
Khi truy~ns6ngamthanh,chuy~ndQngciaodQngcuacacph'antli'moi
tru'angclingdu'Qcd~ctIlingbaislfdichchuy~nciaodQngkh6ivi tri tinh.
5lfdichchuy€nnaydienravoit6cdQxacdinh,gQiIat6cdQciaodQng.
Ngaycakhi phatamIOnnha't,cacngu6namthanhthlfct€ clingchi
gayramQtt6cdQciaodQngnh6hon t6cdQamthanhvainganI'an.T6c
dQciaodQngbi€n thientheothaigian,hdnfilla,phl,lthuQcvaotQadQ
di~mkhaosattrongtru'angamthanh.
Congsua'tamthanhP Ia nangIuQngmas6ngamdichchuy~ntrong
mN donvi thaigiantheophuongIantruy~ncuanothongquadi~ntich
m~tsong(m~ts6ngIam~tciaodQngcuaamthanhlamxua'thi~ns6ngam
thanhtrongmoitru'angKungquanh)..
CuangdQamthanhIa thong Iu'QngcuanangluQngamthanhchay
trongmQtddnvi thaigianquamQtdonvi di~ntichm~tth~ng 6cvoi
phu'ongtruy~ns6ngamthanh.CuangdQamthanhla mQtd~ihtQng
vector.N6i cachkhac,cu'angdQamthanhchinhIa congsua'tamthanh
traiquamQtdonvi di~ntichm~ts6ng.
68
TruonghQpphuongtruy'ens6ngamthanhkh6xacdint ho;1ickhong
th~xac dint n6i, nguoita dungmQtd;1ictIlingnangluQngkhacclla
truong.B6la m~tdQnangluQngamthanh,tucnangluQngamthanhchua
trangmQtnangluQngth~richcuatruong.
NangluQngamthanhla nangluQngco hQchQpthanhtudQngnang
chuy~ndQngcuacacph'anttrmoitruongvathSnangnen.
2.1.2.2.Caethams6theothaigian
Cac thams6nayc6 di~mthu~nlQi la ra't dongian,It t6nkerncac
pheptint roand~c6duQCva clingra'tc6ichchovi~cmah6ava nh~n
d<;ingtInhi~u:nhunangluQng,biendQ,t'ans6cobanFO...nanglu'Qng
thuongduQcdungd~phando<;introngquatrlnhnh~nd<;ing.
2.1.2.2.1.Phantiehtinhi~utheothOigian
Phanrichtinhi~urheathaigiannghiala ehuy~nchungthanhcae
thams6ft thayd6ihonsovoitInhi~uti€ng n6iband'au.Cacthams6
naythuduQcrheahambiend6isan:
Trangd6 Sell)la tInhi~uti€ng n6i.T la hambi€n d6iphi tuy€n,
wen)laham
r:JJ
(In) =I1iS(m)].W(n-m)
fYP-r:JJ
trQngs6ctras6,Q (n)lahamtrailcuaT(s(n)).
2.1.2.2.2.Tans6cdbaneuatiC'ngnoi:
Trangsu6tquatrlnht<;iOthanh,caedaythanhamduQclamchorung
dQng.T'ans6cobannayduQedungdephanbi~tcaegiQngn6i.T'ans6
eobanthuongchotaeacthongtinv'engudi~unhula amsa:eva am
di~u(Stressandintonation).Sl1tanghaygiamtrenduongbien t'ans6
cobanduQcdungdedanhda'ueaerangbuQccuphapehinh.
69
2.1.2.2.3.Nang lu'qngtrung binh:
MQttrangnhungd~ctinhquailtrQngnh5tcuatinhi~uti€ng noi la
cuangdQthayd6inhula mQthamcuathaigian.Sv thayd6inghiem
ng~tgiuacacvungfans6khacnhauchotaphanbi~tdu<jcacamcua
ti€ng noi.
Cacd~ctrungv~Danglu<jngthuangthudlt<jCtubQIQcs6haytuong
tvcllasongamho~ctuph6thaigian.
Q(n)la Danglu<jngho~cbiendQtrungblnhn€u T la pheptoaDblnh
phuongcvcd?i.Nanglu<jngthuangdungd6donhungnoicomQtbien
dQIOn.Con biendQtrvcti€p du<jcdungkhi mu6ntranhnhungtinh
toaDvoi s6IOnco th6d~nd€n trails6thvc.Nhungthams6v~Dang
lu<jngnaycoth6giupthemthongtintrangquatrlnhphando?nmQtin
hi~uti€ng noithanhnhungdonvi nguam(nhucachint vi va amvD.
Nanglu<jngQ(n)thayd6idangk6giuaamhUllthanhvaamvothanh.
Trangnh~nd?ngtutachbi~tQ(n)coth6giupxacdinhdi6mb~td'au
vadi6mdungcuamQtu.
2.1.2.2.4.M~tdQdiim zero:
I-IU\.JT~AN H
0 2 4 6 a 10
v; "':~:'NH
0 2 4 6 6 10
70
Nhungphuongphapd'autieDtrongvi~cnh~nd<:lngtie'ngnoi chu
ye'udt!aVaGm~tdQdiSmzero.NghialadiSmcacgiatribang0cuatin
hi~utie'ngnoid d'auVaGdStie'nhanhphando<:ln.Phuongphapnayco
u'udiSmlamQthu~troandongianvad~caid?t.M?c dlichuacobang
chungnaGchothiy com6iquailh~r6ranggiuam~tdQdiSmzerova
st!tuongquailgiuanguamvaphatamtrongIanthanhtie'ngnoi.Tuy
nhiencaccO'gangg'andayclingtoranhi~uhuah~ntrongm6ituong
quailgiualy thuye'tnguamvam~tdQzeronay.
Thongthuangmu6nco duQcph6tinhi~u,chungtaphaitht!chi~n
cacphepbie'nd6iphuct<:lPv~t'ansO'nhuFFT ho?cLPc. Trongkhido
chungtacomQtlo<:ltph6dongiandola m~tdQdiSmzero.Nghiala sO'
l'anmatinhi~udiquatrl;lchoanh(biendQzero)rheatungchuky thai
gian.Tuph6zeronaychungtacothStinhduQct'ansO'FO=Z/2,trong
do Z la m~tdQzerotIeDm6igiay.D6i voi tinhi~urai r<:lc,m~tdQ
diSmzerotliythuQcVaGt'ans6la'ym§:uFm,Dentaco:FO =(Z * Fm)
/2,trongdoFmlat'ans6liy m§:u.
M~tdQdiSmzerocothSduQcdinhnghiamQtcachroanhQcnhusau:
T[s(n)]=0.5Isign(s(n)- sign(s(n-l)!
trongdo:
Sign(S(n)=
{
I nC'uS(n)~0
- 1 nguQc1qi
Va w (n)la mQtcii'as6hlnhchITnh~ti lt$IIN (N la chi~udaicua
s6).Tu do tatinhduQcQ(n)la m~tdQzerorheacacm§:uhayFm/N
rheatunggiay.M~tdQzerocothSgiuptaxacdinhduQcmQtamva
thanhhayhU'uthanh.M~tdQzerocaola amva thanh,nguQcl<:lim~t
dQzerothip la amhU'uthanh.Tuy nhienm~tdQzerorit d~bi anh
huangbditie'ng6ncuamoitruangvathie'tbichuySnd6iAID
71
2.1.2.2.5.Ham tu'dngquaD:
Tin hi~uco du'<;ctli'phepbie'nd6i ngu'<;cFourierrheaph6nang
lu'<;nggQila hamtu'ongquailcilatinhi~uband'au.Hamtu'ongquail
clingca'pchochungta thongtin v'ecacvlingdi'euhoa,cacbiendQ
formantva cacdinhchuky,xacdinhamvo thanh,hUllthanh,va dlf
baatuye'ntinh.
Hamtu'ongquailla mQttru'angh<;pd~cbi~tcilahamtu'ongquailcheo:
cD(k)la hamtu'ongquailgiuahaitInhi~us(n)va y (n)rheathaigian
00
<D(k)=Ls(m)y(m - k)
m=-oo
tn~giua
chungdu'<;ctinhb~ngcachla'yt6ngcactichs6cilahaitinhi~us(n)va
tInhi~uy(n)du'<;clamtn~.Hamtu'ongquailcheonaychoke'tquara't
IOnne'uhaitInhi<$uco clingd(;lngsong.VI v~ythu'angdu'<;cgioih(;ln
b&ihamcuas6vachiachos6m§u.
Khi s(n)va y(n) la mQttInhi<$uduynha'thl cD(k)tr&thanhham
tu'ongquailthu'ang.cD(k)la mQthamch~n(cD(k)=cD(-k) ) va la'ygia tfi
clfcd(;lit(;lik=O.cD(O)tu'ongdu'ongvoinanglu'<;ngcilatinhi<$uco chu
kyP, thlcD(k)clingcochukyP.DaylamQtrongnhungu'udi€m thu~n
l<;itrongxuly tinhi~u.
Ham tu'ongquailcila tinhi<$us(m)quacua86w(m)du'<;cvie'tnhu'sail:
00
Rn (k)=Ls(m)s(n- m)s(m- k).Yi{n- m+k)
m=-oo
trongdo tichs(n)voi tIn hi<$udu'<;ctr6s(n-k)tu'ongdu'ongvoi choqua
mQtbQlQcw(n)w(n+k),k du'<;cchQntliy rhealingdt:mg.
72
2.1.2.3.Cacthallis6theofans6
H'auhe'tcacthams6dungtrongxU'ly tie'ngn6ila cacthams6rheat'an
s6.BQph~nt9-0amt9-0racactinhi~uchuye'ula slfcQnghuangrheat'an
s6.DlfaVaGph6t'ans6,nguaitalQcraduQccacye'ut6chinhxachoncac
thams6rheathaigian.Va honnua,coche'nghecuataingu'aic6venhu
laphuongphaplQccacthams6rheat'ans6.
2.1.2.3.1.B() l()cdiUfan:
LQcdiEt'anla mQttrongnhungphuongphapphantichph6nhanh
ch6ng,dongian,ph6bie'nvad~caid~tnha't.N6phantichcacdffit'an
s6khacnhaucuatinhi~utie'ngn6iband'au.MQts6cach~nh~nd9-ng
Sl(dvnghaimUGphantichph6:mUGthosoband'aubdivaibQlQcso
bQ.Sail d6 la cacbuckphanphantichchi tie'tsU'dvngnhi'eubQlQc
hall.
BQlQct'an56:
hr(n)WI(n)
n"'i~~
~
Xr(n)
S(n)
~
Xq(n)
2.1.2.3.2.Ph6fans6
MQtky thu~tc6di~nnhungchinhxacnha'trongvi~cphantichph6
la chu6iFourier.Phuongphapnaybie'nd6ibiendQvaphasecuatin
hi~uthanhmQthamcact'an56rheathaigian.
Hambie'nd6iFouriercuatinhi~uSell)duQcdinhnghlanhusail:
00
Sn (eiW)=Ls(m)e-icW1w(n- m)
m=-oo
73
Ne'uc6dinhcothlbieuthucteenchinhla tinhi<%uQ(n),trongdoT la
phepnhancacs6phucvdieO>(cola t'ans6)
Tren thl!cte',cacdaodQngamthanhdi~uboartt it khi xayfa.
Thu'angthltie'ngnoidu'Qct~orathanhtumQt6hQpcacdaodQngvdi
cacmuct'ans6vabiendQkhacnhau.Cacsongamnayrtt phuct~pva
tuythuQcnhi~uvaotlnhtr~nghiephatam.Khacbi<%tv~ngu'oinoi,
tamsinh19hicnoi,moitru'angapStitthicphatamvacakhoangcach
tumi<%ngde'nmicrothuam.Cacye'ut6nayanhhu'angnhi~ude'nsong
amlamchonotranenphuct~pvabie'nd6ilienWc.
De cocacd~ctru'ngv~t'ans6vanangIu'Qngcuasongam,ngu'aita
dungrnQtcongC1J.quellthuQctrongxli'19tinhi<%u:chu6ifourier.Chu6i
fourierla mQtkhaitrientoanhQcgiupphantichmQtt'ans6phuct~p
thanht6ngcuanhi~ut'ans6tu'anhoandongian,haymQtsl!t~ptrung
nangIu'Qngthanhnhi~umucnangIu'Qngkhacnhaudu'QcgQiIaph6.
Phu'ongphapnayIty ph6naycou'udiemlatrichdu'Qcacd~ctru'ng
tu'ongd6i chinhxac v~m~tnguamhQcva giupta phanbi<%tdu'Qc
nhi~ulo~iamthanhkhacnhau.Tuynhien,nhu'QcdiemIOncuaphu'ong
phapnayla t6nkernthaigiandophaithihanhmQtlo~tcacpheptoan
phuct~pchom6il'anIty ph6.Tru'dcday,phu'ongphapnaychidu'Qc
thl!chi<%nteencaclo~imaytinhIOn.Nhu'ngngaynay,vdisl!phattrien
nhanhchongcuaph'ancling,caclo~imayPC clinghilahynnhi~ukha
nangthl!cthiteenchung.
2.1.2.3.3.Tan86cdbanFO (dQcaociiagiQngn6i)
T'ans6cobanFa haygiQngnoi Ia mQttrongnhungthams6quail
trQngcuacach<%nh~nd~ngtie'ngnoi.Th~tragiQngnoila ye'ut6cua
camxucngu'aikhinoi.Nhu'ngngu'aitathu'angd'ongnhttt'ans6Fa vdi
"giQng"noi.Cacamhuuthanhdu'Qct~oratusl!daodQngcuacacday
amthanh.CacdaodQngnay t~ora t'ans6co banFa va thu'angthe
hi<%nb~ngcacchuky teentinhi<%usongam.Daylaye'ut6amhQcchu
ye'udet~onenngudi<%utrongWinoivaclinglaye'ut6quy€tdinhcae
74
amvi trongm6ing6nngfi'.Fa clinglay€u to'chiiy€u t~onenngfi'di~u
trongcach~t6nghQpti€ng n6imQtcacht1,1'nhien.
Vi~cxacdinht'ansO'Fa tudngd6idongian.Dli c6 ra'tnhi~uthu~t
toanduQcc6ngb6vachok€t quag'annhu100%.C6thSxacdinhtn,ic
ti€p trentinhi~uti€ng n6imakh6ngc'anphaiquamQtbuocchuySn
d6iphuct~pnao.Fa c6thSduQcxacdinhtucacchukytheothaigian
ho<lictucachamdi~uhoatheot'ansO'.
2.1.2.4.D~ctinhamhC)cvatinhi~uamthanh:
2.1.2.4.1.Nguyenam:
Ba sO'cac h~nh~nd~ngchii y€u d1!avao vi~cnh~nd~ngcac
nguyenam,VI nguyenamla ph'ancd banto IOnnha'tcuamQttu.
NguyenamduQcchiathanh3 nh6mchinhg6m:nguyenamtruocII/,
lei, lei; nguyenamgifi'ala/,II'J,101vanguyenamsaillvi, lu/,101.
Nguyenamtru'ocla s1!cQnghuangcuat'ansO'caD,nguyenamgifi'a
c6mQtnangluQngcand6itrenmQtda:it'anrQng.Trongkhid6nguyen
amsailc6u'udiSmv~cact'ans6tha'p.Tuynhien,c6mQts1!thayd6i
ra'tIon gifi'acact'ansO'cdbanclingmN nguyenamdonhi~unguai
phatamd6ikhich6ngla'pl§:nnhauvadi~unaygayranhfi'ngtrdng~i
ra'tIOntrongva'nd~nh~nd~ng.
75
J.L
f"1
t A ~ I J. I aI, \,I\I\)!:I,',r,/Lt,/\.,',n,:,
1"'
VY
"\I\""'I' y "\ y'""",,,'f . , . Y" y , . '( y,,'
a
-11,LL'\II._L~...!., L.I.'-
III'" pV", 1fT" J/Yv' I)ltl
J
t' I I , , ,- \ ~ II.J.../'- /I /, . '" 'I...L.::,Ji " ", /.
'y--v~ -,:""",\,-:-:-:,,\:,,7'"',""\'°
\ f f ' I I li~f\ I. A I,A,./\.!\,/I.r.,/i"o,
VV I/VV \'V'/ \'yv t'VV l'\"o
u
, /'IA " !\A f, fI f\ i, roil II " 1\i,A(
~'VVVVVVVVVV(iViJ\j\'IJ
76
2.1.2.4.2.Nguyenamdoi:
Trongnguyenamdoi,biendQthuanggiamd'antrongkhoangtruQt
giuahainguyenamvatangm~nhd6ivdinguyenamthuhai.
2.1.2.4.3.Ph\lammfi.i:
D~ngsongamcuapht,lammliithuanggi6ngvdinguyenam.Nhung
ye'uhonnit nhi'eu.Cact'ans6cobanformanthuangxua'thit$ncach
nhau85Hzthayvila 1KHzt'ans6Fl khoang250Hzla trQinha't.F2ra't
ye'uvaF3khoang2200HzcodinhcaD.Ph6zerokhoang750-1250Hz
d6ivdiIm/,1450-2200Hzd6ivdiInlvatren3KHzd6ivdiIyl
2.1.2.4.4.Amxat:
D6i vdiamxatvo thanh,thuangconangluQngt6ithi~ucuat'an56
tha'p,khoang2,5KHzAm xathU'uthanhthuangco nangluQngcua
tie'ng6n t~inhungdi~mcot'ans6caDnhuIsl,11'va doikhi co nang
1uQngcochukyye'ut~inhungt'ans6cobanFormant.
2.1.2.4.5.Am dung:
CacamdungthuangconangluQngcochukynhot~icacdi~mt'an
s6tha'pVaGkhoang200msngaysaukhi he'tdung.Dinh cuaIt! VaG
khoang3.9KHz,Id/ khoang365Hztha'phon It/, /k/ 2.7Khz truck
nguyenamtrudcvalIen3KHztrudcmQtnguyenamsau.
2.1.3.Phu"dngphapmil hoa dQ.'baGtuye'ntinh
Chode'nnayphuongphapmahoadlfbaatuye'ntinh(LPC) v~nchungto
lamQtrongnhungphuongphapt6tnha'trongvit$cmahoavaphantichtinh
hit$uamthanh.No clingca'pchochungtamQtcachbi~udi~ncacthams6
tinhduQctutinhit$uamthanhchinhxacvahit$uquanha't.Ap dvngphuong
phapLPC chungtacoth~giamnhi'euduQcthaigianmahoatinhit$u,tang
dQchinh xacva giamduQcdangk~thaigiantinhloantrongnh~nd~ng
tie'ngnoi,ngoaifa,concoth~dungd~t6ngh<;5ptie'ngnoi.
77
Trongthaigiang'anday,LPC condu'Qcxemnhu'1amQtky thu~tph6bie'n
trongmahoatinhi~utie-fignoihill tnldu'oidt;tngbittho(low-bit-rate)vala
mQtcongCl,lra'tquailtrQngtrongt6nghQptie-fignoi[4].TuLPC chungtaco
th€ thudu'Qcacd~ctru'ngamthanhnhu':t'ans6cobanFa, cacda'uhi~ucua
nguyenamtt;tOra tudu'angd~nam,cact'ans6va cacgiait'ancuaph6tin
hi~uvacacFormats.Nhu'ngd~cbi~tathudu'QctuphuongphapLPC lamQt
t~phQpra'tit cacthams6nhu'ngchuad1,1'ngcacthongtinv'eca'uhlnhcua
ph'antt;tOnguyenam.
2.1.3.1.Caekhaini~medban
LPC 1.1mQtphuongphapphantich-t6nghQptinhi~utie-fignoi.GiaSlt
n6ugQiV (z)lamQtngu6nkichhot;ttchotinhi~uvaoph6lQcH (z),taco
tinhi~uamthanhduQctt;tOralaqz)
H(z).V(zO=~(z)
H (z)vaV (z) Ia haihamdu'QchQntru'ocrheamQts6di'euki~nrang
buQcnha'tdinh,saccho~(z)g'angi6ngnha'trheamQttieuchu§:n aodo
voi amthanhg6cS(z).MQtcachdongianV(z) duQcchQnco ph6d~t
roanph'ansacchonogiOiht;tndu'Qcackichhot;ttcuaamvo thanhtIling
voi nhi~utriing(Whitenoise).E>6ivoi amhii'uthanh,ngu6nkichhot;tt
naydu'Qcxemnhu'mQtdaylientl;1cacm~ud6ngnha't,cochukyN m~u
(chuky dinh),comQtdu'angph6voicacdaodQngd6ngdt;tng.E>i'eunay
tuongt1,1'nhulu6ngkhongkhidu'Qcth6iratudaythanham,la ngu6nkich
hot;ttchoduangd~namtt;tOamd6ivoi tru'anghQpamhUllthanh,duQc
xemnhungu6nphatraclingbQlQcnhanhmantrongkhing6vaocuano
1.1mQtdaychukycacm~u.
S1,1'tacdQngcacthanhmanlen ph6va 6ngtt;tOamdu'Qcmophong
b~ngbQ1QcH(z).
Mo hlnhLPC
Tu tinhi~utie-fignoiSell),mu6nthudu'Qcph6H(z),hi~ntinhi~uvao
Sell)tru'octiendu'QCchiathanhnhungphandol,inch6ngHipnhaug6mN
m~u. Y tu'dngcobancuaphu'ongphapLPC la voi mQtm~utinhi~utie-fig
78
n6it~ithaigiann,Sell),duQcxemg'andungnhula mQt6hQptuyentinh
cuaP m~utinhi~utrudcd6.
Sell) =als(n=l+a2s(n-2)+...+aps(n-p)
Trongd6cach~s6at.a2,...,an,la cach~ngs6trennhungphando~n
tinhi~u '-
Ta chuy€nbi€u thucg'andungtrenthanhh~ngthucb~ngcachthem
VaGh~s6kichho~t,G(u(n»tac6:
p
S(n) =L ais(n - i) +G(u(n))
i=l
trongd6D(n)la ngu5nkichho~tchuy€nh6avaG laVectorIQithe.Viet
l~ibi€u thuctrenrheaz taduQc:
p
S(z) =Laiz-i s(z)+G(u(z))
i=l
tud6tac6hamchuy€nd6i:
1 -~
- S(z) = P -j - A(z)
H(z) - G(u(z» 1- I ajZ
i=1
Bi€u thucduQcmatab~ngsdd5sau:
u(n) Sell)
A(z)
G Me HThrHDtj DoANTUftN TINHCUA lltNG NOI
79
Tranghinhve D(n)la ngu5nklchha~t,duQctangcuangbdi thamsf)
IQithe'G. CahaiduQcxemnhulangovaacuah~H(z)=l/A(z)d~chara
tinhi~utie'ngn6iSell)
2.1.3.2.Cd sdtmlll hQCcuaLPC
Dl,1'arheahinhve 1,thimf)ilienht%chinhxacgiii'aSell)vaD(u) la:
p
S(n) =Iaks(n - k)=G(u(n))
k=1
Xem~(n)la t6hQptuye'ntinhcuacacm§:utinhi~utruacd6,tac6
p
,en)=Iaks(n - k)+G(u(n))
k=1
GQiE(n) la 16idl,1'baa,tac6
p
E(n)=s(n)-'(n)=s(n)-IakS(n-k)
k=1
Vai hamchuyen16i:
A( ) - E(z)_ 1- ~ -kz - - ~akz
S(z) k=1
Tu d6tatha"yr5rangSell)duQcsinhratUh~tuye'ntinhcuahinhtIling
d6E(n)la 16idl,1'baa,b~ngvaiG(u(n)),ngu5ntangcuang.
Va"nd'ecobancuaphuongphapphanrichdl,1'baatuye'ntinhla lamsaD
xacdinhduQCt~phQpcach~sf)dl,1'baa,{an},tutinhi~utie'ngn6i.Vi cac
d~tIlingph6cuatinhi~uthayd6irheathaigian,dad6cacht%sf)dl,1'baa
t~ithaidi~mn chatruacphaiduQctinhroantumQtphanda~ncactin
hi~utie'ngn6iIanc~nn.Vi v~y,cachuangtie'pc~nchinhla lamsaDtim
duQCmQt~phQpcacht%sf)dl,1'baavai16idl,1'baanhonha"ttrenmQtphan
80
do<,inngiincuatinhi~usongam.Thuangthl chi-eudai phando<,innay
(tinhtheomsec)dU<;1cgQila ca'pcuaphuongphapd1,1'baatuye'ntinh.De
thie'tl:;ipcacphuongtrlnhxacdinhcach~s6d~(baa,tadinhnghlacac
phando<,in16ivatinhi~utqithaidiemnnhusail:
\
Sn(m)=S(n+m)
En(m)=E(n+m)
Co 16ic1,1'ctieucuatinhi~ut<,iithaidiemn Ia:
En=Ien2(m) .
m
Trangdo,vie'tl<,iiEn(m)taco:
En =~[Sn(m)- takSn(m-k)J
De giaiphuongtrlnhtren,tala'yd<,iohamEntheocach~s6d1,1'baaak
vachod<,iohamb~ng0,
5En =0,k =1,2,..p
5ak
tadu<;1c:
p
Lln(m-i)sn(m)La Lln(m-i)sn(m-k)
m k~ k
trangdod~t:
rPn(i,k)=LSn (m- i)sn(m- k)
m
tadu<;1cd<,ingthugQnnhusau:
81
prpn(i,O) =L Ctkrpn(i - k)
k=l .
lamQth~phuongtrinhvoi p §:ns6,trongd6 c1;1'ctigu16id1;1'baaEn,duQc
tinhnhusau:
p P
Ell =LsIl2(m)-LakLslI(m)sll(m-k)=q}II(O,O)- Lakq}II(O,k)
II k=1 II k=1
Mu6ngiaiduQcphuongtrlnhtrendgtinhcach~sO'd1;1'baat6iu'u(akS)
taphaitinhn(I,k),1<=i<=p,vaO<=k<=p.Saud6giait~phQppphuong
trlnhtuongli'ng.Trongth1;1'ct€ phuongphapdggiaicacphuongtrlnhtren
(clingnhudgtinhs)lamQthamtrongs6cuami'enm.BaygiG,chung
tasexemhaiphuongphapchinhduQcdungdgdinhnghiami'enmcuatin
hi~uti€ng n6i.
a/Phuongphaptuo'ngquan:
MQtcachdongiannha"tdgxacdinhduQcgioih~nmla xemcacdigm
ngaaiphanda~nSn(m)b~Iig0,O<=m<=N-l.Di'eunayc6nghiala nhan
tinhi~uti€ng n6iGongthli'cvoimQthamcl'1'as6xacdinhW(m),hamnay
c6giatrib~ng0ngaaikhaang[0,N-l]:
~n(m) {
S(m=n).W(m)
0
O<=m<=m<=N-l
NguQcl~i
tUd6tac6 16itIlingbinhphuongla:
N-l+p
En =L en2(m)
m=O
hIed6 n(i,k)c6thgduQctinhnhusau:
N-l+p
rpn(i,k)= Lsn (m- i)sn(m- k)
m=O
hay:
82
N-l-(i-k)
r/Jn(i, k) = L Sn(m)sn(m +i - k)
m=O
Phuongtrlnhtenla hams6theotheo(i,k),thayVI i va k. Hamd6ng
bie'n,<Dn(i,k),duQerutgQnl~ithanhmQthamtuongquaildongian:
N'-l-(i-k)
r/Jn(i,k)=rn(i,k)= LSn(m)sn(m+i-k)
m=O
Trang d6hamtuongquailla mQthamd6i xung,tuefn(-k) =fn(k).Cae
phuongtrlnhd1,ibaatuye'ntinhduQetinhnhusau:
p
Lrn (Ii - kl)ak =rn(1)
k=1
l~i~p
D"mgmatr~n
r"(0)
r"(1)
r"(1) r"(p -1)
r"(O) r"(p - 2)
0, rJ/(1)
r" (2)00
=
lrJ/(; -1) r"(p - 2) rJ/(0) lop rJ/;p) J
Ma tr~nnaye6tinhehfftToeplitz,e6th6dungthu~ttoanDurbind6giai.
bl Phuong phapd'ongbie'n
MQt eachkhaed6 xae dinhSn(m)la e6 dinhO<=m<=N-1 d6 tinh 16i
tIlingblnhblnhphuong:
N-l
En=Ien2(m)
m=O
83
N€u n(i,k)du'<;jcxacdinhnhusau:
N-i-l I
rpn(i,k)= I>n(m)sn(m+i-k)
m=-j
l~i~p
O~k<p
Hay b~ngeachd6ibi€n, tadu<;jc:
m=-i
l~i~p
O~k<p
N-i-l
rpn(i,k)=Lln(m)Sn(m+i-k)
N€u xem i=p,thl trongphuongtrlnhtren,Sn(m)du<;jcdinh nghlatu
m=-ptoi m=N-l-p, va khi k=O,Sn(m+I-k)dinhnghlatren(0 toi N-l). Do
do mi€n xac dinhd~tinhroand'ayd{'ttu Sn(-P)toi Sn(N-l). Nghla la cae
m~uSn(-P),Sn(-p+l)...,Sn(-I)
B~ngeachdungmi€n mdrQngcuatin hi~ud~xacdinhcaegia tfi
d'ongbi€n <pn(i,k),d(;lngmatr~ncuacaephuongtrlnhrichphandt;1'baa
tuy€ntinhla:
.........................
ell
el2
rP"(1,0)
rP"(2,0)
rPlI(I,l)
rPll(2,1)
rP"(l,2) rP"(1,p)
=
rP"(p,l) rPll(p,2) rPll(p, p) elp rP"(p,O)
Chungtacoth~dungthu~troanCholeskyDecompestd~tinhmatr~n
dO'ixung tren <pn(i,k)=<pn(k,i).
2.1.3.3.Lamrol~itinhi~u(pre-emphasis)
Tin hi~utruockhi du<;jcvaophanrichrheaphuongphapLPC phai
thongquamQtbuocti€n xU'Iy d~lamr6 l(;licaedo(;lntinhi~ucobiendQ
tha'p,caed~tinhnh~nd(;lngcuat'ansO'cao,vat'ansO'cobanFI, nghlala
d'auvaocuabQphanrichLPC la:
84
yen)=Sell) - exS(n-l)
Trongd6exlahflngs6lamratinhit$u,d6ngvaitronhu'mQtbQlQct'an
s6.Ml,lcdichcilavit$clamra tinhit$ula giamthi~ucacmi€n c6sl,l'thay
d6inhi€u (lamtrOllph6tie'ngn6i)bflngcachthemvaocacdi~mzerod~
din bflngnoic6v~chph6ye'udonhungamhUllthanhphatra tu thanh
man.Vit$clamra tinhit$umQtcachg'andungda:bodi cacmi€n ph6ye'u
vat~oracacformatsvoicacbiendQtu'ongtl,l'.
2.1.3.4.Doc 1u'Q'ngph6LPC
Theodinhly Parsevalv€ tinhit$uroi r~c(16itinhit$uE(n» va phep
bie'nd6iFourier,tac6[36][35]:
00
E= Ien2(n)= (Y~7r)
tr
]E( e}OJ)12 dOJ
n=-oo OJ=-tr
Trong d6, E(n) c6 du'Qctu phep phan tich LPC cila tin hit$uSell) :
A(z)=G/H(z),16ith~ngdu'cilatinhit$ula:
G2E= -
2Jr
;r IS(elO1)12f
I
2 dOJ
O1=-;rH (elO1 )1
Cac ht$s6LPC thudu'Qcbflngcachlamq(c ti~uE. E>i€unaytu'ong
du'ongvoivit$clamct!cti~ukhoangcachtrungbinhgiuaph6tie'ngn6iva
ph6cilaLPc.
Ph6cilaLPC IH(dffi)Ibi gioih~nbdidQIOncilaca'pptrongca'pchitie't
cila ph6 ma n6 mo phongtrongIS(dffi)l.Hon QuaIS(dffi)1khongth~
chuy~ntaihoanroanph6cilaamhUllthanhvoi st!bie'ndQngnhanhdo
t'ans6di€u boahaych~mdoca'utruccacthams6dinhd~ng.
85
2.1.3.5.Ciit cll'asf)
Kkh thuocN cuacii'as6vaca'ppphaidu<;cchQnsaGchothaigiantinh
toancuaht%sO'LPCla to'i1hi€u.Trangd6,p du<;cxacdinhb~ngdait'an
cuatie'ngn6ivaconsO'naythuangcO'dinh.Chi c6N la c6th€ thayd6i
d€ tacdQnglendQchinhxacvathaigiantinhtoancuaph6.Do dQmea
cuacii'as6,nencii'as6tuongquailcuaLPC phaichliaitnha'thaidinhcua
haichukys6ngamd€ uoclu<;ngph6chinhxac(thuangdQdaicuacii'as6
naytU20de'n30ms,d€ baadamdng c6it nha'thaichuky,k€ cat'ansO'
FO).
DQ chinhxac cuaph6 tyIt%thu~nvoi dQ Ion cua N. Ne'u chQnN qua
ng<1nthl se g~pkh6 khanVI khongth€ dlf doandu<;ctin hit%utie'ngn6i
hit%nthai VI phuongphapLPC la dlf baatin hit%utie'ngn6i t9-ithai di€m
hit%nt9-itup tinhit%utruocd6.
Phuongphapphan tkh LPC du<;cthlfchit%ntheotungchuky dinh
(nghiala m6ifanN hayN/2 milutrang1khO'i).Di~unaylamgiamslf
uoclu<;ngph6khitrangcungmQtkhungN c6slfb<1td'aucuamQtchuky
moivava'nd~trdnentr'amtrQnghonkhiN nhc>.Sii'dl:mgcii'as6hinhchIT
nh~td€ uoclu<;ng16itinhit%ub~ngphuongphaptheotungchuky dinh
thuanggayra nhITngbie'ndQngba'tthuangkhi uoclu<;ngph6va kich
thuoccii'as6thayd6ituongling.Trongthlfcte',d€ giaiquye'tva'nd~nay,
nguaitadungcaccii'as6 lamtrOlltrongxii'ly tinhit%u(nhuHamming
window)d€ tioclu<;ng16i,bu 19-iphuongphaplamtangthaigiantinh
toancuachuangtrlnh.
2.1.3.6.Ke't lu~n
Ly thuye'tdlfbaamah6atuye'ntinhdu<;cdungtrangxii'ly tie'ngn6ida
nhi~unam.Trangchuangtrlnhnaychi trlnhbayap dl;mgcuaphuong
phapLPC trongnh~nd9-ngtie'ngn6i.SaildayIamQtsO'1ydo thu~ntit%n
maphuongphapLPC trdthanhmQtphuongphapto'tnha't:
LPC la phuongphapto'td€ mo hlnhtinhit%utie'ngn6i.D~cbit%tla ph6
LPC baatrumcavungduangdilnam,dO'ivoi amvo thanhthlLPC khong
c6thu~nl<;i,tuynhienvilndaplingyetic'aunh~nd9-ng.
I
86
Phuongphapphantkh LPC bi€u diSnduQcmQtcachtie'tkit%mva
phanbit%tcacamtuvungduongd§nam.
PhuongphapLPC la mQtphuongphapphantkh tuongd6idongian,
khathid6ivoiph'anclingL§nph'anm~mvachorake'tquakhaquailhon
cacphuongphapkhac.
2.2.>Gidi thi~uv'eki~ntrueeuaSAPI
2.2.1.>SAPI CffpCao
Cac dichvt;1SAPI ca'pcao(high-level)chophepchungta truyxua't
de'ncac chlic nangco ban tronglanh vlfc nh~nd~ngtie'ngnoi(speech
recognition)va text-to-speech.Nhungdichvt;1nayra'tthichhQpchovit%cxay
dlfngcaclingdt;1ngc'antinhnangkichho~tmenuhaycacbuttonsbiingtitrlg
noihaytinhnangchuyindillmQtchu6iwInbanthanhgiQngnoi.
Giao tie'pSAPI ca'pcaoco 2 d6i tuQngchinh- MQtla d6i tu'QngVoice
Commandh6trQcaedichvt;1lienquailde'nnh~nd~ngtie'ngnoi,vahaila d6i
tuQngVoiceTexth6tro.ccacdichvt;1lienquailcte'ntext-to-speech.
2.2.1.1.VoiceCommand
VoiceCommandObject
Voice Menu #1 Voice Menu
Collection Objects
VoiceMenu
Objects
87
,D6i tuQngVoice CommandduQcdungd€ tung capcac dichv1,l
v'enh~nd'.lngti€ng noi. D6i tuQngVoice Commandco mQtd6i tU<;1ng
con la d6i tU<;1ngVoice Menu va mQtd6i tU<;1ngCollectionla mQtt~p
h<;1pcacd6i tU<;1ngmenu")
D6itu<;1ngVoiceCommandh6tr<;13giaoti€p (interfaces):
. Giaoti€p VoiceCommand
. Giaoti€p Attributes
. Giaoti€p Dialogs
Giao ti€p VoiceCommanddU<;1Cdungd€ li~tke, t'.lOva xoa cac
d6i tu<;1ngmenu.Giao ti€p nay con dU<;1cdungd€ dang ky mQtling
dl;mgd€ dungSR (SpeechRegconition)engine.MQt ling d1,lngphai
hoan tat thanhvit%cdangky truockhi SR engineco th€ dU<;1cdung.
Phuongthlic Mimic du<;1cdungd€ phat l'.li mQtvoice commandtho
engine va "noi " cac voice commandsmQtcach tnfc ti€p tho SR
engIne.
Giaoti€p Attributesdu<;1cdungd€ d?tvadQcmQtsO'cactham
s6d6di'eukhi€n mQtht%th6ngvoicecommand.Ta coth€ lamthocac
voicecommandscohaykhongcohi~uhfc,thi€t l~pch€ dQho'.ltdQng
cuaSR vadi'eukhi€n thi€tbinh~p(microphonehaytelephone).
Giaoti€p Dialogstho chungtadungmQtsO'cachQphQitho'.li
chminthovit%ccaid?tvahi€n thithongtincuaSRengine.
DialogBox
AboutBox
Di€n giai
DuQcdungd€ hi6nthi dialogbox chI
dinhSR enginevahi€n thicacthongtin
v'ebanquv'en.
CommnadVerification Du<;1cdungnhuIa mQtWindowpop-up
trongmQtphiennh~nd'.lngti€ng noi.
DU<;1cdungd€ truyxua'tmQtcacht6ng
quatd€n caccaid?tcllaSR enginenhu
speaker,cac thamsO'di'eukhi6nvit%c
nh~nd'.lng.
Dungd€ thavd6i cachvhatam cactu
GeneralDialog
LexiconDialoO"
I
88
vt,lng(vi dl;lnhuSt,lthayd6i amvi), them
\ I havxoacact~ptintuvt,lng.
D6itu<;5ngVoiceMenuchila d6itu<;5ngconcuad6itu<;5ngVoice
Command.No du<;5cdungdechophepcaclingdl:mgdinhnghIa,them
va xoacacvoicecommandstrongQtmenu.Ta clingcothedungd6i
tuQngVoiceMenudekichho~thaykhlikichho~tcacmenusvacung
ca'pmQtrainingdialogboxchomenu.
D6i tuQngCollectionchliamQtt~ph<;5pcacd6i tuQngmenuduQc
dinh nghIatrongCSDL Voice Command.MicrosoftSAPI dinh nghIa
cac chlic nang de chQnva sao chep cac menucollentionsdung bCii
voicecommandspeechengine.
Trongquatrlnhdangky ling dl;lngde dungd6i tu<;5ngvoice
command,mQtSt,lkhaibaacallbackduQcthietl~p.Callbacknh~ncac
thongdi~pmakhongquantamdenho~tdQngcuaSR engine.Cac
thongdi~ptieubieu.duQcgCiirangoaibCiiSRengineg'Omcackhaibaa
maenginediiphathi~nracaccaunoimakhongnh~nd~ngdU<;5c.
2.2.1.2.VoiceText
Dinh nghIadichVl;llienquaildenliinh vt,lCtext-to-speech.Dich
Vl;lnay chi co mQtd6i tu<;5ng- d6ituQngVoiceText.D6i tu<;5ngnayh6
tr<;53 giaotier :
. Giaotitp VoiceText.
. GiaotitpAttributes.
. GiaotierDialogs.
GiaotitpVoiceTextlagiaotierchinhyeutrongliinhvt,lCText-
To-Speech(TTS).Giao titp naycungca'pcacphudngthlicde khCii
dQng(start),t~mdung(pause),titp wc l~iCivi tri t~mdung(resume),
ch~ytoi(forward),quaylui (rewind)vadung(stop)TTS enginetrong
hiedangdQcchu6ivanban.Giaotier VoiceTextclingduQcdungde
dangky lingdl;lngmu6nsITdl;lngcacdichVl;lTTS.MQtlingdl;lngphai
hoanta'thanhcongSt,ldangkytruockhiTTs enginecotheduQcdung.
89
Chilcnangdangky naycoth~gdimQtcontrachi de'nmQtcallback
functiond~biltcacthongdit%p(messages)voicetext.
Giaotie'pAttributeschopheptruyxu{tde'ncaccaid?td~di~u
khi~ncachho~tdQngcuaTIS engine.Vi dl,lnhu'caid?taudiodevice,
d?tto'cdQphatl~i(sO'tutrongmQtphut),b~ttiltcacdichVl,lv~tie'ng
noivachQnche'dQnoicuaTTS.
Giaotie'pDialogschophepngu'oidungcokhanangd~tvadQc
cacthongtinlienquailde'nTTS engine.NQidungva d~ngtrlnhbay
chinhxaccuacacdialogboxkhongdu'ejcxacdinhbdiMicrosoftma
bdinhaphattri~nTTS engine.
2.2.2.>SAPI ca'ptha'p
CacdichVl,lSAPI c{pth{pcungc{pd'ayduhancacdichvl,llienquail
de'nv{nd~nh~nd~ngtie'ngnoivatext-to-speech.Bay la ca'pthichhejpnh{t
chosl,l'caid?tcacdichVl,lcaoc{pv~nh~nd~ngtie'ngnoivatext-to-speech.
90
Dialog Din giai
AboutBox B hin thi dialogboxchi dinh
TIS engineva thongtinv ban
quyn.
LexiconDialog Dungd thaydO'icachphcitam
cactu vl,l'ng(vi dl,lnhu'sl,l'thay
d6iamvD,themhayxoacactp
tintuvl,l'ng.
GeneralDialog Hin thithongtinchungv TTS
engine,vi dl,lnhu'to'cdQdQCva
nhungcai dt khach6 trejcho
TIS.
TranslateDialog Cho ngu'oidungkha nangthay
d6icachphatam.
2.2.2.1.Nh~nd~ngtie'ngnoi(SpeechRecognition-SR)
D6i tU<;1ngSpeechRecognitionco nhi'eud6i tuQngcon va nhi'eu
collections.Co hai d6i tu<;1ngchinhtrongmOth~th6ngSR: D6i tU<;1ng
SR EngineEnumeratorva d6i tu<;1ngSR Sharing.Hai d6i tU<;1ngay
dU<;1Ct<;lOb~ngcachdungnhunggia tfi CLSID-class ID duynha't.Cong
dl,mgcua hai d6i tu<;1ngay la cling ca'pcho chuangtrlnh ling dl,mg
thongtin v'eca~SR enginesvachopheplingdl,mgdangky voi engine
trnchh<;1p.MOt khi engineda:duQcchQn,mOthay nhi'eud6i tU<;1ng
grammarco the du<;1ct<;lO,va mOtd6i tU<;1ngSR Resultsdu<;1ct<;lOcho
m6i C1,1mtu.D6i tu<;1ngay la mOtd6i tu<;1ngt<;lmthai chlia chi tie'tv'e
Cl,lmtub~tdU<;1cbdiSR engine.
Khi mOtSR enginedU<;1ct<;lO,thlmOtm6ilienke'tde'nthie'tbi
thuamthanhclingdu<;1ct<;lo.M~cnhienthl thie'tbi thuamthanhla
microphonenhungclingcothela telephone.
SR Engine Enumerator
CLSID
Grammar Object
SR SharingObject
CLSID
SR EngineModeEnum /SRFind
ISREnum::Select SelectedSR Engine
SR Results Object
ISRCentra/::GrammarLoad
ISRG ram Notify Sin k::PhraseF inish
.Dol tu'qngSR Enumerator va Engine Enumerator
Vai tracuaSREnumeratorvaEngineEnumeratorla xacdinhva
chQnmOtSR enginethichh<;1pchos1,1'yeticftucuachuangtrlnhling
91
dl;lng.B6'ituQngEnumeratorlit$tketit ca.cacche'dQnh?nd<;lngtie'ng
noikhadl;lngvacacenginesda:caid~ttuongling.ThongtinnayduQc
rung rip bdi d6'ituQngcon cua d6'ituQngEnumerator:d6'ituQng
EngineEnumerator.
B6'ituQngEnumeratorvaEngineEnumeratorh6trQ2 giaotiSp
. GiaotiSpISREnumduQcdungd€ nh?nmQtdanhsachcacengines
khadl;lng.
. GiaotiSpISRFind dungd€ chQnenginemongmu6'n.
.Dol ttiQ'ngSR Sharing
B6'itU'Qngnaychico mQtgiaotiSplaISRSharingd€ dinhvi va
chQnmQtd6'ituQngenginemanosechiasevoinhi"eulingdl;lngtren
mQtPc. Bi"eunayrho phepSlfdangky cualing dl;lngvoi mQtd6'i
tuQngSR server.
.Dol ttiQ'ngSR Engine
La traitimcuaht$th6'ngnh?nd<;lngtiSngnoi.B6'ituQngnay h6
trQnhi"eugiaotiSprho vit$cquailsat,di"eukhi€n cachanhdQngve
tiSngnoi.SR engineduQct<;lOb~ngphuongthlicSelectcuagiaotie'p
ISREnumcuad6'ituQngSREnumerator.
B6'i tuQngnayclingrungrip Slfkhaibaagiao tiSpcallback
(ISRNotifySink)d€ b~tcacthongdit$pgdibdiengine.Cacthongdit$p
nayco th€ dungd€ ki€m tratr<;lngthaithlfchit$ncuaengineva rung
rip thongtinphanh5irholingdl;lngd€ giatanghit$unangho<;ltdQng
cuaht$th6'ng.
Ten GiaoTie'p
ISRCentral
Diin ghli
Bay la giaotiSpchinhrho d6'ituQng
SR Engine.Chophepn<;lpVaGva la'y
ra bQvan ph<;lm,ki€m tra thongtin
tr<;lngthaicuaengine,vadangky hay
giaiphongslf khaibaaCallbackcua
engIne.
92
ISRDialogs DungdehienthicachQphQitho~dcho
phepnguoidungd~tcacthams6cila
enginevadehua'nluy~ndetanghi~u
nangnh~nd?ngchoengine.
Be d~tva nh~ncacthuQctfnhco ban
nhutenvakieucilathie'tbinh~p,di'eu
khienamluQng,...
Cho phepnguoidungquan19danh
sachcac speakerdungcho engine.
Giaotie'pnayd~tbi~tcogiatrikhi co
nhi'eunguoidungcungmQthie'thi.
Giao tie'pnay cling ca'pcho nguoi
dungtruyxua'tde thayd6i cachphat
amhayphat1?inhungtuC1,lthetrong
bQ tu v1,1'mr.
ISRAttributes
ISRSpeaker
ISRLexPronounce
.D6i ttiQ'ngGrammar
B6i tuQngGrammarla mQtd6i tuQngconcila d6i tuQngSR
Engine.No duQcdungdetaithongtinvanph?mnguphapchospeech
enginedungtrongvi~cphantfchamthanh/tie'ngnoi thauduQc.B6i
tu'QngGramarchuata'tca nhungquylu~t(rules),nhungtu (words),
danhsach(lists)va cacthams6khacdeSR enginethongdichtie'ng
noiconnguoi.SR enginexli'19m6imQtc1,lmtu codungde'nthongtin
v'evanph?mdaduQct,HVaG.
B6i tuQngGrammarh6trQbagiaotie'p:
. ISRGramCFG- Giaotie'pnaydungdedi'eukhiencacch((cnangvan
ph~mv'evanph?mcontext-freenhuvi~cquan19cacdanhsach(lists)
vacacquy1u~t(rules).
. ISRGramDictation- Giaotie'pnaydungdedi'eukhiencacchuGnang
vanph?mv'evanph?mchfnhta(dictation)nhutu (words),nhomtu
(wordgroups)vacacvanbanm§:u.
. ISRGramCommon- Giaotie'pnaydungdedi'eukhiencacGongvi~c
chungchoca hai vanph?mcontextjreeva dictation.Bao g6mcac
Gongvi~cnhutaiVaGva taira cacbQvanph?m,kfchho?thaykhu
93
kich ho(;ltbQvanph(;lmda:duQcn(;lp,hua'nluy~nchoengineva lu'ugill'
cacd6i tuQngSR results.
£>6ituQngGrammarclingh6 trQmQtkhai baacallbackd€ di~u
khi€n cacthongdi~plien quailde'ncacsl!ki~nvanph(;lm.
.D6i tu'qngSR Results
£>6ituQngnaychuathongtinchi tie'tv~h'auhe'tcacsl!ki~n(event)
lienquailde'nvi~cnh~nd(;lngtie'ngnoi,vi d\lnhuc\lmtuda:thongdich
duQcxaydtfngbdiengine,tencuaspeaker,th6ngke hi~unangho(;lt
dQng,...
ISRResEval
Di~nghii
Cungca'pthongtin co banv~cac d6i
tuQngresultsnhusl!bi€u di€n dudid(;lng
amthanhcuamQtct,lmtu,bQvanph(;lm
dungd€ phanrichcacd'auVaGva thai
giankhdidQnghaycha'mdillcuamQtsl!
ki~nnh~nd(;lng.
£>€dQcsl!bi€u di€n amthanhcuamQt
c\lmtUda:nh~nd(;lng.File amthanhnay
co th€ duQcphatl(;lira speakerhaylu'u
l(;liduOid(;lngfile .WAV d€ xeml(;lisau
nay.
£>6sinhra sl!bi6udi€n d6thi cuamQt
sl!ki~nnh~nd(;lng.£>6thinaytrlnhbay
nhungamvi dungd6xaydl!ngc\lmtu,
trinhbayph'anloi cuaenginechovi~c
hathi~nchinhxacct,lmtu,...
Cungca'pmQtcohQichovi~cxacnh~n
sl!thongdichla da:chinhxac,concho
phepstf sua l6i trongqua trinhphan
rich.
Dungd6 danhgia l(;licacke'tquacua
vi~cnh~nd(;lngtrudcdo.Phuongthuc
naycoth6duQcdungbdiengined€ yeu
c'auspeakerl~pl(;liquatrinhhua'nluy~n
TenGiaoTiel
ISRResBasic
ISRResAudio
ISRResGraph
ISRResCorrection
94
ISRResSpeaker
ISRResModifyGVI
ISRResMerger .
ISRResMemory
vadungthongtinmoid6danhgial~islf'
thongdichtruocd6.
DuQcdungd~lamtanghi~unangho~t
dQngcuaengineb~ngcachsosanhcac
thongtinda:lu'utrutUnhungphienlam
vi~ctHroCvoicunglo~ispeaker.
Dungd6 clingca'pmQtcti'as6 pop-up
yetic'aunguoixacnh~ns~ithongdich
cuaengine.C6 th6clingca'pdanhsach
catquachonguoidungchQn.
Dungd6trQnduli~utu2 slf'ki~nnh~n
d~ngkhacnhauthanhmQtdonth6don
Ie chom1,lcdichluQnggia.Di~unayse
lamgia tangtri thliccuah~th6ngv~
speakerhaycacc1,lmtu.
D6 ca'pphatvagiaiph6ngbQnhodung
b6icacd6ituQngresults.
.N6ithemv'eGrammarRules:
BQvanph~mcuaSR enginedi~ukhi6ncachSR enginethong
dichtiengn6i.Grammardinhnghlanhungd6ituQngd6engineMng
nghetrencacd6ituQngd6vadungnhungguylu~t(rules)d6phanrich
cacd6ituQng.SR engineyetic'aumQthaynhi~uGrammarsphaiduQc
n~ptruockhiSRenginec6th6nh~nd~ng.
Mo hlnhSAPI dinhnghla3ki6uGrammars:
. Context-freegrammars- CactuduQcphanrichdlf'atrencos6cac
guylu~tv~Cllphap.Slf'thongdichdlf'atrencos6slf's<lpxepvathli
tlf'cua cacd6i tuQngchli khongdlf'avaoynghlahayngucanhcua
cacd6ituQng.
. Dictationgrammars- CactuduQcsosanhvaobQtuvlf'ngIOnc6
mQtchud~da:duQcdinhnghlatruocva mQtlo~igiQngdQccho
trudc.
. Limited-domaingrammars- la slf' ket hQp cua context-free
grammartrencos6cacguylu~tva dictationgrammartrenco s6
cactU.
95
Caequylu~tchoSAFI Context-FreeGrammar
SAPI Context-FreeGrammar(CFO) ho~tdQngtrenmQtt~phC!p
gioih~ncacquyIu~t.NhungquyIu~tnayduC!cdungderhEintich
cacaudioinput.CacCPOsconchopheps1,I'dinhnghlacuanhung
turiengIe.NhungtUnaytrdthanhmQtph'antrongbQvanph~mva
co theduC!cnh~nd~ngriengIe haynhumQtph'antrongmQtquy
Iu~t.
Cachcqnhnghiacaetu trongCFG
TrongSAPI CPOs,m6itudinhnghladuC!cgallmQtID duynha't.
Vi dv:
Lee=101;
Scott=102;
Michelle=103;
Lu'u Y Ia chungta nengill chodanhsachtrongbQtu vl,l'ngcang
ng~nGangt6t.
Cachcqnhnghiacaequylu~ttrongCFG
Cungvoi cacturiengIe, CFO conc'ande'ncacquyIu~tde thong
dichtie'ngnoi.M6i quyIu~tg'Om2ph'an- Tenlu4tvadaycaethao
tacdtnhnghlalu4t.
=[seriesofoperations]
Ta cothegQimQtIu~tkhac,lit$tket~phQpcactucothenh~nd~ng
duC!chaythamchie'ude'ndanhsachcactli'bell ngoai.Clingco
nhunghamd~cbit$tdinhnghlachocacCPOs:
. altO:dungdelit$tket~phQpcacinputs.
. seqO:dunghamnaydechir5choSRenginethlitl,l'xua'thit$nd
d'auvao.
. repO:dunghamnaydebaachoSR enginetunayhayIu~tnay
seduC!cI~pI~inhi€u I'an.
Vi dv :
. =alt(
Scott
Wayne
Curt
)alt;
. =alt(
96
Scott
seq(Scott
Wayne
seq(Wayne
Ivey)seq
Ivey)seq
)alt;
. =alt(
seq(Dial rep(
)alt;
=alt(
zero
)rep)seq
one
two
three
four
five
SIX
seven
eight
mile
)alt ;
Mftuttfphienamqu6cte'(InternationalPhoneticAlphabet- IPA)
Nhii'ngh~th6ngnh~nd:~lllgtie-fignoi co h6 trQIPA secho
phepngu'oidungnh~pmaIPA vaobQtuv1!ngnhu'la cachd';lycho
h~th6ngcachphcitamcactu.NhungmaIPA naydu'QcdungdSso
khop cacamthanhdl1uvaovoicactudu'Qchill trongbQtuv1!ng
cuaenginedodolamtanghi~unangcuaquatrinhnh~nd';lng.
Du'oidayla danhsachcacIPA cuacacph\!amva nguyen
amtie-figAnhtu'onglingvoicacgia1:IiUnicode:
97
NguyenJ Vi dQ. Unicode
PhQ.Am
B Big, able,tab U+OO62
Ch Chin,archer U+OO74U+O283
D Dig, idea U+OO64
F Fork,after U+OO66
G Gut,angle U+O261
98
H Help, ahead U+0068
J Yoy, edge U+0064U+0292
K Cut,take U+006B
L Lid U+006C
M Met, amid,aim U+006D
N No, end,pan U+006E
Ng Sing,drink U+014B
P Put,open,tap U+0070
R Red,part,far U+0072
S Sit,cast,toss U+0073
Sh She,cushion U+0283
T Talk, sat U+0074
Th Thin, truth U+03B8
Dh Then,father U+OOFO
V Vat, over,have U+0076
W With,away U+0077
Z Zap,lazy U+007A
Zh Measure U+0292
A At, carry,gas U+00E6
Ate, day,tape U+0065
Ah, car,father U+0251
E End,berry,ten U+025B
Eve, be,me U+0069
I Is, hit, lid U+026A
Ice, bite,high U+0061 U+026A
a Own,tone,go U+006F
Look,pull,good U+028A
Tool,crew,moo U+0075
Oil, coin,toy U+0254
Out,how,our U+0061U+028A
U Up,bud,cut U+028C
Urn,fur,meter U+025A
Y Yet,onion,yard U+006A
.D6i ttiQ'ngSR Results
E>6itu<;fngnay chuathongtin chi tie'tcho h'auhe'tcac slf ki~n
lien quailde'nnh~nd~ngtie'ngnoi.Vi dl;!nhuslfbi~udi~ntie'ngnoi da:
du<;fcthau,cl;!mtuda:du<;fcthongdichdu<;fcxaydlfngbdi engine,th6ng
ke hi~unang,...
2.2.2.2.Text-to-Speech
Cac dichVl;!text-to-speechca'ptha'pdu<;fccungca'pbdi mQtd6i
tu<;fngchinh la d6i tu<;fngTTS Engine. Cling gi6ngnhu t~pcac d6i
tU<;fngSR, t~pcac d6i tu<;fngTTS cling co d6i tu<;fngEnumeratorva
Engine Enumerator.Nhil'ngd6i tu<;fngnay du<;fcdung d~dinh vi va
chQnmQtd6i tu<;fngTTS Engineh<;fpl~.
Cac dichVl;!TTS clingco dungmQtd6i tu6i
tu<;fngm~cnhienchooutputla loamaytinh(PC speaker).
ITTSEnum::Find TIS Engine Enumerator
CLSID
TIS Enumerator
MM AudioOutput
ITTSFind:: Select
CLSID
.D6i ttiQ'ngTTS Enumerator va Engine Enumerator
Cae d6i tu<;fngnay dungd~nh~nmQtdanhsachcac TTS
engineskhi dl;!ngcungvoicacche'dQdQccuachung.Cahaih6tr<;fhai
giaotie'p:
. ITTSEnum- dungd~nh~nmQtdanhsachcacTTS engineskha
dl;!ng.
99
. ITTSFind- dungdSnh~nmQtcontrochid€n TTS engineyeti
c'au.
.D6i tu'qngTTS Engine
Day la dO'ituc}ngchinhcuacacdichVl,lTTS SAPI ca'ptha'p.DO'i
tuc}ngTTS Engine h6 trc}nhi'eugiao ti€p ITTSCentral, ITTSDialog,
ITTSAttributes.
DO'ituc}ngnayconh6trc}haikhaibaacallbacks
. ITTSNotifySink - dungdS gCJcac thongdi<$pling dl,lnglien
quaild€n vi<$cphath;ti(playback)vanbannhuaudiooutput,nhu'
startvastopplayback.
. ITTSBllfNotifySink- dungdS gCJicacthongdi<$plien quailcte'n
tr:;tngthaicuavanbantrangplaybackbuffer.
2.3.>Caeva'nd'eky thu~tedbantrongnh~nd:;mgtie'ngnoi
C6 3ye'uto'kythu~tdSdanhgiatronglanhvl,l'cnh~nd:;tngti€ng n6i:
. TrichchQntu.
. Tinhphl,lthuQcVaGgiQngnguoidQc.
. Phantichtu.
Trich cht;mtit la quatrlnhlamthe'naGdScamnh~nduQcmQtcach
chinhxactungtumQtCJd'auVaG.Ba'tkymQtSRenginenaGclingphai
c6mQtphuongphapdSl~ngngheCJd'auVaGvaquye'tdinhkhi naGla
k€t thucmQtu.C63phuongphapdSgiaiquy€tva'nd'enay:
. Tach tung tie'ngrieng bi~t.
. Tach tungCl,lmtu.
. Dl,l'aVaGcamQtCalin6i lien tl,lc.
Phuongphaptachtitngtiengriengbi~tla d:;tngtrichtitdongian
nha't.Trangphuongphapnayengineyell c'aumQtkhoangl~nggifi'a
m6itu.Da'ul~ngnaydanhda'uvi tri b~td'auvake'tthuccuam6itu.
Phuongphapnaykhongdoihoitainguyenmaytinhnhi'eu.Tuynhien
theophuongphapnaythlgi<;mgn6ira'tlakhongtlfnhien.,
100
TrangphuongphaptachtitngCl;lmtu:thlspeechenginesel~ng
nghemQtchu6icactutudongamthanhnh~pVaG.Theophuongphap
naynguaidungsen6imQtcachtl1nhienbon,vadayclingchinhla uu
di~mcilaphuongpharoNhungye'udi~mcilan61ad~nh'aml~n.
Phuongphapthli badl1aVaGnguyendiu noi lien tl;lcla phuong
phapcaoc:ipnh:itchovi<$ctrichchr;mtit.Trangphu'ongphapnay SR
enginec6 g~ngnh~ndi;lllgm6i tu theothai gian thl1c.Do d6 phuong
phapnaysedoihoi tainguyenmaytinhra'tnhi~u.
Qua trlnhtrichchr;Jntitn6i trenl<;liclingbi anhhudngnhi~uVaG
giQngcila nguaidQc(speaker)- Tinh ph~lthui)cvitongltma(Jc.Tinh
nangnay am chi de'nkha nangling xU'cila SR enginevdi cac giQng
dQckhacnhau.Tren thl,tcte'thlc6nhungSR enginebi ph1,lthuQcgiQng
n6i ma clingc6 nhungSR enginedQcl~pvdi giQngn6i. Ba'tti<$ncila
nhungh<$th6ngph1,lthuQcgiQngn6i la t6nchiphi d~"hua'nluY<$n"cho
h<$th6ngtrudckhi n6 du<;1ckhai thac vdi mQtnguai C1,lth~(vdi dQ
chinhxac khoang90%).Cach<$th6ngdQcl~pvdi giQngn6i c6 khuye't
di~mla doi hoi r:itnhi'eutainguyencila maykhi ho<;ltdQng.
MQtkhi tu da:dU<;1ctrichra thl ke'de'nla n6phai dU<;1cphantich
- Phiin tich tit. Ky thu~tnay la qua trlnhso khdp tungm1,lctu trich
dU<;1cVaGdanhsachcac tu da:bie'tdu<;1chill tru s~ngtrongbQtu vl,tng
cila SR engine.C6 2 phuongphap cho qua trlnh nay la : So kh6p
nguyentit; vaSo khaptitcan (sub-word).Trong phuongphapso khap
nguyentit, SR enginesokhdp tungm1,lctU trichdu<;1cvdi cac tu m§u
trongkho tu vvng.£)i~mye'ucilaphuongphapnay la yell c'aulu'utnt
bQtu vl1nglOll.M6i tuc6th~chie'mde'n512byteho~chonnU'a.
Phuongphap so khdp tit can con gQi la so khap am vi
(phonemes).Chungtabie'tr~ngm6ingonnguc6mQt~pcacamvi c6
dinhdU<;1cdungd~t<;lOnencactu.Nhu v~yb~ngvi<$cbaachoSR
enginebie'ttrudcv~cacamvi vacachbi~udi~nchungthlenginese
d~dangc6khanangnh~nd<;lngdU<;1cmQt~ph<;1pcactukhac.Phuong
phapnaykhongdoihoibQtuvl,tngphailOll.HonnU'amQtthu~nlQi
cilaphuongphapnayla sl,tphatamcilamQttuc6th~duQcxacdinhtu
mQtchu6ivanban.Vi<$clu'utrucacamvi trungblnhchic'antu5de'n
101
20bytecho1mQtamvi.Ba'tlQichinhcuaphu'ongphapnayla doihoi
nhi-eutainguyenmaytinhtrongquatrlnhphantich.
3.>Mo hinhdli dat
H~th6ngsti'dl,mgsl,l'tu'ongtaccua4d6ituQngchinhnhusau:
.DOLtl1lJngInputMedia
Dien giai :
B6i tuQngnaybieuthichothitt bi dungdenh~ptitng n6ic'annh~nd~ng.
Thanhph'andli lieu:
1.Toc_Do :
2.KQ:
3.TB_Nhap:
T6cdQnh~pchophep.
Chu6iamthanhktt quanh~p.
Lo~ithie'tbinh~p.
Cacphuongthuc:
1.Khoi_Tao() :
2.Bat_Dau():
3.Ket_Thuc():
4. Dung() :
5. TT() :
6.Lay_KQ() :
Khdit~od6ituQngInputMedia.
B~td'auquatrlnhthutitng.
Ktt thucquatrlnhthutie'ng.
T~mdungquatrlnhthutitng.
Titp tl;lcquatrlnhthutitng t~i
truocd6.
La'ychu6iamthanhktt qua.
diem t~mdung
.Do'itl1lJngSREngine :
Diengiai :
Bay la d6i tuQngdamnh~ntinhnangnh~nd~ngtitng n6i.
Thanhph'andli lieu:
1.Doi :
2.Min_Nhieu:
3.Nguoi_Doc :
4. TG_Hoan_Tat:
5.Max_TG_Lang :
6.Max_TG_ND :
Tr~ngthaiechotrendongamthanhdangnh~p.
Gill giatridQnhieutha'pnha'tmaenginechophep
tudongamthanhnh~p.
Luugillthongtinv-enguaidQc.
NguongthaigiangiUa2cl,lmtu.
Khoangthaigiant6idacuamQtda'ul~ng.
Thaigiant6idadeenginenh~nd~ng.
102
CORBAORB
sO'ke'tquat6tnhit t6idaduQctrav~tuenginesail
khinh~nd~ng.
Ke'tquatrav~tuengine.
Phuongphaptachtu.
Phuongphapsokhop.
B6i tuQngnh~pamthanh.
B6i tuQngxuit ke'tqua.
BQvanph~mdungtrongquatrlnhnh~nd~ng.
Tinhphl,lthuQcgiQngdQc.
7.So_KQ_l ..
8.DS_KQ :
9.PP_TT:
10.PP_SK:
11.TB_Nhap :
12.TB_Xuat :
13.Grammar:
14.PT_Giong :
Cacphuongthuc:
1.Khoi_Tao():
2.Dung():
Khdi t~omQtd6i tuQngSREngine.
T~mdungquatrlnhnh~nd~ng.
103
8Khoi3aoO
InputMedia
8Khoi_TaoO OutputMedia
8BacDauO. 8 Bat_DauO
8KecThucO
0
Ket_ThucO 08DungO .DungO8TTO 8TTO
8 Lay_KQO
8 Khoi3aoO
SREngine 8Tach_TuO Grammar
8 Dung() 8 So_KhopO
8TTO
0 8 Dlg_Day()
DeactiveO 08 Mode_NDO8 LoadGrammarO
8UnLoadGrammar()
3. TT():
4.Mode_ND() :
5.LoadGrammar():
6. UnLoadGrammar():
7. Tach_Tu():
8.So_Khop():
9.DIg_Day() :
Tie'ptl;lcGongvi~cnh~nd<:ingd di~mt<:imdung.
La'ythongtin lien quailde'nche'dQnh~nd<:inghi~n
h?mh.
N<:ipbQvanph<:imdungchoquatrlnhnh~nd<:ing.
LO<:iib6bQvanph<:imdangdung.
Tachtu.
Nh~nd<:ing.
Hi~nthi hQphQi tho<:iidungcho qua trlnh "d<:iY"
choengine.
.D[/i tz1(fngGrammar:
Di~ngiai :
E>6ituQngnayd<:iidi~nchobQvanph<:imdin dungtrongquatrlnhnh~nd<:ing.
Thanhph'andli lieu:
1.Ten_tt:
CacphuongthUG:
1.KhoCTao() :
2.Active:
3.Deactive:
4. Them_Tu():
5.Xoa_Tu() :
6. Tim() :
Ten t~ptinvanph<:im.
Khdi t<:iOd6i tuQngGrammar.
Kich ho<:itbQvanph<:im.
Khtl'kichho<:itbQvanph<:im.
Themtu moivaobQvanph<:im.
X6a mQtturakh6ibQvanph<:im.
TIm Ide'mmQttutrongbQvanph<:im.
.Doi tz1(JngOutputMedia:
Di~ngiai :
E>6ituQngnaybi~uthichothie'tbi dungd~xua'tke'tquanh~nd<:ingra thie'tbi
xu<l'ttuongung.
Thanhph'andli lieu:
1.Toc_Do :
2. Cao_Do..
3. TB_Xuat:
CaephuongthuG:
1.KhoCTao():
T6c dQphatl<:iiamthanh.
CaodQcuaamthanhkhi phat.
Lo<:iithie'tbi xua't.
Khdi t<:iOd6i tuQngOutputMedia.
104
2.Bat_Dau(): B~tdilllquatrlnhxua'tchu6ivanbanfa thi€t bi
xua'tu'ongung.
K€t thuGquatrlnhxua'tchu6ivanbanhi~nthaifa
thi€t bixua't.
T<;lmdungquatrlnhxua'tvanbanfa thi€t bixua't.
Ti€p tlfcquatrlnhxua'tchu6ivanbant<;lidi€m t<;lm
dungtfu'OCd6.
3.Ket_Thuc():
4.Dung() :
5. TT() :
4.>Huang phat tri~n
K€t hQpvoi cacdO"itu'Qngv'eTAPI d€ nh~nd<;lngchITselquaelngnghedi~n
tho<;li.
NghienCUllphu'ongphapnh~nd<;lngrheangITamvathunghi~mvoimahlnh
nh~nd<;lngHiddenMakovd€ nangcaotinhtv nhienchongu'aidQcva dQ
chiIlhxacchophanh~nh~nd<;lngchITsO"(lenkhoang97%-98%va dQcl~p
voigiQngn6i).
105