MacでGalatea Talk(1)

Galatea Talkという音声合成ソフトをMac上で動かす事に挑戦。

darwinportsで以下のパッケージを取得

GalateaTalk - SourceForge.jpから、以下のファイルを取得。

  • chaone-x.y.z.tar.gz(or zip)
  • speaker-x.y.z.tar.gz
  • gtalk-x.y.z.tar.gz

IPA辞書 - SourceForge.jpから、以下のファイルを取得。

  • ipadic-x.y.z.tar.gz

ChaOneのインストール

tar zxvf chaone-x.y.z.tar.gz
cd chaone-x.y.z
vi configure
(configureファイルの「*.so」記述箇所をすべて「*.dylib」に変更する)
vi configure.in
(configure.inファイルの「*.so」記述箇所をすべて「*.dylib」に変更する)
./configure
make

GalateaTalkのインストール

tar zxvf gtalk-x.y.z.tar.gz
cd gtalk-x.y.z
cp /usr/share/libtool/config.guess ./config
cp /usr/share/libtool/config.sub ./config
./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for rm... /bin/rm
checking for tar... /usr/bin/tar
checking for gzip... /usr/bin/gzip
checking build system type... i686-apple-darwin9.1.0
checking host system type... i686-apple-darwin9.1.0
checking for log in -lm... yes
checking audio device... configure: WARNING: not found
checking for pthread_create in -lpthread... yes
checking whether byte ordering is bigendian... no
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for readline in -lreadline... yes
checking for readline verion > 4.1... no - use old func
rm: conftest.dSYM: is a directory
configure: creating ./config.status
config.status: creating Makefile
make

gcc -DPACKAGE_NAME=\"gtalk\" -DPACKAGE_TARNAME=\"gtalk\" -DPACKAGE_VERSION=\"1.4\" -DPACKAGE_STRING=\"gtalk\ 1.4\" -DPACKAGE_BUGREPORT=\"galateatalk-dev@lists.sourceforge.jp\" -DAUTO_DA=1 -DWORDS_LITTLEENDIAN=1 -DHAVE_READLINE=1 -DHAVE_READLINE_4_1_OLDER=1 -c -o do_output.o do_output.c
do_output.c: In function ‘sndout’:
do_output.c:129: error: ‘forced_stereo’ undeclared (first use in this function)
do_output.c:129: error: (Each undeclared identifier is reported only once
do_output.c:129: error: for each function it appears in.)
do_output.c: In function ‘auto_output_speaker_thread’:
do_output.c:472: error: ‘SOUND_PCM_SYNC’ undeclared (first use in this function)
do_output.c: In function ‘abort_auto_output’:
do_output.c:507: error: ‘tv’ undeclared (first use in this function)
do_output.c:507: error: ‘tz’ undeclared (first use in this function)
do_output.c:511: error: ‘start_DA_sec’ undeclared (first use in this function)
do_output.c:512: error: ‘start_DA_usec’ undeclared (first use in this function)
make: *** [do_output.o] Error 1

やっぱり、Macじゃ難しいのかな。
素直に、別のマシンでやってみるのも手かもしれない。

以下、後ほど書きます。