project:jagtalk
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
project:jagtalk [2010/11/13 23:04] – nishimotz | project:jagtalk [2010/12/24 14:46] (current) – nishimotz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== jagtalk ====== | ====== jagtalk ====== | ||
+ | |||
+ | Japanese: http:// | ||
jagtalk is modified version of [[: | jagtalk is modified version of [[: | ||
Line 8: | Line 10: | ||
< | < | ||
- | $ ./configure --enable-utf8 | + | $ autoconf |
+ | $ make clean | ||
+ | $ sh configure --enable-utf8 | ||
$ make | $ make | ||
- | $ ./ | + | $ sh test-jagtalk.sh |
</ | </ | ||
- | ===== Mac support ===== | + | or you can run: |
- | see also [[: | + | < |
+ | $ ./jagtalk -C jagtalk.conf | ||
+ | </ | ||
- | 2010-11-13 | + | and type "set Text = 123" (enter) "set Speak = NOW" (enter). |
- | currently, audio device is disabled. | + | You will hear "hyaku niju san". |
- | < | + | * log files and gtalk-eucjp.dic are still EUC-JP, currently. |
- | $ autoconf | + | |
- | $ sh configure | + | |
- | </ | + | |
- | Makefile should be modified as follows: | + | ===== PortAudio support ===== |
- | < | + | since 2010-12-24 |
- | CFLAGS | + | |
- | lk\ 1.5.1\" | + | |
- | _DA=1 -DWORDS_LITTLEENDIAN=1 -arch i386 -g | + | |
- | </ | + | |
- | < | + | unfinished. |
- | $ make | + | |
- | </ | + | |
- | https:// | + | * USE_PORTAUDIO macro is defined. |
+ | * do_output.c switches using the macro. | ||
+ | * do_output_portaudio.c is not implemented. | ||
- | https://github.com/nishimotz/ | + | notes: |
+ | |||
+ | * [[http://ja.nishimotz.com/portaudio]] in Japanese | ||
< | < | ||
- | $ ./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 | + | $ make |
- | Bus error | + | |
</ | </ | ||
- | in the debug log below, "set Text = 111" is the input from console. | + | ===== Mac (Snow Leopard) support ===== |
+ | using unidic-chasen1312_utf8-x64. see [[: | ||
- | < | + | 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" | + | |
- | There is absolutely no warranty for GDB. Type "show warranty" | + | |
- | This GDB was configured as " | + | |
- | (gdb) run -C jagtalk-macosx.conf | + | https://github.com/nishimotz/jagtalk/commit/2df30037817eaf4aa4ddc3338a5e1a217f9e0998 |
- | Starting program: /Users/nishimotz/code/github/jagtalk/ | + | |
- | Reading symbols for shared libraries ++. done | + | |
- | rep Run = LIVE | + | |
- | set Text = 111 | + | |
- | rep Speak.stat = PROCESSING | + | |
- | Program received signal EXC_BAD_ACCESS, Could not access memory. | + | currently, audio device is disabled. |
- | Reason: KERN_PROTECTION_FAILURE at address: 0x00000010 | + | |
- | 0x0000a35f in make_breath () at make_breath.c: | + | |
- | 103 hinshi = aphrase-> | + | |
- | (gdb) | + | |
- | (gdb) bt | + | |
- | #0 0x0000a35f in make_breath () at make_breath.c: | + | |
- | #1 0x000143e2 in text_analysis (text=0x2340b " | + | |
- | #2 0x00007694 in setText (rel=0x23409 " | + | |
- | #3 0x000085fe in main (argc=0, argv=0xbffff9f8) at main.c: | + | |
- | </ | + | |
- | ==== using unidic-chasen-x64 ==== | + | < |
+ | $ autoconf | ||
+ | $ sh configure | ||
+ | </ | ||
- | see [[: | + | < |
+ | $ make -f Makefile.MACOSX | ||
+ | </ | ||
< | < | ||
- | $ echo " | + | $ cat run-chasen-macosx.sh |
- | <S> | + | #!/bin/sh |
- | <W1 orth=" | + | / |
- | <W1 orth=" | + | |
- | <W1 orth=" | + | $ head chasenrc-utf8-macosx |
- | </S> | + | ;; |
+ | ;; chasenrc for unidic | ||
+ | ;; | ||
+ | (GRAMMAR | ||
+ | (DADIC chadic) | ||
+ | omitted. | ||
+ | |||
+ | $ cat 00-testcmd | ||
+ | set Text = 1 | ||
+ | set SaveWAV | ||
+ | set Run = EXIT | ||
</ | </ | ||
+ | |||
< | < | ||
- | $ echo " | + | $ echo " |
<S> | <S> | ||
<AP orth=" | <AP orth=" | ||
Line 106: | Line 100: | ||
</AP> | </AP> | ||
</S> | </S> | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ sh test-jagtalk-macosx.sh | ||
+ | * chasen start. | ||
+ | # of phonemes: 42 | ||
+ | rep Run = LIVE | ||
+ | (omitted) | ||
+ | |||
+ | $ ls _out.* | ||
+ | _out.wav | ||
</ | </ | ||
project/jagtalk.1289657056.txt.gz · Last modified: 2010/11/13 23:04 by nishimotz