sumom****@users*****
sumom****@users*****
2008年 10月 2日 (木) 17:23:47 JST
Index: julius4/jcontrol/00readme-ja.txt diff -u julius4/jcontrol/00readme-ja.txt:1.2 julius4/jcontrol/00readme-ja.txt:1.3 --- julius4/jcontrol/00readme-ja.txt:1.2 Tue Dec 18 23:08:22 2007 +++ julius4/jcontrol/00readme-ja.txt Thu Oct 2 17:23:47 2008 @@ -1,157 +1,173 @@ + jcontrol + JCONTROL(1) JCONTROL(1) -NAME - jcontrol - simple program to control Julius module via API +¼O + jcontrol + - JuliusW [[hpÌTvNCAg -SYNOPSIS - jcontrol hostname [portnum] +Tv + jcontrol {hostname} [portnum] DESCRIPTION - jcontrol ÍC¼ÌzXgÅ®ìÌ julius ðCAPIðîµÄRg[· - éÈPÈR\[vOÅ·D Julius ÖÌR } h MC ¨ æ - ÑJulius©çÌbZ[WóMðs¤±ÆªÅ«Ü·D - - N®ãCjcontrol ÍCwèzXgãɨ¢ÄuW [[hvÅ®ìÌ - Julius ÉεCÚ±ðÝÜ·DÚ±m§ãCjcontrol Í[U[©çÌ R - }hüÍÒ¿óÔÆÈèÜ·D + jcontrol ÍCW [[hÅ®ìµÄ¢é julius ÉÚ±µCAPIðîµ + ÄRg[·éÈPÈR\[vOÅ·DJulius ÖÌêâ~ + âÄJÈÇÌR}hÌMC¨æÑ Julius ©çÌF¯Ê⹺Cxg + Ì bZ[WóMðs¤±ÆªÅ«Ü·D + + N®ãCjcontrol ÍCwèzXgãɨ¢ÄuW [[hvÅ®ì + ÌJulius ÉεCÚ±ðÝÜ·DÚ±m§ãCjcontrol Í[U[©çÌ + R}hüͨæÑbZ[WóMÒ¿óÔÆÈèÜ·D - jcontrol Í [U[ªü͵½R}hððßµCηéAPIR}hð - Julius ÖMµÜ·DܽCJulius ©çF¯ÊâüÍgKîñ È Ç Ì + jcontrol Í [U[ªü͵½R}hððßµCηéAPIR}hð + Julius ÖMµÜ·DܽCJulius ©çF¯ÊâüÍgKîñ ÈÇ Ì bZ[WªM³êÄ«½Æ«ÍC»ÌàeðWoÍÖ«oµÜ·D - APIÌÚ×É¢ÄÍÖA¶ð²º³¢D + W [[hÌdlÉ¢ÄÍCÖA¶ð²º³¢D OPTIONS - hostname - Ú±æÌzXg¼iJulius ªW [[hÅ®ìj - - portnum - (optional) |[gÔ (default=10500) + hostname + Ú±æÌzXg¼ -COMMANDS (COMMON) - N ® ãCjcontrol ÉεÄȺÌR}h¶ñðWüÍ©çüÍÅ«Ü - ·D + portnum + |[gÔiftHgF10500j - pause F¯ðf·éDF¯rÌêC»±ÅüÍðfµÄæ2pXÜ Å - F¯ªIíÁÄ©çf·éD +COMMANDS + jcontrol ÍWüÍ©ç1s¸ÂR}h¶ñðó¯æéD R}hÌê + ÍȺÌÊèD + + ®ì§ä + pause + JuliusÌF¯®ìðf³¹Cêâ~óÔÉÚs³¹éDêâ~ó Ô + É éJuliusÍC½Æ¦¹ºüͪ ÁÄàF¯ðsíÈ¢D éæ + Ô̹ºF¯ÌrűÌR}hðó¯æÁ½êC Julius Í»Ì + F¯ªI¹µ½ãCêâ~óÔÉÚs·éD terminate - F¯ðf·éDF¯rÌêCüÍðjüµÄ¦f·éD - resume F¯ðÄJD + pauseƯ¶CJuliusÌF¯®ìðf³¹C êâ~óÔÉÚs³¹ + éD éæÔ̹ºF¯ÌrűÌR }hðó¯æÁ½êC» + ÌüÍðjüµÄ¦ÀÉêâ~óÔÉ Ús·éD + + resume + Julius ðêâ~óÔ©çÊíóÔÖÚs³¹CF¯ðÄJ³¹éD inputparam arg - ¶ @ Øè֦ɹºüÍÅ Á½êÌü͹ºÌµ¢ðwèD - "TERMINATE", "PAUSE", "WAIT"̤¿¢¸ê©ðwèD + ¶@Øè֦ɹºüÍÅ Á½êÌü͹ºÌµ¢ðwèD + "TERMINATE", "PAUSE", "WAIT"̤¿¢¸ê©ðwèD version - o[W¶ñðÔ· - - status VXeÌóÔ(active/sleep)ðÔ·D + Julius Éo[W¶ñðÔ³¹éD -GRAMMAR COMMANDS - ¶@EPêF¯pÌR}hÅ·F + status + Julius ©çVXeÌóÔ (active / sleep) ðñ³¹éD + ¶@EPêF¯ÖA changegram prefix - F¯¶@ð "prefix.dfa" Æ "prefix.dict" ÉØèÖ¦éDJ g - vZXà̶@ÍSÄÁ³êCwè³ê½¶@Éu«·íéD + F¯¶@ð "prefix.dfa" Æ "prefix.dict" ÉØèÖ¦éDJgv + ZXà̶@ÍSÄÁ³êCwè³ê½¶@Éu«·íéD addgram prefix - F¯¶@ÆµÄ "prefix.dfa" Æ "prefix.dict" ðÇÁ·éD + F¯¶@ÆµÄ "prefix.dfa" Æ "prefix.dict" ðJgvZXÉÇ + Á·éD - deletegram ID - wè³ê½IDÌF¯¶@ðí·éDwè¶@ÍJgvZX©ç - í³êéDID Í Julian ©ççêé GRAMINFO àÉLq³êÄ ¢ - éD - - deactivategram ID - wè³ê½IDÌF¯¶@ðCêIÉOFFÉ·éDOFFɳ꽶@ÍF - ¯©çêIÉO³êéD±ÌOFFɳ꽶@Í Julius à É - Û³êC "activategram" R}hÅÄÑ ON ÉÅ«éD + deletegram gramlist + JgvZX©çwè³ê½¶@ðí·éD¶@ÌwèÍC¶ @¼ + iÇÁÌ prefixj©C é¢Í Julius ©ççêé GRAMINFOàÉ é + ¶@ ID Åwè·éD¡Ì¶@ðíµ½¢êÍC¶@¼àµÍIDð + J }ÅæØÁÄ¡wè·éiIDƶ@¼ª¬ÝµÄàæ¢jD + + deactivategram gramlist + JgvZXÌwè³ê½¶@ðêIɳøÉ·éD³øÉ³ê½ + ¶@ÍCGWàÉÛ³ê½ÜÜCF¯©çÍêIÉO³ê + éD ³ø»³ê½¶@Í activategram ÅÄÑLø»Å«éD + + ¶@ÌwèÍC¶@¼iÇÁÌ prefixj©C é¢ÍJulius ©çç + êé GRAMINFOàÉ é¶@ ID Åwè·éD¡ ̶@ðwèµ½¢ê + ÍC¶@¼àµÍIDðJ}ÅæØÁÄ ¡wè·éiIDƶ@¼ª¬ + ݵÄàæ¢jD + + activategram gramlist + JgvZXųø»³êÄ¢é¶@ðLø»·éD ¶@ÌwèÍC + ¶@¼iÇÁÌ prefixj©C é¢ÍJulius ©çç êé GRAMINFOà + É é¶@ ID Åwè·éD¡ ̶@ðwèµ½¢êÍC¶@¼àµ + ÍIDðJ}ÅæØÁÄ ¡wè·éiIDƶ@¼ª¬ÝµÄàæ + ¢jD - activategram ID - êIÉ OFF ÉÈÁÄ¢½¶@ðÄÑ ON É·éD + addword grammar_name_or_id dictfile + dictfile ÌgðCJgvZXÌwè³ê½¶@ÉÇÁ·éD syncgram - XV³ê½¶@ð¦K·éD + addgram â deletegram ÈÇÉæé¶@ÌXVð¦És¤D ¯úmFp + Å éD + + vZXÖAÌR}h + Julius-4 ÅÍ¡f̯F¯ªs¦éD±ÌêC F¯vZX + ("-SR" Åwè³ê½F¯CX^X) ²ÆÉW [NCAg© + çìðs¤±ÆªÅ«éD + + NCAg©çÍÇê©êÂÌvZXªuJgvZXvÆµÄ è + ÄçêéD¶@ÖA̽ßÍJgvZXÉεÄsíêéD -COMMANDS (PROCESS) listprocess - »ÝGWÉ éF¯vZXÌêð¦·D + Julius É»ÝGWÉ éF¯vZXÌêðM³¹éD - currentprocess name - R}hðÀs·éÎÛÌJgvZXðwè³ê½àÌÉØÖ¦ - éD + currentprocess procname + JgvZXðwè³ê½¼OÌvZXÉØèÖ¦éD shiftprocess - R}hðÀs·éÎÛÌJgvZXðÉØÖ¦éD + JgvZXðzÂØèÖ¦·éDÄÎêé½ÑÉ»ÌÌvZXÉ + JgvZXªØèÖíéD addprocess jconffile - GWÉF¯vZXðÇÁ·éDjconffile ÍPÂÌ LM ÝèðÜ - ÞàÌÅCT[o¤©ç©¦éKvªLéDÇÁ³ê½ LM ¨æÑF¯ - vZXÍ jconffile ̼OªvZX¼ÆÈéD - - delprocess name - wè³ê½¼OÌF¯vZXðGW©çí·éD + GWÉF¯vZXðV½ÉÇÁ·éD^¦é jconffile ÍCÊíÌ + àÌÆá¢C ½¾êíÞÌ LM ÝèðÜÞàÌÅ éKvª éDܽC + ÀÛÉçêé ÌÍpX¼ÌÝÅ èCt@CÇÝÝÍJulius¤Ås + íêé½ßC t@CpXÍ Julius ©ç©¦éêðwè·éKvªL + éD + + ÇÁ³ê½ LM ¨æÑF¯vZXÍCjconffile ̼Oª vZX¼Æ + ÈéD + + delprocess procname + wè³ê½¼OÌF¯vZXðGW©çí·éD + + deactivateprocess procname + wè³ê½¼OÌF¯vZXðCêIɳø»·éD³ø»³ê ½v + ZXÍñÈ~ÌüÍÉεÄF¯©çXLbv³êéD ³ø»³ + ê½vZXÍ activateprocess Å ÄÑLø»Å«éD - activateprocess name - ÈOÉê³ø»³ê½vZXðÄxLø»·éD + activateprocess procname + wè³ê½¼OÌF¯vZXðLø»·éD - deactivateprocess name - wè³ê½vZXðê³ø»·éD - - addword gram_id dictfile - dictfileÌPêðCJgvZXÌ gram_id ̶@É Ç Á · - éDi¶@EPêF¯ÌÝj - -EXAMPLE +EXAMPLES Julius ©çÌbZ[WÍ "> " ðsÌæªÉ¯ĻÌÜÜWoÍÉoÍ - ³êÜ·DoÍàeÌÚ×É¢ÄÍCÖA¶ðQƵľ³¢D - - (1) Julius ðW [[hÅzXg host ÅN®·éD - % julius -C xxx.jconf ... -input mic -module - - (2) (¼Ì[Å) jcontrol ðN®µCÊMðJn·éD - % jcontrol host - connecting to host:10500...done - > <GRAMINFO> - > # 0: [active] 99words, 42categories, 135nodes (new) - > </GRAMINFO> - > <GRAMINFO> - > # 0: [active] 99words, 42categories, 135 nodes - > Grobal: 99words, 42categories, 135nodes - > </GRAMINFO> - > <INPUT STATUS="LISTEN" TIME="1031583083"/> - -> pause - -> resume - > <INPUT STATUS="LISTEN" TIME="1031583386"/> - -> addgram test - .... + ³êÜ·DȺÍÀsáÅ·D + ãLÌæ¤ÉµÄ Julius ðW [[hÅN®µ½ãC jcontrol ð» + ÌzXg¼ðwèµÄN®µÜ·D + ¹ºüÍðs¦ÎCCxgàeâʪ jcontrol ¤ÉM³êÜ·D + jcontrol ÉεÄR}hðüÍ·éiÅãÉ Enter ð·jÆC Julius + ÉR}hªM³êCJulius ª§ä³êÜ·D + Úµ¢vgRÉ¢ÄÍCÖA¶ðQƵľ³¢D SEE ALSO - julius(1) + julius ( 1 ) -BUGS - oOñEâ¢í¹ERg È Ç Í julius-info at lists.source- - forge.jp ÜŨ袵ܷD +COPYRIGHT + Copyright (c) 1991-2008 såw Í´¤º -VERSION - This version is provided as part of Julius-3.5.1. + Copyright (c) 1997-2000 îñU»Æ¦ï(IPA) -COPYRIGHT - Copyright (c) 2002-2007 såw Í´¤º - Copyright (c) 2002-2005 ÞÇæ[ÈwZpåw@åw 줺 - Copyright (c) 2005-2007 ¼Ã®HÆåw JuliusJ`[ + Copyright (c) 2000-2008 ÞÇæ[ÈwZpåw@åw 줺 -AUTHORS - WL (¼Ã®HÆåw) ªÀµÜµ½D + Copyright (c) 2005-2008 ¼Ã®HÆåw JuliusJ`[ LICENSE Julius ÌgpøɶܷD -4.3 Berkeley Distribution LOCAL JCONTROL(1) + 10/02/2008 JCONTROL(1) Index: julius4/jcontrol/00readme.txt diff -u julius4/jcontrol/00readme.txt:1.2 julius4/jcontrol/00readme.txt:1.3 --- julius4/jcontrol/00readme.txt:1.2 Tue Dec 18 23:08:22 2007 +++ julius4/jcontrol/00readme.txt Thu Oct 2 17:23:47 2008 @@ -1,162 +1,173 @@ + jcontrol + JCONTROL(1) JCONTROL(1) NAME - jcontrol - simple program to control Julius module via API + jcontrol + - a sample module client written in C SYNOPSIS - jcontrol hostname [portnum] + jcontrol {hostname} [portnum] DESCRIPTION jcontrol is a simple console program to control julius running on other - host via network API. It can send command to Julius, and receive mes- - sages from Julius. + host via network API. It can send command to Julius, and receive + messages from Julius. - When invoked, jcontrol tries to connect to Julius running in "module - mode" on specified hostname. After connection established, jcontrol + When invoked, jcontrol tries to connect to Julius running in "module + mode" on specified hostname. After connection established, jcontrol waits for user commands from standard input. - When user types a command to jcontrol, it will be interpreted and cor- - responding API command will be sent to Julius. When a message is + When user types a command to jcontrol, it will be interpreted and cor- + responding API command will be sent to Julius. When a message is received from Julius, its content will be output to standard output. - For details about the API, see the related documents. + For the details about the API, see the related documents. OPTIONS - hostname - Host name where Julius is runnning in module mode. - - portnum - (optional) port number. (default=10500) + hostname + Host name where Julius is runnning in module mode. -COMMANDS (COMMON) - After startup, the command string below can be input from stdin. + portnum + port number (default: 10500) - pause Stop recognition, cutting speech input at that point if any. +COMMANDS + jcontrol interprets commands from standard input. Below is a list of + all commands. + + 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 - Stop recognition, discarding the current speech input if any. + Same as pause, but discard the current speech input when received + command in the middle of recognition process. - resume (re)start recognition. + 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: "TERMI- - NATE", "PAUSE", "WAIT" + 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 - Return version number. - - status Return trigger status (active/sleep). + Tell Julius to send version description string. -COMMANDS (GRAMMAR) - Below are Grammar-related command strings: + status + Tell Julius to send the system status (active / sleep) + Grammar handling changegram prefix - Change recognition grammar to "prefix.dfa" and "prefix.dict". - All the current grammars used in Julius are deleted and replaced - to the specifed grammar. + 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 - tell Julius to use additional grammar "prefix.dfa" and "pre- - fix.dict" for recognition. The specified grammars are added to - the list of recognition grammars, and then activated. - - deletegram ID - tell Julius to delete grammar of the specified "ID". The - deleted grammar will be erased from Julius. The grammar "ID" is - sent from Julius at each time grammar information has changed. - - deactivategram ID - tell Julius to de-activate a grammar. The specified grammar - will become temporary OFF, and skipped from recognition process. - These de-activated grammars are kept in Julius, and can be acti- - vated by "activategram" command. + Send a new grammar "prefix.dfa" and "prefix.dict" and add it to the + current grammar. - activategram ID - tell Julius to activate previously de-activated 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_id dictfile + Add the recognition word entries in the specified dictfile to the + specified grammar on current process. syncgram - tell Julius to update grammar status now. + Force synchronize grammar status, like unix command "sync". + + Process management + 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. -COMMANDS (PROCESS) listprocess - returns list of existing recognition process. + Tell Julius to send the list of existing recognition process. - currentprocess name - switches the currently manipulating process to it. + currentprocess procname + Switch the current process to the process specified by the name. shiftprocess - rotate the curenttly manipulating process. + Rotate the current process. At each call the current process will be + changed to the next one. addprocess jconffile - adds a set of LM process SR process to the running engine. The - jconf file should contain only one LM specification, and can be - an accessible path at the server. The new processes will have - the name of the jconf file. - - delprocess name - removes a SR process with specified name from engine. - - activateprocess name - enables a SR process previously deactivated and turn it into - live status. - - deactivateprocess name - disables a specified SR process and turn it into dead status. - - addword gram_id dictfile - Send words in the dictfile to engine and add them to the grammar - specified by gram_id at current process. - -EXAMPLE - The dump messages from Julius are output to tty with prefix "> " - appended to each line. - - See related documents for more details. - - (1) start Julius in module mode at host 'host'. - % julius -C xxx.jconf ... -input mic -module - - (2) (on other tty) start jcontrol, and start communication. - % jcontrol host - connecting to host:10500...done - > <GRAMINFO> - > # 0: [active] 99words, 42categories, 135nodes (new) - > </GRAMINFO> - > <GRAMINFO> - > # 0: [active] 99words, 42categories, 135 nodes - > Grobal: 99words, 42categories, 135nodes - > </GRAMINFO> - > <INPUT STATUS="LISTEN" TIME="1031583083"/> - -> pause - -> resume - > <INPUT STATUS="LISTEN" TIME="1031583386"/> - -> addgram test - .... - + 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. + +EXAMPLES + The dump messages from Julius are output to tty with prefix ">" + appended to each line. Julius can be started in module mode like this: + jcontrolcan 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 manuals for the + specification of module mode. SEE ALSO - julius(1) - -VERSION - This version is provided as part of Julius-4.0. + julius ( 1 ) COPYRIGHT - Copyright (c) 2002-2007 Kawahara Lab., Kyoto University - Copyright (c) 2002-2005 Shikano Lab., Nara Institute of Science and + 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-2007 Julius project team, Nagoya Institute of Tech- - nology -AUTHORS - LEE Akinobu (Nagoya Institute of Technology, Japan) - contact: juliu****@lists***** + Copyright (c) 2005-2008 Julius project team, Nagoya Institute of + Technology LICENSE - Same as Julius. + The same as Julius. -4.3 Berkeley Distribution LOCAL JCONTROL(1) + 10/02/2008 JCONTROL(1) Index: julius4/jcontrol/jcontrol.man diff -u julius4/jcontrol/jcontrol.man:1.2 julius4/jcontrol/jcontrol.man:removed --- julius4/jcontrol/jcontrol.man:1.2 Tue Dec 18 23:08:22 2007 +++ julius4/jcontrol/jcontrol.man Thu Oct 2 17:23:47 2008 @@ -1,143 +0,0 @@ -.de Sp -.if t .sp .5v -.if n .sp -.. -.de Ip -.br -.ie \\n.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 -.. -.TH JCONTROL 1 LOCAL -.UC 6 -.SH NAME -jcontrol - simple program to control Julius module via API -.SH SYNOPSIS -.B jcontrol hostname [portnum] -.SH DESCRIPTION -.I jcontrol -is a simple console program to control -.I julius -running on other host via network API. It can send command to Julius, -and receive messages from Julius. -.PP -When invoked, jcontrol tries to connect to Julius running in -"module mode" on specified hostname. After connection established, -jcontrol waits for user commands from standard input. -.PP -When user types -a command to jcontrol, it will be interpreted and corresponding API -command will be sent to Julius. When a message is received from -Julius, its content will be output to standard output. -.PP -For details about the API, see the related documents. -.SH "OPTIONS" -.Ip hostname -Host name where Julius is runnning in module mode. -.Ip portnum -(optional) port number. (default=10500) -.SH "COMMANDS (COMMON)" -After startup, the command string below can be input from stdin. -.Ip "pause" -Stop recognition, cutting speech input at that point if any. -.Ip "terminate" -Stop recognition, discarding the current speech input if any. -.Ip "resume" -(re)start recognition. -.Ip "inputparam arg" -Tell Julius how to deal with speech input in case grammar is changed -just when recognition is running. Specify one: "TERMINATE", "PAUSE", "WAIT" -.Ip "version" -Return version number. -.Ip "status" -Return trigger status (active/sleep). -.SH "COMMANDS (GRAMMAR)" -Below are Grammar-related command strings: -.Ip "changegram prefix" -Change recognition grammar to "prefix.dfa" and "prefix.dict". -All the current grammars used in Julius are deleted and replaced to -the specifed grammar. -.Ip "addgram prefix" -tell Julius to use additional grammar "prefix.dfa" and "prefix.dict" -for recognition. -The specified grammars are added to the list of recognition grammars, -and then activated. -.Ip "deletegram ID" -tell Julius to delete grammar of the specified "ID". -The deleted grammar will be erased from Julius. -The grammar "ID" is sent from Julius at each time grammar information -has changed. -.Ip "deactivategram ID" -tell Julius to de-activate a grammar. The specified grammar will become -temporary OFF, and skipped from recognition process. These de-activated -grammars are kept in Julius, and can be activated by -"activategram" command. -.Ip "activategram ID" -tell Julius to activate previously de-activated grammar. -.Ip "syncgram" -tell Julius to update grammar status now. -.SH "COMMANDS (PROCESS)" -.Ip "listprocess" -returns list of existing recognition process. -.Ip "currentprocess name" -switches the currently manipulating process to it. -.Ip "shiftprocess" -rotate the curenttly manipulating process. -.Ip "addprocess jconffile" -adds a set of LM process SR process to the running engine. The jconf -file should contain only one LM specification, and can be an -accessible path at the server. The new processes will have the name of -the jconf file. -.Ip "delprocess name" -removes a SR process with specified name from -engine. -.Ip "activateprocess name" -enables a SR process previously deactivated and turn it into live status. -.Ip "deactivateprocess name" -disables a specified SR process and turn it into dead status. -.Ip "addword gram_id dictfile" -Send words in the dictfile to engine and add them to the grammar -specified by gram_id at current process. -.SH "EXAMPLE" -The dump messages from Julius are output to tty with prefix -"> " appended to each line. -.PP -See related documents for more details. -.PP -(1) start Julius in module mode at host 'host'. - % julius -C xxx.jconf ... -input mic -module -.PP -(2) (on other tty) start jcontrol, and start communication. - % jcontrol host - connecting to host:10500...done - > <GRAMINFO> - > # 0: [active] 99words, 42categories, 135nodes (new) - > </GRAMINFO> - > <GRAMINFO> - > # 0: [active] 99words, 42categories, 135 nodes - > Grobal: 99words, 42categories, 135nodes - > </GRAMINFO> - > <INPUT STATUS="LISTEN" TIME="1031583083"/> - -> pause - -> resume - > <INPUT STATUS="LISTEN" TIME="1031583386"/> - -> addgram test - .... - -.SH "SEE ALSO" -julius(1) -.SH VERSION -This version is provided as part of Julius-4.0. -.SH COPYRIGHT -Copyright (c) 2002-2007 Kawahara Lab., Kyoto University -.br -Copyright (c) 2002-2005 Shikano Lab., Nara Institute of Science and Technology -.br -Copyright (c) 2005-2007 Julius project team, Nagoya Institute of Technology -.SH AUTHORS -LEE Akinobu (Nagoya Institute of Technology, Japan) -.br -contact: juliu****@lists***** -.SH LICENSE -Same as -.I Julius. Index: julius4/jcontrol/jcontrol.man.ja diff -u julius4/jcontrol/jcontrol.man.ja:1.2 julius4/jcontrol/jcontrol.man.ja:removed --- julius4/jcontrol/jcontrol.man.ja:1.2 Tue Dec 18 23:08:22 2007 +++ julius4/jcontrol/jcontrol.man.ja Thu Oct 2 17:23:47 2008 @@ -1,136 +0,0 @@ -.de Sp -.if t .sp .5v -.if n .sp -.. -.de Ip -.br -.ie \\n.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 -.. -.TH JCONTROL 1 LOCAL -.UC 6 -.SH NAME -jcontrol - simple program to control Julius module via API -.SH SYNOPSIS -.B jcontrol hostname [portnum] -.SH DESCRIPTION -.I jcontrol -は,他のホストで動作中の -.I julius -を,APIを介してコントロールする簡単なコンソールプログラムです. -Julius へのコマンド送信,およびJuliusからのメッセージ受信を行うことが -できます. -.PP -起動後,jcontrol は,指定ホスト上において「モジュールモード」で動作中の -Julius に対し,接続を試みます.接続確立後,jcontrol はユー -ザーからのコマンド入力待ち状態となります. -.PP -jcontrol はユーザーが入力したコマンドを解釈し,対応するAPIコマンドを -Julius へ送信します.また,Julius から認識結果や入力トリガ情報などのメッ -セージが送信されてきたときは,その内容を標準出力へ書き出します. -.PP -APIの詳細については関連文書をご覧下さい. -.SH "OPTIONS" -.Ip hostname -接続先のホスト名(Julius がモジュールモードで動作中) -.Ip portnum -(optional) ポート番号 (default=10500) -.SH "COMMANDS (COMMON)" -起動後,jcontrol に対して以下のコマンド文字列を標準入力から入力できます. -.Ip "pause" -認識を中断する.認識途中の場合,そこで入力を中断して第2パスまで認識が -終わってから中断する. -.Ip "terminate" -認識を中断する.認識途中の場合,入力を破棄して即時中断する. -.Ip "resume" -認識を再開. -.Ip "inputparam arg" -文法切り替え時に音声入力であった場合の入力中音声の扱いを指定. -"TERMINATE", "PAUSE", "WAIT"のうちいずれかを指定. -.Ip "version" -バージョン文字列を返す -.Ip "status" -システムの状態(active/sleep)を返す. -.SH "GRAMMAR COMMANDS" -文法・単語認識用のコマンドです: -.Ip "changegram prefix" -認識文法を "prefix.dfa" と "prefix.dict" に切り替える. -カレントプロセス内の文法は全て消去され,指定された文法に置き換わる. -.Ip "addgram prefix" -認識文法として "prefix.dfa" と "prefix.dict" を追加する. -.Ip "deletegram ID" -指定されたIDの認識文法を削除する. -指定文法はカレントプロセスから削除される.ID は Julian から送られる GRAMINFO -内に記述されている. -.Ip "deactivategram ID" -指定されたIDの認識文法を,一時的にOFFにする.OFFにされた文法は認識処理 -から一時的に除外される.このOFFにされた文法は Julius 内に保持され, -"activategram" コマンドで再び ON にできる. -.Ip "activategram ID" -一時的に OFF になっていた文法を再び ON にする. -.Ip "syncgram" -更新された文法を即時適応する. -.SH "COMMANDS (PROCESS)" -.Ip "listprocess" -現在エンジンにある認識プロセスの一覧を示す. -.Ip "currentprocess name" -コマンドを実行する対象のカレントプロセスを指定されたものに切替える. -.Ip "shiftprocess" -コマンドを実行する対象のカレントプロセスを順に切替える. -.Ip "addprocess jconffile" -エンジンに認識プロセスを追加する.jconffile は1つの LM 設定を含む -もので,サーバ側から見える必要が有る.追加された LM および認識プロセス -は jconffile の名前がプロセス名となる. -.Ip "delprocess name" -指定された名前の認識プロセスをエンジンから削除する. -.Ip "activateprocess name" -以前に一時無効化されたプロセスを再度有効化する. -.Ip "deactivateprocess name" -指定されたプロセスを一時無効化する. -.Ip "addword gram_id dictfile" -dictfile中の単語を,カレントプロセスの gram_id の文法に追加する. -(文法・単語認識のみ) -.SH "EXAMPLE" -Julius からのメッセージは "> " を行の先頭につけて -そのまま標準出力に出力されます. -出力内容の詳細については,関連文書を参照してください. -.PP -(1) Julius をモジュールモードでホスト host で起動する. - % julius -C xxx.jconf ... -input mic -module -.PP -(2) (他の端末で) jcontrol を起動し,通信を開始する. - % jcontrol host - connecting to host:10500...done - > <GRAMINFO> - > # 0: [active] 99words, 42categories, 135nodes (new) - > </GRAMINFO> - > <GRAMINFO> - > # 0: [active] 99words, 42categories, 135 nodes - > Grobal: 99words, 42categories, 135nodes - > </GRAMINFO> - > <INPUT STATUS="LISTEN" TIME="1031583083"/> - -> pause - -> resume - > <INPUT STATUS="LISTEN" TIME="1031583386"/> - -> addgram test - .... - -.SH "SEE ALSO" -julius(1) -.SH BUGS -バグ報告・問い合わせ・コメントなどは -juli****@lists***** までお願いします. -.SH VERSION -This version is provided as part of Julius-3.5.1. -.SH COPYRIGHT -Copyright (c) 2002-2007 京都大学 河原研究室 -.br -Copyright (c) 2002-2005 奈良先端科学技術大学院大学 鹿野研究室 -.br -Copyright (c) 2005-2007 名古屋工業大学 Julius開発チーム -.SH AUTHORS -李 晃伸 (名古屋工業大学) が実装しました. -.SH LICENSE -.I Julius -の使用許諾に準じます.