legacy:speech_recognition_guide:grammar

Grammar with Phonetic Spellings

This page describe how to define a grammar with phonetic spellings. You can specify phonetic spelling in BNF and XML grammars. The phonetics spellings depend on the language use. You have to use the phoneme symbols of the language.

Vestec give a some documentations to write grammars. Their are located in /usr/share/doc/Vestec/vasre/

Here is an example of phonetic use : The name “Tkocz” is pronunce in french : tecoach. The grammar can be written like this :

<item>Dominique "{t @ s o t S:Tkocz}"<tag>out='Dominique Tkocz'; </tag></item>
<item>"{t @ s o t S:Tkocz}"<tag>out='Tkocz'; </tag></item>

This list come from Vestec : /usr/share/doc/Vestec/vasre/phoneme_list_fr-FR

Phoneme Example     Transcription
=============================
@       le             l @
A       afin           A f e~
E       airbus         E r b y s
G       heure          G r
G~      une            G~ n
H       huile          H i l
J       besogne        b @ z O J
N       meeting        m i t i N
O       homme          O m
S       chose          S o z
T       euro           T r o
Z       je             Z @
a       âge            a Z
a~      enfin          a~ f e~
b       bien           b j e~
d       de             d @
e       effectivement  e f E k t i v @ m a~
e~      impose         e~ p o z
f       film           f i l m
g       gaspillage     g A s p i j A Z
h       oui            h w i
i       il             i l
j       youyous        j u j u
k       que            k @
l       lui            l H i
m       me             m @
n       ne             n @
o       autre          o t r
o~      ombre          o~ b r
p       pour           p u r
r       dire           d i r
s       ce             s @
t       tu             t y
u       outil          u t i
v       venir          v @ n i r
w       oindre         w e~ d r
y       sur            s y r
z       zone           z o n

This list come from Vestec : /usr/share/doc/Vestec/vasre/phoneme_list_en-US

Phoneme Example Transcription
=============================
aa      archive   aa r k ay v
ae      aptitude  ae p t ah t uw d
ah      upgrade   ah p g r ey d
ao      off       ao f
aw      out       aw t
ay      isolate   ay s ah l ey t
b       bus       b ah s
ch      change    ch ey n jh
d       duck      d ah k
dh      they      dh ey
eh      end       eh n d
er      urgency   er jh ah n s iy
ey      angel     ey n jh ah l
f       forum     f ao r ah m
g       gap       g ae p
hh      hive      hh ay v
ih      infant    ih n f ah n t
iy      email     iy m ey l
jh      joke      jh ow k
k       clue      k l uw
l       luck      l ah k
m       mouth     m aw th
n       noodle    n uw d ah l
ng      drink     d r ih ng k
ow      open      ow p ah n
oy      oiling    oy l ih ng
p       put       p uh t
r       rim       r ih m
s       some      s ah m
sh      shy       sh ay
t       tag       t ae g
th      thank     th ae ng k
uh      book      b uh k
uw      food      f uw d
v       void      v oy d
w       worm      w er m
y       you       y uw
z       zoo       z uw
zh      leasure   l eh zh er

This list come from Vestec : /usr/share/doc/Vestec/vasre/phoneme_list_es-ES

Phoneme Example Transcription
=============================
B       sabe    s a B e
D       tarde   t a r D e
G       fuego   f w e G o
J       año     a J o
L       allí    a L i
N       nunca   n u N k a
T       zona    T o n a
a       abajo   a B a x o
b       boca    b o k a
d       dedo    d e D o
e       entrar  e n t r a r
f       flor    f l o r
g       ganar   g a n a r
i       incluir i N k l w i r
j       rey     rr e j
jj      suya    s u jj a
k       cabo    k a B o
l       libre   l i B r e
m       madre   m a D r e
n       nombre  n o m b r e
o       oír     o i r
p       par     p a r
r       pero    p e r o
rr      rico    rr i k o
s       saber   s a B e r
t       tal     t a l
tS      chica   tS i k a
u       unir    u n i r
w       pues    p w e s
x       junto   x u n t o
z       cosmos  k o z m o s
  • legacy/speech_recognition_guide/grammar.txt
  • Last modified: 2017/07/28 23:33
  • by javier