jcontrol interprets commands from standard input. Below is a list of all commands.
Enginecontrol
pause
Stop Julius and enter into paused status. In paused status, Julius will not run recognition even if
speech input occurs. When this command is issued while recognition is running, Julius will stop after
the recognition has been finished.
terminate
Same as pause, but discard the current speech input when received command in the middle of recognition
process.
resume
Restart Julius that has been paused or terminated.
inputparam arg
Tell Julius how to deal with speech input in case grammar is changed just when recognition is running.
Specify one: "TERMINATE", "PAUSE" or "WAIT".
version
Tell Julius to send version description string.
status
Tell Julius to send the system status (active / sleep)
Grammarhandling
changegram prefix
Send a new grammar "prefix.dfa" and "prefix.dict", and tell julius to use it as a new grammar. All the
current grammars used in the current process of Julius will be deleted and replaced to the specifed
grammar.
addgram prefix
Send a new grammar "prefix.dfa" and "prefix.dict" and add it to the current grammar.
deletegram gramlist
Tell Julius to delete existing grammar. The grammar can be specified by either prefix name or number
ID. The number ID can be determined from the message sent from Julius at each time grammar information
has changed. When want to delete more than one grammar, specify all of them as comma-sparated.
deactivategram gramlist
Tell Julius to de-activate a specified grammar. The specified grammar will still be kept but will not
be used for recognition.
The target grammar can be specified by either prefix name or number ID. The number ID can be
determined from the message sent from Julius at each time grammar information has changed. When want
to delete more than one grammar, specify all of them as comma-sparated.
activategram gramlist
Tell Julius to activate previously de-activated grammar. The target grammar can be specified by either
prefix name or number ID. The number ID can be determined from the message sent from Julius at each
time grammar information has changed. When want to delete more than one grammar, specify all of them
as comma-sparated.
addword grammar_name_or_iddictfile
Add the recognition word entries in the specified dictfile to the specified grammar on current
process.
syncgram
Force synchronize grammar status, like unix command "sync".
Processmanagement
Julius-4 supports multi-model recognition nad multi decoding. In this case it is possible to control each
recognition process, as defined by "-SR" option, from module client.
In multi decoding mode, the module client holds "current process", and the process commands and grammar
related commands will be issued toward the current process.
listprocess
Tell Julius to send the list of existing recognition process.
currentprocess procname
Switch the current process to the process specified by the name.
shiftprocess
Rotate the current process. At each call the current process will be changed to the next one.
addprocess jconffile
Tell Julisu to load a new recognition process into engine. The argument jconffile should be a jconf
file that contains only one set of LM options and one SR definition. Note that the file should be
visible on the running Julius, since jcontrol only send the path name and Julius actually read the
jconf file.
The new LM and SR process will have the name of the jconffile.
delprocess procname
Delete the specified recognition process from the engine.
deactivateprocess procname
Tell Julius to temporary stop the specified recognition process. The stopped process will not be
executed for the input until activated again.
activateprocess procname
Tell Julius to activate the temporarily stopped process.