Speech Recognition Engines

Nested
Regarding .grammar and .voca files
User: Gururaj
Date: 3/28/2017 1:19 am
Views: 2480
Rating: 0

Hi all

I am using julius for voice recognition, i am facing problems regarding .grammer and .voca files, the problem is when try to update .grammer and .voca file with some more commands or words based on voxforge dictionary it is giving errors. Actually when run these files with mkdfa.pl commands it will be fine and .term .dict files are generated, but when i use the reference of this files in program it is giving errors.

.grammar file

S : NS_B CALL NAME_LOOP NS_E
NAME_LOOP: NAME_LOOP NAME
NAME_LOOP: NAME

S : NS_B DIAL DIGIT_LOOP NS_E
DIGIT_LOOP: DIGIT_LOOP DIGIT
DIGIT_LOOP: DIGIT

S : NS_B REDIAL DIAL_LOOP NS_E
DIAL_LOOP: DIAL_LOOP NAME
DIAL_LOOP: NAME

S : NS_B REDIAL NUM_LOOP NS_E
NUM_LOOP: NUM_LOOP DIGIT
NUM_LOOP: DIGIT

S : NS_B PLAY SONG_NAME NS_E
S : NS_B NEXT SONG_NAME NS_E
S : NS_B PREVIOUS SONG_NAME NS_E
SONG_NAME: SONG

S : NS_B SHUFFLE SHUF_ACT NS_E
SHUF_ACT: SHUFFLEACTION

S : NS_B INCREASE VOL_ACT NS_E
S : NS_B DECREASE VOL_ACT NS_E
VOL_ACT: VOLUME

S : NS_B GOTO ACTION_LOOP NS_E
ACTION_LOOP: ACTION_LOOP ACTION
ACTION_LOOP: ACTION

S : NS_B ACTIVATE ACTIVATION_LOOP NS_E
ACTIVATION_LOOP: ACTIVATION_LOOP ACT
ACTIVATION_LOOP: ACT

S : NS_B CANCEL NS_E
S : NS_B HELLO  NS_E
S : NS_B WORLD NS_E

S : NS_B PAUSE NS_E
S : NS_B MUTE  NS_E
S : NS_B STOP NS_E

.voca file

% NS_B
<s>        sil

% NS_E
</s>        sil

% CALL
PHONE        f ow n
CALL        k ao l

% DIAL
DIAL        d ay ah l

% REDIAL
REDIAL        r iy d iy ah l

% PLAY
PLAY        p l ey

% NEXT
NEXT        n eh k s t

% PREVIOUS
PREVIOUS    p r iy v iy ah s   

% PAUSE
PAUSE        p ao z

% MUTE
MUTE        m y uw t

% STOP
STOP        s t aa p

% GOTO
GOTO       g ow t ow

% INCREASE
INCREASE    ih n k r iy s   

% DECREASE
DECREASE           d ih k r iy s

% VOLUME
VOLUME           d ih k r iy s

% ACTIVATE
ACTIVATE    v aa l y uw m

% SHUFFLE
SHUFFLE        sh ah f ah l

% CANCEL
CANCEL     k ae n s ah l

% HELLO
HELLO        hh ah l ow
HELLO      hh eh l ow

% WORLD
WORLD        w er l d

%ACTION
MUSIC        m y uw z ih k
PLAYER         p l ey er
HOME           hh ow m
SETTINGS       s eh t ih ng z
RADIO          r ey d iy ow
VIDEO          v ih d iy ow
MEDIA          m iy d iy ah
PHONE          f ow n
BROWSER        b r aw z er
NAVIGATION    n ae v ah g ey sh ah n
DRIVER        d r ay v er
ASSISTANCE    ah s ih s t ah n s
TELEVISION    t eh l ah v ih zh ah n
ENTERTAINMENT    eh n t er t ey n m ah n t

%ACT
PEDESTRIAN    p ah d eh s t r iy ah n
DETECTION    d ih t eh k sh ah n
VOICE        v oy s
ALERTS        ah l er t s
BLIND        b l ay n d
SPOT        s p aa t
MONITOR        m aa n ah t er
REVERSE        r ih v er s
BRAKING        b r ey k ih ng
DRIVER        d r ay v er
CONTROL        k ah n t r ow l
LANE        l ey n
DEPARTURE    d ih p aa r ch er

% NAME
STEVE       s t iy v 
PRIHAM       p r ih t ah m
JOHN       jh aa n
JORDAN     jh ao r d ah n
JOE        jh ow

% SONG
SONG        s ao ng

%SHUFFLEACTION
ON        aa n
OFF        ao f


% DIGIT
FIVE       f ay v
FOUR       f ao r
NINE       n ay n
EIGHT      ey t
OH         ow
ONE        w ah n
SEVEN      s eh v ah n
SIX        s ih k s
THREE      th r iy
TWO        t uw
ZERO       z iy r ow

when i try to add commands for %ACTION it is giving errors.

can anyone please tell what is the problem here ?

Thank

--- (Edited on 3/28/2017 1:19 am [GMT-0500] by Gururaj) ---

--- (Edited on 3/28/2017 4:54 am [GMT-0500] by Gururaj) ---

PreviousNext