This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
galateatalk [2011/10/08 23:05] – nishimotz | galateatalk [2011/10/09 18:44] – nishimotz | ||
---|---|---|---|
Line 337: | Line 337: | ||
see [[project: | see [[project: | ||
- | ===== Mac build (32bit, without ports) ===== | + | ===== Mac build (32bit, euc-jp, without ports) ===== |
since 2011-10-08 | since 2011-10-08 | ||
+ | |||
+ | * MacOSX 10.6.8 | ||
http:// | http:// | ||
Line 356: | Line 358: | ||
< | < | ||
$ tar xvfz chasen-2.4.4.tar.gz | $ tar xvfz chasen-2.4.4.tar.gz | ||
+ | $ cd chasen-2.4.4 | ||
+ | $ make distclean | ||
+ | $ CFLAGS=' | ||
+ | $ sudo make install | ||
+ | $ file / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | chaone (from tokuteicorpus site) | ||
+ | |||
+ | * to use the system libraries for XML, chaone was build as the 64bit binary. | ||
+ | |||
+ | < | ||
+ | $ tar xvfz chaone-1.3.3.tar.gz | ||
+ | $ cd chaone-1.3.3 | ||
+ | $ CFLAGS=' | ||
+ | $ make | ||
+ | $ chmod 755 install-sh | ||
+ | $ sudo make install | ||
+ | $ file / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | The installer seems forgetting to copy a file.. | ||
+ | |||
+ | < | ||
+ | $ sudo cp ap_pos_rule.xml / | ||
+ | </ | ||
+ | |||
+ | prepare speakers and unidic-chasen: | ||
+ | |||
+ | < | ||
+ | $ ls ~/ | ||
+ | female01 male01 | ||
+ | </ | ||
+ | < | ||
+ | $ ls ~/ | ||
+ | ChangeLog chadic.lex grammar.cha table.cha | ||
+ | cforms.cha chasenrc license.txt | ||
+ | chadic.da chasenrc_chaone manual.pdf | ||
+ | chadic.dat ctypes.cha matrix.cha | ||
+ | </ | ||
+ | |||
+ | copy and build [[http:// | ||
+ | |||
+ | < | ||
+ | $ git clone https:// | ||
+ | $ cd jagtalk | ||
+ | $ make -f Makefile.MACOSX | ||
+ | </ | ||
+ | |||
+ | check the files below (modify them if necessary): | ||
+ | |||
+ | < | ||
+ | $ cat test-jagtalk-macosx.sh | ||
+ | cat 00-testcmd | ./jagtalk -C jagtalk-macosx.conf | ||
+ | </ | ||
+ | < | ||
+ | $ cat 00-testcmd | ||
+ | set Text = 123 | ||
+ | set SaveWAV = _out.wav | ||
+ | set Run = EXIT | ||
+ | </ | ||
+ | < | ||
+ | $ cat jagtalk-macosx.conf | ||
+ | # configuratiuon file for gtalk (GalateaTalk) | ||
+ | # macosx: http:// | ||
+ | |||
+ | CHASEN: / | ||
+ | CHAONE: / | ||
+ | CHASEN-RC: ./ | ||
+ | |||
+ | # default for numbers and alphabets | ||
+ | NUMBER: DECIMAL | ||
+ | ALPHABET: WORD | ||
+ | DATE: YMD | ||
+ | TIME: hms | ||
+ | |||
+ | # dictionary | ||
+ | DICTIONARY: ./ | ||
+ | |||
+ | # automatic play of synthesized speech | ||
+ | AUTO-PLAY: NO | ||
+ | |||
+ | # time delay [msec] for autuomatic play | ||
+ | AUTO-PLAY-DELAY: | ||
+ | |||
+ | # file of phoneme list | ||
+ | PHONEME-LIST: | ||
+ | |||
+ | # parameter files for each speaker | ||
+ | SPEAKER-ID: female01 | ||
+ | GENDER: female | ||
+ | DUR-TREE-FILE: | ||
+ | PIT-TREE-FILE: | ||
+ | MCEP-TREE-FILE: | ||
+ | DUR-MODEL-FILE: | ||
+ | PIT-MODEL-FILE: | ||
+ | MCEP-MODEL-FILE: | ||
+ | </ | ||
+ | |||
+ | chasenrc-euc-jp-macosx contains EUC-JP charactors. | ||
+ | |||
+ | < | ||
+ | $ cat chasenrc-euc-jp-macosx | ||
+ | ;; | ||
+ | ;; chasenrc for unidic / chaOne | ||
+ | ;; | ||
+ | (GRAMMAR / | ||
+ | (DADIC chadic) | ||
+ | |||
+ | (UNKNOWN_POS (名詞 普通名詞 一般)) | ||
+ | |||
+ | (OUTPUT_FORMAT "< | ||
+ | |||
+ | (OUTPUT_COMPOUND " | ||
+ | |||
+ | (BOS_STRING "< | ||
+ | (EOS_STRING "</ | ||
+ | |||
+ | (DEF_CONN_COST 10000) | ||
+ | (POS_COST | ||
+ | ((*) 1) | ||
+ | ((UNKNOWN) 30000) | ||
+ | ) | ||
+ | |||
+ | (CONN_WEIGHT 1) | ||
+ | (MORPH_WEIGHT 1) | ||
+ | (COST_WIDTH | ||
+ | |||
+ | (ANNOTATION | ||
+ | (("<" | ||
+ | ((" | ||
+ | ) | ||
+ | </ | ||
+ | |||
+ | run the test script, open _out.wav using QuickTime Player. You will hear 'hyaku ni juu san' (123 in Japanese). | ||
+ | |||
+ | < | ||
+ | $ sh test-jagtalk-macosx.sh | ||
</ | </ | ||