2022年7月7日木曜日

Ubuntu 22.04に音声合成プログラムFestival Speech Synthesis Systemをインストールする

Festival Speech Synthesis Systemで英文を音声出力する事ができます。

インストール方法

以下のコマンドを実行します。
sudo apt-get update

sudo apt-get -y install festival

使用方法例

・指定の英文を再生
echo "Hello, World!" | festival --tts

・音声出力をファイルへ出力する
echo "Hello, World!" > helloworld.txt
text2wave helloworld.txt -o helloworld.wav

・ゆっくりと発音させる
cat << EOF > test.txt
(Parameter.set 'Duration_Stretch 2.5)
(SayText "Good evening.")
EOF
festival -b test.txt

関連情報

・Festival Speech Synthesis Systemのホームページ
http://www.cstr.ed.ac.uk/projects/festival/

0 件のコメント:

コメントを投稿