JCONTROL(1)
π NAME π
jcontrol β a sample module client written in C π
okay so bestie, welcome to JCONTROL(1), the manual page where we talk about the cutest lil console program that could π
β¨ SYNOPSIS β¨
jcontrol {hostname} [portnum]
like, that's it. that's the whole vibe check π¦
πΈ DESCRIPTION πΈ
jcontrol is a simple console program made to control julius running on other hosts over the network API π. It can send commands to Julius, and it can receive messages back from Julius. it's giving long-distance relationship but make it sockets π
When you invoke it, jcontrol tries to connect to Julius running in "module mode" on the hostname you specified β¨. Once the connection is established, jcontrol just... waits π for user commands from standard input. main character energy honestly.
When you type a command into jcontrol, it gets interpreted and the corresponding API command gets sent to Julius π¨. And when a message is received from Julius, its content gets output to standard output π.
For all the deets about the API, go see the related documents, iykyk π
π OPTIONS π
hostnameβ the host name where Julius is running in module mode π₯οΈ (yes the original spells it "runnning", we love her for that)portnumβ the port number (default:10500) π
π¦ COMMANDS π¦
jcontrol interprets commands from standard input. Below is a list of all the commands, no skips, no cuts, periodt π
π Engine control π
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 aspause, but discard the current speech input when the command is received in the middle of the recognition process ποΈ.resumeβ Restart Julius that has been paused or terminated β―οΈ.inputparam argβ Tell Julius how to deal with speech input in case the grammar is changed just when recognition is running. Specify one:"TERMINATE","PAUSE"or"WAIT"ποΈ.versionβ Tell Julius to send the version description string π·οΈ.statusβ Tell Julius to send the system status (active/sleep) π€.
π Grammar handling π
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 with the specified 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 an 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 each time grammar information has changed. When you want to delete more than one grammar, specify all of them comma-separated.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 each time grammar information has changed. When you want to delete more than one grammar, specify all of them comma-separated.
activategram gramlistβ Tell Julius to activate a 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 each time grammar information has changed. When you want to delete more than one grammar, specify all of them comma-separated.addword grammar_name_or_id dictfileβ Add the recognition word entries in the specified dictfile to the specified grammar on the current process π.syncgramβ Force synchronize grammar status, like the unix command"sync"π.
π§ Process management π§
Julius-4 supports multi-model recognition and multi decoding π. In this case it is possible to control each recognition process, as defined by the "-SR" option, from the module client.
In multi decoding mode, the module client holds a "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 Julius to load a new recognition process into the engine π. The jconffile argument 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, sincejcontrolonly sends the path name and Julius actually reads 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 temporarily 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 βΆοΈ.
π EXAMPLES π
The dump messages from Julius are output to tty with the prefix ">" appended to each line π. Julius can be started in module mode like this:
jcontrol can be launched with the host name:
It will then receive the outputs of Julius and output the raw message to standard out β¨. Also, by inputting the commands above to the standard input of jcontrol, it will be sent to Julius π. See the manuals for the specification of module mode π.
π«Ά SEE ALSO π«Ά
julius ( 1 ) π
π COPYRIGHT π
Copyright (c) 1997-2000 Information-technology Promotion Agency, Japan
Copyright (c) 1991-2008 Kawahara Lab., Kyoto University
Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology
Copyright (c) 2005-2008 Julius project team, Nagoya Institute of Technology
β LICENSE β
The same as Julius. π
and that's the whole page bestie π₯Ή this was JCONTROL(1), dated 10/02/2008, and it's the same page as the one filed under JCONTROL(1) β go forth and control your Julius over the network, you absolute icon ππβ¨
π¦ where this page comes from
- ubuntu jammy: julius 4.2.2-0ubuntu3
- ubuntu noble: julius 4.2.2-0ubuntu6
- ubuntu resolute: julius 4.2.2-0ubuntu6
- ubuntu stonking: julius 4.2.2-0ubuntu6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms