Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
project:jagtalk [2010/11/13 16:57] nishimotzproject:jagtalk [2010/12/24 14:46] (current) nishimotz
Line 1: Line 1:
 ====== jagtalk ====== ====== jagtalk ======
 +
 +Japanese: http://ja.nishimotz.com/project:jagtalk
  
 jagtalk is modified version of [[:galateatalk]]. jagtalk is modified version of [[:galateatalk]].
Line 8: Line 10:
  
 <code> <code>
-./configure --enable-utf8+autoconf 
 +$ make clean 
 +$ sh configure --enable-utf8
 $ make $ make
-./gtalk -jagtalk.conf+sh test-jagtalk.sh
 </code> </code>
  
-===== Mac support =====+or you can run:
  
-2010-11-13+<code> 
 +$ ./jagtalk -C jagtalk.conf 
 +</code>
  
-currentlyaudio device is disabled.+and type "set Text = 123" (enter) "set Speak = NOW" (enter). 
 + 
 +You will hear "hyaku niju san"
 + 
 +  * log files and gtalk-eucjp.dic are still EUC-JPcurrently. 
 + 
 +===== PortAudio support ===== 
 + 
 +since 2010-12-24 
 + 
 +unfinished. 
 + 
 +  * USE_PORTAUDIO macro is defined. 
 +  * do_output.c switches using the macro. 
 +  * do_output_portaudio.c is not implemented. 
 + 
 +notes: 
 + 
 +  * [[http://ja.nishimotz.com/portaudio]] in Japanese
  
 <code> <code>
 $ autoconf $ autoconf
-$ sh configure --build=i386-apple-freebsd --enable-utf8 --enable-macosx+$ make clean 
 +$ sh configure --enable-utf8 --enable-portaudio --enable-da=no 
 +$ make
 </code> </code>
  
-Makefile should be modified as follows:+===== Mac (Snow Leopard) support ===== 
 + 
 +using unidic-chasen1312_utf8-x64. see [[:galateatalk]] 
 + 
 +2010-11-14 
 + 
 +https://github.com/nishimotz/jagtalk/commit/2df30037817eaf4aa4ddc3338a5e1a217f9e0998 
 + 
 +currently, audio device is disabled. 
 + 
 +<del> 
 +$ autoconf 
 +$ sh configure --build=i386-apple-freebsd --enable-utf8 --enable-macosx 
 +</del>
  
 <code> <code>
-CFLAGS -DPACKAGE_NAME=\"jagtalk\" -DPACKAGE_TARNAME=\"jagtalk\" -DPACKAGE_VERSION=\"1.5.1\" -DPACKAGE_STRING=\"jagta\ +$ make -f Makefile.MACOSX
-lk\ 1.5.1\" -DPACKAGE_BUGREPORT=\"nishimotz@gmail.com\" -DPACKAGE_URL=\"\" -DUTF8=1 -DHAVE_LIBICONV=1 -DMACOSX=1 -DAUTO\ +
-_DA=1 -DWORDS_LITTLEENDIAN=1 -arch i386 -g+
 </code> </code>
  
 <code> <code>
-make+cat run-chasen-macosx.sh 
 +#!/bin/sh 
 +/opt/local/bin/nkf -wu | /opt/local/bin/chasen -r chasenrc-utf8-macosx -i w | /opt/local/bin/nkf -eu | /usr/local/bin/chaone -s gtalk --encoding EUC-JP | /usr/bin/tee _chasen.log 
 + 
 +$ head chasenrc-utf8-macosx 
 +;; 
 +;;  chasenrc for unidic / chaOne 
 +;; 
 +(GRAMMAR /Users/nishimotz/code/unidic-chasen1312_utf8-x64) 
 +(DADIC chadic) 
 +omitted. 
 + 
 +$ cat 00-testcmd 
 +set Text = 1 
 +set SaveWAV = _out.wav 
 +set Run = EXIT
 </code> </code>
 +
  
 <code> <code>
-$ ./jagtalk -jagtalk-macosx.conf +echo "123"./run-chasen-macosx.sh 
 +<S> 
 +  <AP orth="123" pron="イッニサン" aType="3" silence="NON"> 
 +    <W2 orth="123" pos="名詞-普通名詞-一般" pron="イッニサン" aType="3" aConType="C3"> 
 +      <W1 orth="1" kana="イッ" pron="イッ" pos="名詞-数詞" lForm="イチ" lemma="一" orthBase="1" pronBase="イッ" kanaBase="イッ" formBase="イチ" goshu="漢" iConType="N1" fType="チ促" fForm="促音形" aConType="C3" aType="2"/> 
 +      <W1 orth="2" kana="ニ" pron="ニ" pos="名詞-数詞" lForm="ニ" lemma="二" orthBase="2" pronBase="ニ" kanaBase="ニ" formBase="ニ" goshu="漢" fType="イ長添" fForm="基本形" aConType="C3" aType="1"/> 
 +      <W1 orth="3" kana="サン" pron="サン" pos="名詞-数詞" lForm="サン" lemma="三" orthBase="3" pronBase="サン" kanaBase="サン" formBase="サン" goshu="漢" iConType="N3" aConType="C3" aType="0"/> 
 +    </W2> 
 +  </AP> 
 +</S> 
 +</code> 
 + 
 +<code> 
 +$ sh test-jagtalk-macosx.sh 
 +* chasen start. 
 +# of phonemes: 42
 rep Run = LIVE rep Run = LIVE
-set Text = 123 +(omitted) 
-rep Speak.stat = PROCESSING + 
-Bus error+$ ls _out.* 
 +_out.wav        _out.wav.info
 </code> </code>
  
project/jagtalk.txt · Last modified: 2010/12/24 14:46 by nishimotz
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0