2003-09-15
上記 tar fileを好みのディレクトリー配下に全て解凍する。
(ここでは /usr/local/lib/ として記述します。)
speech_tools-1.2.3-release.tar.gzは ./speech_toolsに、それ以外は ./festivalに展開されます。
# cd /usr/local/lib/speech_tools # ./configure # make # make make_library # make test
# cd /usr/local/lib/festival # ./configure # make # make test
# cd /usr/local/bin # ln -s /usr/local/lib/festival/bin/festival
上記 tar fileを全て解凍する。
# cp ./mbrola-linux-i386 /usr/local/bin/mbrola
# cp -r ./us1 /usr/local/lib/festival/lib/voices/english/us1_mbrolal/ # cp -r ./us2 /usr/local/lib/festival/lib/voices/english/us2_mbrola/ # cp -r ./us3 /usr/local/lib/festival/lib/voices/english/us3_mbrola/ # cp -r ./en1 /usr/local/lib/festival/lib/voices/english/en1_mbrola/
/usr/local/lib/festival/lib/init.scmの最下行に
(Parameter.set 'Audio_Method 'Audio_Command) (Parameter.set 'Audio_Command "sox -t raw -sw -r $SR $FILE -c2 -t ossdsp /dev/dsp")
/usr/local/lib/festival/lib/init.scmの最下行に
(set! after_synth_hooks (lambda (utt) (utt.wave.rescale utt 1.0 t)))
$HOME/.festivalrc に以下の記述で指定できました
(set! voice_default 'voice_us1_mbrola) ;(set! voice_default 'voice_us2_mbrola) ;(set! voice_default 'voice_us3_mbrola) ;(set! voice_default 'voice_en1_mbrola) ;(set! voice_default 'voice_kal_diphone) ;(set! voice_default 'voice_don_diphone) ;(set! voice_default 'voice_ked_diphone) ;(set! voice_default 'voice_rab_diphone)
% festival Festival Speech Synthesis System 1.4.3:release Jan 2003 Copyright (C) University of Edinburgh, 1996-2003. All rights reserved. For details type `(festival_warranty)' festival> (SayText "hello world") #<Utterance 0x403c35b8> festival> (quit)
% festival --tts textfile