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
Last revisionBoth sides next revision
project:jagtalk [2010/11/13 23:04] nishimotzproject:jagtalk [2010/12/24 14:45] 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 10: Line 12:
 $ ./configure --enable-utf8 $ ./configure --enable-utf8
 $ make $ make
-./gtalk -jagtalk.conf+sh test-jagtalk.sh
 </code> </code>
  
-===== Mac support =====+or you can run:
  
-see also [[:galateatalk]]+<code> 
 +$ ./jagtalk -C jagtalk.conf 
 +</code>
  
-2010-11-13 +and type "set Text = 123" (enter) "set Speak = NOW" (enter).
  
-currently, audio device is disabled.+You will hear "hyaku niju san".
  
-<code> +  * log files and gtalk-eucjp.dic are still EUC-JP, currently.
-$ autoconf +
-$ sh configure --build=i386-apple-freebsd --enable-utf8 --enable-macosx +
-</code>+
  
-Makefile should be modified as follows:+===== PortAudio support =====
  
-<code> +since 2010-12-24
-CFLAGS -DPACKAGE_NAME=\"jagtalk\" -DPACKAGE_TARNAME=\"jagtalk\" -DPACKAGE_VERSION=\"1.5.1\" -DPACKAGE_STRING=\"jagta\ +
-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> +unfinished.
-$ make +
-</code>+
  
-https://github.com/nishimotz/jagtalk/blob/master/jagtalk-macosx.conf+  * USE_PORTAUDIO macro is defined. 
 +  * do_output.c switches using the macro. 
 +  * do_output_portaudio.c is not implemented.
  
-https://github.com/nishimotz/jagtalk/blob/master/chasenrc-euc-jp-macosx+notes: 
 + 
 +  * [[http://ja.nishimotz.com/portaudio]] in Japanese
  
 <code> <code>
-./jagtalk -C jagtalk-macosx.conf  +autoconf 
-rep Run = LIVE +$ make clean 
-set Text = 123 +$ sh configure --enable-utf8 --enable-portaudio --enable-da=no 
-rep Speak.stat PROCESSING +$ make
-Bus error+
 </code> </code>
  
-in the debug log below, "set Text 111" is the input from console.+===== Mac (Snow Leopard) support =====
  
 +using unidic-chasen1312_utf8-x64. see [[:galateatalk]]
  
-<code> +2010-11-14
-$ gdb jagtalk +
-GNU gdb 6.3.50-20050815 (Apple version gdb-1461) (Wed Dec 23 06:11:18 UTC 2009) +
-Copyright 2004 Free Software Foundation, Inc. +
-GDB is free software, covered by the GNU General Public License, and you are +
-welcome to change it and/or distribute copies of it under certain conditions. +
-Type "show copying" to see the conditions. +
-There is absolutely no warranty for GDB.  Type "show warranty" for details. +
-This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared libraries ... done+
  
-(gdb) run -C jagtalk-macosx.conf  +https://github.com/nishimotz/jagtalk/commit/2df30037817eaf4aa4ddc3338a5e1a217f9e0998
-Starting program: /Users/nishimotz/code/github/jagtalk/jagtalk -C jagtalk-macosx.conf +
-Reading symbols for shared libraries ++. done +
-rep Run = LIVE +
-set Text = 111 +
-rep Speak.stat = PROCESSING+
  
-Program received signal EXC_BAD_ACCESSCould not access memory. +currentlyaudio device is disabled.
-Reason: KERN_PROTECTION_FAILURE at address: 0x00000010 +
-0x0000a35f in make_breath () at make_breath.c:103 +
-103 hinshi = aphrase->mptail->hinshiID; +
-(gdb)  +
-(gdb) bt +
-#0  0x0000a35f in make_breath () at make_breath.c:103 +
-#1  0x000143e2 in text_analysis (text=0x2340b "111") at text.c:190 +
-#2  0x00007694 in setText (rel=0x23409 "=", val=0x2340b "111") at main.c:596 +
-#3  0x000085fe in main (argc=0, argv=0xbffff9f8) at main.c:994 +
-</code>+
  
-==== using unidic-eucjp-x64 ====+<del> 
 +$ autoconf 
 +$ sh configure --build=i386-apple-freebsd --enable-utf8 --enable-macosx 
 +</del>
  
-see [[:galateatalk]]+<code> 
 +$ make -f Makefile.MACOSX 
 +</code>
  
 <code> <code>
-echo "123" | chasen -r chasenrc-utf8-macosx | nkf -w +cat run-chasen-macosx.sh 
-<S> +#!/bin/sh 
-<W1 orth="1" kana="{イッ/イチ}" pron="{イッ/イチ}" pos="名詞-数詞" lForm="イチ" lemma="一" orthBase="1" pronBase="{イッ/イチ}" kanaBase="{イッ/イチ}" formBase="イチ" goshu="漢" iConType="N1" fType="チ促" fForm="{促音/基本}形" aType="2" aConType="C3">1</W1> +/opt/local/bin/nkf -wu /opt/local/bin/chasen -r chasenrc-utf8-macosx -/opt/local/bin/nkf -eu | /usr/local/bin/chaone -s gtalk --encoding EUC-JP | /usr/bin/tee _chasen.log 
-<W1 orth="2" kana="{ニ/ニイ}" pron="{ニ/ニー}" pos="名詞-数詞" lForm="ニ" lemma="二" orthBase="2" pronBase="{ニ/ニー}" kanaBase="{ニ/ニイ}" formBase="ニ" goshu="漢" fType="イ長添" fForm="{基本/長音添加}形" aType="1" aConType="C3">2</W1> + 
-<W1 orth="3" kana="サン" pron="サン" pos="名詞-数詞" lForm="サン" lemma="三" orthBase="3" pronBase="サン" kanaBase="サン" formBase="サン" goshu="漢" iConType="N3" aType="0" aConType="C3">3</W1> +$ head chasenrc-utf8-macosx 
-</S>+;; 
 +;;  chasenrc for unidic chaOne 
 +;; 
 +(GRAMMAR /Users/nishimotz/code/unidic-chasen1312_utf8-x64) 
 +(DADIC chadic) 
 +omitted. 
 + 
 +$ cat 00-testcmd 
 +set Text 
 +set SaveWAV _out.wav 
 +set Run EXIT
 </code> </code>
 +
  
 <code> <code>
-$ echo "123" | chasen -r chasenrc-utf8-macosx |chaone -s gtalk --encoding UTF-8 |nkf -w+$ echo "123"./run-chasen-macosx.sh
 <S> <S>
   <AP orth="123" pron="イッニサン" aType="3" silence="NON">   <AP orth="123" pron="イッニサン" aType="3" silence="NON">
Line 106: Line 98:
   </AP>   </AP>
 </S> </S>
 +</code>
 +
 +<code>
 +$ sh test-jagtalk-macosx.sh
 +* chasen start.
 +# of phonemes: 42
 +rep Run = LIVE
 +(omitted)
 +
 +$ 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